mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Added test.ps1
This commit is contained in:
parent
81159733ef
commit
d8a596061e
17
README.md
17
README.md
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user