500+ PowerShell scripts (.ps1) for every system!
Go to file
Markus Fleschutz 76e253bc11 Added -DnsOnly
2020-06-12 23:05:06 +02:00
Scripts Added -DnsOnly 2020-06-12 23:05:06 +02:00
LICENSE Initial commit 2020-04-30 17:49:27 +02:00
README.md Renamed to train_dns_cache.ps1 2020-06-11 16:23:54 +00:00

Collection of PowerShell Scripts

Useful cross-platform PowerShell scripts, to be used on the command-line (CLI) or by automation software like Jenkins.

PowerShell Scripts

  • SHA2556.ps1 - prints the SHA256 checksum of the given file
  • password.ps1 - generates and prints a single new password
  • passwords.ps1 - generates and prints a list of new passwords
  • poweroff.ps1 - halts the local computer, administrator rights might be needed
  • train_dns_cache.ps1 - trains the DNS cache with frequently used domain names
  • reboot.ps1 - reboots the local computer, administrator rights might be needed
  • speak.ps1 - speaks the given text
  • translate.ps1 - translates the given text
  • txt2wav.ps1 - converts text into a audio .WAV file
  • wakeup.ps1 - sends a magic packet to the given computer, waking him up

What is PowerShell?

PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.

Add Subfolder Scripts/ to the Search Path for Command-line Usage

  • Windows: open the environment variables dialogue and add the full path to Scripts/ to the system environment variable "Path"
  • Bash or sh: edit .profile in your home directory and add the line: PATH="$PATH:/path/to/PowerShell/Scripts"

Script Standards

Each script provides:

  1. a comment header containing a description, author, source, and license
  2. prefers command-line options but may ask the user if missing
  3. exits 0 for success, otherwise the error code (mostly 1)

This open source release is licensed under the CC0 license. All trademarks are the property of their respective owners.