Welcome to TechNet Blogs Sign in | Join | Help

News

  • Dislaimer: All postings are provided "AS IS" with no warranties, and confer no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Microsoft. Because a weblog is intended to provide a semi-permanent point-in-time snapshot, you should not consider out of date posts to reflect current thoughts and opinions.

    Locations of visitors to this page
Quick Tip: How to change the Owner value for all VMs in SCVMM 2008

TipHave 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 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.

Alvin Morales | Senior Support Engineer

Posted: Thursday, May 21, 2009 1:58 PM by jchornbe

Comments

Cliff Hobbs - FAQShop.com and Microsoft MVP ConfigMgr/ SMS said:

This is a cool tip from the System Center Virtual Machine Manager blog: “ Have you ever found yourself

# May 22, 2009 7:59 AM

Cliff Hobbs at myITforum.com said:

This is a cool tip from the System Center Virtual Machine Manager blog: “ Have you ever found yourself

# May 22, 2009 8:34 AM
Anonymous comments are disabled
Page view tracker