To programmatically enter standby mode, you can use native .NET code like this:
function Invoke-Standby { Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::SetSuspendState(0,0,0) | Out-Null }
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
by ps1Feb 28, 2012
To programmatically enter standby mode, you can use native .NET code like this:
function Invoke-Standby { Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::SetSuspendState(0,0,0) | Out-Null }