Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 3,068 views | 20/06/2009 08:18
You can change owners of the virtual machines with Powershell:
1
2
3
4
5
| Add-PSSnapin -name Microsoft.SystemCenter.VirtualMachineManager
Get-Vmmserver localhost
$VMNO = $args[0]
$USERNO = $args[1]
Set-VM $VMNO -Owner SCVMM\USER$USERNO |
Add-PSSnapin -name Microsoft.SystemCenter.VirtualMachineManager
Get-Vmmserver localhost
$VMNO = $args[0]
$USERNO = $args[1]
Set-VM $VMNO -Owner SCVMM\USER$USERNO
This method could be used for suspending Virtual Machines.