This PowerShell script clears the DNS client cache of the local computer.
PS> ./clear-dns-cache.ps1✅ Cleared DNS cache in 1s.Author: Markus Fleschutz | License: CC0
This PowerShell script deletes all untracked files and folders in a local Git repository (including submodules). NOTE: To be used with care! This cannot be undone!
path Specifies the file path to the local Git repository (current working directory by default)
PS> ./clean-repo.ps1 C:\Repos\rust⏳ (1/4) Searching for Git executable... git version 2.47.0⏳ (2/4) Checking local repository... C:\Repos\rust⏳ (3/4) Removing untracked files in repository...⏳ (4/4) Removing untracked files in submodules...✅ Repo 📂rust is clean now.Author: Markus Fleschutz | License: CC0
This PowerShell script checks the given XML file for validity.
path Specifies the path to the XML file
PS> ./check-xml-file.ps1 myfile.xml✅ myfile.xml is valid XMLAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the status of the VPN connection(s) and prints it.
PS> ./check-vpn.ps1✅ Internet VPN to NASA L2TP is connectedAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the computer's uptime (time between now and last boot up time) and prints it.
PS> ./check-uptime.ps1✅ OfficePC is up for 13 days since 1/25/2024Author: Markus Fleschutz | License: CC0
This PowerShell script queries the local time zone and prints it.
PS> ./check-time-zone.ps1✅ 3:27 PM West Europe Summer Time (UTC+01:00:00 +1h DST)Author: Markus Fleschutz | License: CC0
This PowerShell script checks all symbolic links in a directory tree. It returns the number of broken symlinks as exit value.
folder Specifies the path to the folder
PS> ./check-symlinks D:\⏳ Please wait while checking symlinks at: 📂D:\ ...✅ Found 0 broken symlinks at 📂D:\ in 60s.Author: Markus Fleschutz | License: CC0
This PowerShell script queries the current status of the swap space and prints it.
minLevel Specifies the minimum level in MB (10 MB by default)
PS> ./check-swap-space.ps1✅ Swap space uses 1GB (21%) of 5GBAuthor: Markus Fleschutz | License: CC0
This PowerShell script checks the given subnet mask for validity.
address Specifies the subnet mask to check
PS> ./check-subnet-mask.ps1 255.255.255.0✅ subnet mask 255.255.255.0 is validAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
PS> ./check-smart-devices.ps1✅ 1TB Samsung SSD 970 EVO 1TB via NVMe (35°C, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed)Author: Markus Fleschutz | License: CC0