search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
How to suspend a VDS on SCVMM with Powershell?
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 2,249 views | 17/02/2009 20:10

There is an easy way to suspend a vds account on SCVMM with Powershell.

1
2
3
$VDSName = VDS022
SaveState-VM $VDSName
Set-VM $VDSName -Owner FABRIKAM\Administrator

As you see, first we saved vds then changed the owner. So user can not resume vds. Also this is resume part:

1
2
3
4
$Userid = 2512
$VDSName = VDS022
Set-VM $VDSName -Owner FABRIKAM\$Userid
Start-VM $VDSName

You should use Start-VM command to resume vds. In here, Fabrikam is our Domain Sam Name.



Leave a Reply