https://github.com/filipnet/powershell-shutdown
Shutdown server systems in a data center in a certain predefined order
https://github.com/filipnet/powershell-shutdown
automation batch menu microsoft powershell powershell-script shutdown stop-computer test-connection windows
Last synced: 3 months ago
JSON representation
Shutdown server systems in a data center in a certain predefined order
- Host: GitHub
- URL: https://github.com/filipnet/powershell-shutdown
- Owner: filipnet
- License: bsd-3-clause
- Created: 2020-11-16T09:01:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T05:45:06.000Z (over 4 years ago)
- Last Synced: 2024-12-27T08:16:07.638Z (5 months ago)
- Topics: automation, batch, menu, microsoft, powershell, powershell-script, shutdown, stop-computer, test-connection, windows
- Language: PowerShell
- Homepage: https://www.filipnet.de
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# powershell-shutdown
This script is designed to shut down Windows servers in a certain predefined order. e.g. note that the application server first disconnects and shuts down its connection to the database server before the database server itself is shut down.
## FEATURES
* Shutdown of remote Windows systems with ```Stop-Computer```
* Validate the online status with ```Test-Connection``` (ICMP reply / PING)
* The next system is shutdown only after successful shutdown-validation of the previous one## FILES
The solution consists of the following files:
* shutdown_datacenter.bat : The startscript to be executed which generates a menu to select which datacenter should be shutdown.
* shutdown_datacenter_1.ps1 : The actual powershell script to shutdown the systems per datacenter. Also here a menu is generated to select server systems clustered by their roles.
* library.ps1 : A collection of functions used in the powershell scripts.## LICENSE
poweshell-shutdown and all individual scripts are under the BSD 3-Clause license unless explicitly noted otherwise. Please refer to the LICENSE