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
This PowerShell script verifies the integrity of a local Git repository and performs maintenance tasks.
pathToRepo Specifies the file path to the local Git repository (current working directory by default)
PS> ./check-repo.ps1 C:\MyRepo⏳ (1/10) Searching for Git executable... git version 2.41.0.windows.3⏳ (2/10) Checking local repository... C:\MyRepo⏳ (3/10) Querying remote URL... git@github.com:fleschutz/PowerShell.git⏳ (4/10) Querying current branch... main⏳ (5/10) Fetching remote updates... OK⏳ (6/10) Querying latest tag... v0.8 (at commit 02171a401d83b01a0cda0af426840b605e617f08)⏳ (7/10) Verifying data integrity......Author: Markus Fleschutz | License: CC0
This PowerShell script queries pending operating system reboots and prints it.
./check-pending-reboot.ps1✅ No pending reboot.Author: Markus Fleschutz | License: CC0
This PowerShell script checks the given MAC address for validity Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000.
MAC Specifies the MAC address to check
PS> ./check-mac-address 11:22:33:44:55:66✅ MAC address 11:22:33:44:55:66 is validAuthor: Markus Fleschutz | License: CC0
This PowerShell script checks the given IPv6 address for validity
Address Specifies the IPv6 address to check
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2✅ IPv6 fe80::200:5aee:feaa:20a2 is validAuthor: Markus Fleschutz | License: CC0
This PowerShell script checks the given IPv4 address for validity.
Address Specifies the IPv4 address to check
PS> ./check-ipv4-address 192.168.11.22✅ IPv4 192.168.11.22 is validAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the status of the firewall and prints it.
PS> ./check-firewall.ps1✅ Firewall enabledAuthor: Markus Fleschutz | License: CC0