500+ PowerShell scripts (.ps1) for every system!
Go to file
2020-11-30 15:37:02 +00:00
Scripts Added simulate-presence.ps1 2020-11-30 15:28:56 +00:00
LICENSE Initial commit 2020-04-30 17:49:27 +02:00
README.md Updated README.md 2020-11-30 15:37:02 +00:00

Collection of Useful PowerShell Scripts (CUPS)

This repository contains useful cross-platform PowerShell scripts - to be used on the command-line (CLI), by voice control or by automation software like Jenkins.

List of Scripts

The following PowerShell scripts can be found in the Scripts/ subfolder:

What is PowerShell?

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

How to get PowerShell?

Windows 7 and newer do provide PowerShell by default. It's recommended to use it via Windows Terminal (see the Microsoft Store at https://www.aka.ms/terminal).

For installation on alternative platforms (CentOS, Debian, Docker, Fedora, macOS, openSUSE, Red Hat, Ubuntu) visit https://github.com/PowerShell/PowerShell.

Afterward, install the scripts by clicking on the green "Code" button or execute:

$ git clone https://github.com/fleschutz/PowerShell

How to configure PowerShell as default shell on Linux?

Make sure PowerShell is installed, then use the chsh commmand as follows:

  • chsh -s /bin/powershell <username>

How to add the 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"

Conventions Used

Each PowerShell script should follow the 7 golden rules:

  • Rule 1: the script filename should be named "-