This PowerShell script silently removes a directory tree recursively. Use it with care!
pathToDirTree Specifies the file path to the directory tree
PS> ./remove-dir-tree.ps1 C:\TempAuthor: Markus Fleschutz | License: CC0
This PowerShell script reboots the local computer immediately (needs admin rights).
PS> ./rebootAuthor: Markus Fleschutz | License: CC0
This PowerShell script pulls remote updates into a local Git repository (including submodules).
pathToRepo Specifies the file path to the local Git repository (default is working directory)
PS> ./pull-repo.ps1⏳ (1/4) Searching for Git executable... git version 2.44.0.windows.1⏳ (2/4) Checking local repository... C:\Repos\rust⏳ (3/4) Pulling remote updates...⏳ (4/4) Updating submodules...✅ Updates pulled into 📂rust repo in 14s.Author: Markus Fleschutz | License: CC0
This script halts the local computer immediately (needs admin rights).
PS> ./poweroffAuthor: Markus Fleschutz | License: CC0
This PowerShell script measures the ping roundtrip times from the local computer to remote ones (10 Internet servers by default).
hosts Specifies the hosts to ping, seperated by commata (10 Internet servers by default)
PS> ./ping-internet.ps1✅ Internet ping: 12ms (9...18ms range)Author: Markus Fleschutz | License: CC0
This PowerShell script pings the given host.
hostname Specifies the hostname or IP address to ping (x.com by default)
PS> ./ping-host.ps1 x.com✅ 'x.com' is online (20ms to IP 104.244.42.1)Author: Markus Fleschutz | License: CC0
Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces) NOTE: in case of merge conflicts the script stops immediately!
CommitID Specifies the commit ID
CommitMessage Specifies the commit message to use
Branches Specifies the list of branches, separated by spaces
RepoDir Specifies the path to the Git repository
PS> ./pick-commit 93849f889 "Fix typo" "v1 v2 v3"Author: Markus Fleschutz | License: CC0
This PowerShell script creates a new user account with an encrypted home directory.
PS> ./new-user.ps1 Joe✅ Created user account 'Joe' with encrypted home directory in 11s.Author: Markus Fleschutz | License: CC0
This PowerShell script creates a new tag in a Git repository.
TagName Specifies the new tag name
RepoDir Specifies the path to the Git repository
PS> ./new-tag.ps1 v1.7Author: Markus Fleschutz | License: CC0