How can I change owner of an environment?
-
28 Februari 2012 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
- Jenis yang Diubah Forrest GuoMicrosoft Employee, Moderator 03 Maret 2012 7:10
Semua Balasan
-
29 Februari 2012 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 Maret 2012 7:09Moderator
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 Maret 2012 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 Maret 2012 8:26
Hi,
I have the same request, can you please share the script to change environment owner?
-
18 Maret 2012 16:26Moderator
@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
- Ditandai sebagai Jawaban oleh Brandon Hoppe 27 Maret 2012 22:57
-
27 Maret 2012 6: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!
- Ditandai sebagai Jawaban oleh Brandon Hoppe 27 Maret 2012 22:57
- Diedit oleh Brandon Hoppe 27 Maret 2012 22:58
-
28 Maret 2012 5:20Moderator
It's my pleasure. Nice to know that you resolved it.
best regards,
Forrest Guo | MSDN Community Support | Feedback to manager