Change owner powershell system center virtual machine manager

Ever needed to change the owner on a bunch of virtual machines (VMs) where the OWNER value is set to UNKNOWN? Ofcourse we're lazy so doing it one by one is not an option. There’s a PowerShell command that we can use to suite our needs:

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

29.07.2010. 08:26

Comments

This article hasn't been commented yet.

Write a comment

* = required field

:

:

:


5 + 2 =