mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-05 06:48:25 +02:00
Update hibernate.ps1
This commit is contained in:
parent
2abcd039c2
commit
f569726486
@ -15,7 +15,7 @@
|
|||||||
try {
|
try {
|
||||||
[system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US"
|
[system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US"
|
||||||
$CurrentTime = $((Get-Date).ToShortTimeString())
|
$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
|
Start-Sleep -milliseconds 500
|
||||||
& rundll32.exe powrprof.dll,SetSuspendState 1,1,0 # bHibernate,bForce,bWakeupEventsDisabled
|
& rundll32.exe powrprof.dll,SetSuspendState 1,1,0 # bHibernate,bForce,bWakeupEventsDisabled
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user