Added test.ps1

This commit is contained in:
Markus Fleschutz 2020-05-01 09:44:56 +00:00
parent 81159733ef
commit d8a596061e
4 changed files with 34 additions and 4 deletions

View File

@ -1,2 +1,17 @@
# PowerShell Scripts
PowerShell Scripts
==================
Useful cross-platform PowerShell scripts, to be used on the command-line (CLI) or by automation software like Jenkins.
What is PowerShell?
-------------------
* PowerShell is open-source: see the repository at github.com/PowerShell/PowerShell
* PowerShell is cross-platform: available for Windows, Linux and Mac OS
* PowerShell is powerful: fully control your computer
* PowerShell is easy to learn
Each Script Provides:
---------------------
* A comment header containing a description, author, license and source
* Exits 0 for success, otherwise the error code (mostly 1)

View File

@ -1,2 +1,8 @@
# Halts the local computer! Administrator rights might be needed!
# PowerShell Script to Shutdown the Local Computer
# ------------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# NOTE: Halts the local computer! Administrator rights might be needed!
Stop-Computer
exit 0

View File

@ -1,2 +1,8 @@
# Reboots the local computer! Administrator rights might be needed.
# PowerShell Script to Reboot the Local Computer
# ----------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# NOTE: Reboots the local computer! Administrator rights might be needed.
Restart-Computer
exit 0

View File

@ -1,4 +1,7 @@
# PowerShell test script
# PowerShell Script for Testing
# -----------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
write-output "PowerShell Works!"
exit 0