Added #Requires ...

This commit is contained in:
Markus Fleschutz 2020-06-15 16:13:26 +02:00
parent 271c90e2c6
commit 91073e4cc4
2 changed files with 4 additions and 2 deletions

View File

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

View File

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