mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update the comment-based help
This commit is contained in:
@ -1,19 +1,17 @@
|
||||
<#
|
||||
#Requires -RunAsAdministrator
|
||||
<#
|
||||
.SYNOPSIS
|
||||
hibernate.ps1
|
||||
.DESCRIPTION
|
||||
Enables hibernate mode for the local computer (needs admin rights)
|
||||
Enables hibernate mode for the local computer (needs admin rights).
|
||||
.EXAMPLE
|
||||
PS> .\hibernate.ps1
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz
|
||||
License: CC0
|
||||
#>
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
||||
try {
|
||||
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
|
||||
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false);
|
||||
|
Reference in New Issue
Block a user