How can I change owner of an environment?
-
28 Şubat 2012 Salı 19:15
I need to change the owner of an environment to allow host-based connection (instead of guest-based connection). I do not want to have to re-create all these environments. Is there a way to update the environment and change the owner?
Thanks,Brandon
- Değiştirilmiş Tür Forrest GuoModerator 03 Mart 2012 Cumartesi 07:10
Tüm Yanıtlar
-
29 Şubat 2012 Çarşamba 20:42
I tried using this blog post:
Enabling Host based connection for virtual environments
But the script didn't seem to do anything. So I took the script and created a C# form to do the same thing. What I found was that the UpdateLabSystemCommand class doesn't have a VMOwner property. So that explains why this script didn't do anything.
Is there any API for the lab system that I can use to change the owner of an environment?
Brandon
-
03 Mart 2012 Cumartesi 07:09Moderatör
Hi Brandon,
I'm looking into this question and try to test the script, please wait some time.
Regards,
Forrest Guo | MSDN Community Support | Feedback to us
-
05 Mart 2012 Pazartesi 16:25
Thanks. It would be helpful because this would keep me from having to recreate several environments which is very time consuming.Hi Brandon,
I'm looking into this question and try to test the script, please wait some time.
Regards,
Forrest Guo | MSDN Community Support | Feedback to us
-
15 Mart 2012 Perşembe 08:26
Hi,
I have the same request, can you please share the script to change environment owner?
-
18 Mart 2012 Pazar 16:26Moderatör
@pylon the script refers to
@Brandon, I haven't gotten it working. In the MSDN article, we know that class UpdateLabSystemCommand has VMOwner property, but it's only available in VS 11 beta.
If that's not the situation for you, my idea is to modify the virtual machine manager database.
regards,
Forrest Guo | MSDN Community Support | Feedback to us
- Yanıt Olarak İşaretleyen Brandon Hoppe 27 Mart 2012 Salı 22:57
-
27 Mart 2012 Salı 06:53
@pylon the script refers to
@Brandon, I haven't gotten it working. In the MSDN article, we know that class UpdateLabSystemCommand has VMOwner property, but it's only available in VS 11 beta.
If that's not the situation for you, my idea is to modify the virtual machine manager database.
regards,
Thanks. We're still on VS2010.
So if a client machine ran VS11 beta, that client should be able to run this script and update the environment even though the server bits are still 2010?
EDIT: This is exactly what I was able to do. I updated my references in my VS2010 project to use the 2011 versions of the LAB dlls and I was able to change the VMOwner property.
Thanks Forrest!
- Yanıt Olarak İşaretleyen Brandon Hoppe 27 Mart 2012 Salı 22:57
- Düzenleyen Brandon Hoppe 27 Mart 2012 Salı 22:58
-
28 Mart 2012 Çarşamba 05:20Moderatör
It's my pleasure. Nice to know that you resolved it.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager