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 }
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 }