PowerShell/Scripts/poweroff.ps1

13 lines
311 B
PowerShell
Raw Normal View History

2020-05-25 21:21:40 +02:00
#!/snap/bin/powershell
#
2020-05-01 11:44:56 +02:00
# PowerShell Script to Shutdown the Local Computer
# ------------------------------------------------
2020-05-02 14:35:58 +02:00
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
#
2020-05-01 11:44:56 +02:00
# NOTE: Halts the local computer! Administrator rights might be needed!
2020-04-30 17:54:15 +02:00
Stop-Computer
2020-05-01 11:44:56 +02:00
exit 0