mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Added #Requires ...
This commit is contained in:
parent
271c90e2c6
commit
91073e4cc4
@ -1,9 +1,10 @@
|
||||
#!/snap/bin/powershell
|
||||
#
|
||||
# Description: halts the local computer (administrator rights might be needed)
|
||||
# Description: halts the local computer, administrator rights are required
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
#
|
||||
#Requires -RunAsAdministrator
|
||||
Stop-Computer
|
||||
exit 0
|
||||
|
@ -1,9 +1,10 @@
|
||||
#!/snap/bin/powershell
|
||||
#
|
||||
# Description: reboots the local computer (administrator rights might be needed)
|
||||
# Description: reboots the local computer, administrator rights are required
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
#
|
||||
#Requires -RunAsAdministrator
|
||||
Restart-Computer
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user