Update hibernate.ps1

This commit is contained in:
Markus Fleschutz 2023-07-29 10:16:52 +02:00
parent 2abcd039c2
commit f569726486

View File

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