PowerShell/README.md
2021-08-29 15:29:43 +02:00

26 KiB

Mega Collection of PowerShell Scripts

This repository provides more than 200 useful and cross-platform PowerShell scripts in the Scripts subfolder - to be used by command-line interface (CLI), for remote control (e.g. via SSH), by context menu, by voice control, by automation software like Jenkins, automatically as daily tasks, or simply to learn PowerShell. See the PowerShell FAQ page if you need help or have any questions.

Note: the scripts fully support Unicode I/O. It's recommended to use a modern console supporting UTF-8 (e.g. Windows Terminal).

🔊 Scripts for Audio & Voice

⚙️ Scripts for Computer Management

💻 Scripts for the Desktop

📁 Scripts for Files & Folders

♻️ Scripts to Convert Files

Script Description Documentation
convert-csv2txt.ps1 converts a given .CSV file to a text file Manual
convert-mysql2csv.ps1 converts a MySQL database table to a .CSV file Manual
convert-ps2bat.ps1 converts a PowerShell script to a .BAT file Manual
convert-ps2md.ps1 converts the comment-based help of a PowerShell script to Markdown Manual
convert-sql2csv.ps1 converts a SQL database table to a .CSV file Manual
convert-txt2wav.ps1 converts a text file to a .WAV audio file Manual

📝 Scripts for Git

  • cherry-picker.ps1 - cherry-picks a Git commit into multiple branches
  • clean-repo.ps1 - cleans the current/given Git repository from untracked files (including submodules)
  • clean-repos.ps1 - cleans all Git repositories under the current/given directory from untracked files (including submodules)
  • clone-repos.ps1 - clones well-known Git repositories
  • configure-git.ps1 - sets up the Git user configuration
  • create-branch.ps1 - creates a new branch in the current/given Git repository
  • create-tag.ps1 - creates a new tag in the current/given Git repository
  • fetch-repo.ps1 - fetches updates for the current/given Git repository (including submodules)
  • fetch-repos.ps1 - fetches updates for all Git repositories under the current/given directory (including submodules)
  • list-branches.ps1 - lists all branches in the current/given Git repository
  • list-commits.ps1 - lists all commits in the current/given Git repository
  • list-latest-tag.ps1 - lists the latest tag on the current branch in a Git repository
  • list-latest-tags.ps1 - lists the latests tags in all Git repositories under the current/given directory
  • list-submodules.ps1 - lists the submodules of the current/given Git repository
  • list-tags.ps1 - lists all tags in the current/given Git repository
  • make-repo.ps1 - builds the current/given Git repository
  • make-repos.ps1 - builds all Git repositories under the current/given directory
  • pull-repo.ps1 - pulls updates for the current/given Git repository (including submodules)
  • pull-repos.ps1 - pulls updates for all Git repositories under the current/given directory (including submodules)
  • switch-branch.ps1 - switches the branch in the current/given Git repository (including submodules)
  • sync-repo.ps1 - synchronizes a Git repository by push & pull (including submodules)

🔎 Scripts for PowerShell

Script Description Documentation
daily-tasks.sh execute PowerShell scripts automatically as daily tasks (Linux only) Manual
introduce-powershell.ps1 introduces PowerShell to new users Manual
list-aliases.ps1 lists all PowerShell aliases Manual
list-automatic-variables.ps1 lists the automatic variables of PowerShell Manual
list-cheat-sheet.ps1 lists the PowerShell cheat sheet Manual
list-cmdlets.ps1 lists the PowerShell cmdlets Manual
list-console-colors.ps1 lists all console colors Manual
list-modules.ps1 lists the PowerShell modules Manual
list-profiles.ps1 lists your PowerShell profiles Manual
list-scripts.ps1 lists all PowerShell scripts in this repository Manual
set-profile.ps1 updates your PowerShell user profile Manual
template.ps1 copy this template PowerShell script to write a new one Manual

🛒 Various PowerShell Scripts

Feedback

Send your email feedback to: markus [at] fleschutz [dot] de

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