locked
How can I change owner of an environment?

    问题

  • 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

    2012年2月28日 19:15

答案

全部回复

  • 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

    2012年2月29日 20:42
  • 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

    2012年3月3日 7:09
  • 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

    Thanks. It would be helpful because this would keep me from having to recreate several environments which is very time consuming.
    2012年3月5日 16:25
  • Hi,

    I have the same request, can you please share the script to change environment owner?

    2012年3月15日 8:26
  • @pylon the script refers to

    http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-08-75-14/UpdateVMOwner.ps1.txt

    @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

    2012年3月18日 16:26
  • @pylon the script refers to

    http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-08-75-14/UpdateVMOwner.ps1.txt

    @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!

    2012年3月27日 6:53
  • It's my pleasure. Nice to know that you resolved it.

    best regards,


    Forrest Guo | MSDN Community Support | Feedback to manager

    2012年3月28日 5:20