mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 09:28:21 +02:00
Added #Requires ...
This commit is contained in:
parent
271c90e2c6
commit
91073e4cc4
@ -1,9 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/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
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
#
|
#
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
Stop-Computer
|
Stop-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/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
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
#
|
#
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
Restart-Computer
|
Restart-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user