How can I change owner of an environment?

已鎖定 How can I change owner of an environment?

  • 2012年2月28日 下午 07: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

所有回覆

  • 2012年2月29日 下午 08: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

  • 2012年3月3日 上午 07: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

  • 2012年3月5日 下午 04:25
     
     

    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月15日 上午 08:26
     
     

    Hi,

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

  • 2012年3月18日 下午 04: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

    • 已標示為解答 Brandon Hoppe 2012年3月27日 下午 10:57
    •  
  • 2012年3月27日 上午 06:53
     
     已答覆

    @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月28日 上午 05:20
    版主
     
     

    It's my pleasure. Nice to know that you resolved it.

    best regards,


    Forrest Guo | MSDN Community Support | Feedback to manager