Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
PSStandby
1.2.1
Private/Enter-Hibernation.ps1
function
Enter-Hibernation
{
[
CmdletBinding
(
SupportsShouldProcess
)
]
Param
(
)
if
(
$PSCmdlet
.
ShouldProcess
(
"this"
,
"run shutdown /h command"
)
)
{
shutdown
/h
}
}