Created
May 31, 2018 01:10
-
-
Save turboBasic/7390918e3eb5c2a5821638911d867841 to your computer and use it in GitHub Desktop.
[Suspend-Computer.ps1] #powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$powerState = [System.Windows.Forms.PowerState]::Suspend | |
$force = $false | |
$disableWake = $false | |
[System.Windows.Forms.Application]::SetSuspendState( | |
$powerState, $force, $disableWake | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment