How to Change the Owner Value for All VMs in SCVMM 2008

How to Change the Owner Value for All VMs in SCVMM 2008

Note: This article is based on VMM 2008  and might not apply to VMM 2012 (R2)

Have you ever found yourself in a situation where you have a bunch of virtual machines (VMs) where the OWNER value is set to UNKNOWN and you wanted to set a value owner without having to modify them one VM at a time?  If so there’s a Windows PowerShell command that we can use to accomplish this:

Get-VM -VMMServer "vmm server FQDN" | where {$_.Owner -eq "Unknown"} | Set-VM -Owner "domain\account"

Presto, now your VMs have an owner as dictated by the account you used above.  So why might the owner even matter?  Well one instance where this is important is when you want to use the self-service portal to display all the VMs since to accomplish this the owner value need to be set to an account that is part of a Self-Service user role.

The VMs that show up in Self-Service are for Self-Service users only, not necessarily administrators, although an administrator can be part of a self-service user role.  However, he or she will only see the VMs that they own. If the user is not part of a Self Service user role, they will not be able to log into the web site.

There may be other reasons too but that’s the big one, and now if you ever find a need to do a mass change over the script above should hopefully save you a little time.

Note: This information was originally provided by Alvin Morales, Senior Support Engineer, on the System Center Virtual Machine Manager Team blog:

http://blogs.technet.com/scvmm/archive/2009/05/21/quick-tip-how-to-change-the-owner-value-for-all-vms-in-scvmm-2008.aspx

Leave a Comment
  • Please add 4 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Craig Lussier edited Revision 2. Comment: added en-US to tags and title

  • Ed Price MSFT edited Revision 1. Comment: Updated title casing.  

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Danny van Dam edited Revision 4. Comment: added note about that this might not apply to VMM 2012 (R2)

  • Craig Lussier edited Revision 2. Comment: added en-US to tags and title

  • Ed Price MSFT edited Revision 1. Comment: Updated title casing.  

Page 1 of 1 (3 items)