3
0
3
0
This PowerShell script searches and replaces a pattern in the given files by the replacement.
pattern Specifies the text pattern to search for (ask user by default)
replacement Specifies the text replacement (ask user by default)
filePattern Specifies the file search pattern (ask user by default)
PS> ./replace-in-files NSA "No Such Agency" C:\Temp\*.txtAuthor: Markus Fleschutz | License: CC0
This PowerShell script removes an existing user account including the home directory.
PS> ./remove-user.ps1 Joe✅ Removed user 'Joe' including home directory in 11s.Author: Markus Fleschutz | License: CC0
This PowerShell script removes a Git tag, either locally, remote, or both.
TagName Specifies the Git tag name
Mode Specifies either locally, remote, or both
RepoDir Specifies the path to the Git repository
PS> ./remove-tag v1.7 locallyAuthor: Markus Fleschutz | License: CC0
This PowerShell script removes all print jobs from all printer devices.
PS> ./remove-print-jobsAuthor: Markus Fleschutz | License: CC0
This PowerShell script removes any subfolder in a parent folder older than (using last write time).
path Specifies the file path to the parent folder
numDays Specifies the number of days (1000 by default)
PS> ./remove-old-dirs.ps1 C:\Temp 365⏳ Scanning C:\Temp for subfolders older than 365 days...⏳ Removing old 'TestFolder'...✅ Removed 1 of 49 subfolders in 1s.Author: Markus Fleschutz | License: CC0
This PowerShell script removes all empty subfolders within a directory tree.
DirTree Specifies the path to the directory tree
PS> ./remove-empty-dirs C:\TempAuthor: Markus Fleschutz | License: CC0
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 creates a scheduled task that will display a popup message.
PS> ./remind-me "Dentist" "4/10/2021 12:00 PM"TaskPath TaskName State-------- -------- -----\ Reminder_451733811 ReadyAuthor: Markus Fleschutz | License: CC0
This PowerShell script reboots the local computer immediately (needs admin rights).
PS> ./rebootAuthor: Markus Fleschutz | License: CC0