mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Update hibernate.ps1
This commit is contained in:
parent
2abcd039c2
commit
f569726486
@ -15,7 +15,7 @@
|
||||
try {
|
||||
[system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US"
|
||||
$CurrentTime = $((Get-Date).ToShortTimeString())
|
||||
Write-Host "It's $CurrentTime, going to sleep now... 😴💤p"
|
||||
Write-Host "It's $CurrentTime, going to sleep now... 😴💤"
|
||||
Start-Sleep -milliseconds 500
|
||||
& rundll32.exe powrprof.dll,SetSuspendState 1,1,0 # bHibernate,bForce,bWakeupEventsDisabled
|
||||
exit 0 # success
|
||||
|
Loading…
Reference in New Issue
Block a user