3
0
3
0
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
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 the status of the installed RAM memory modules and prints it.
PS> ./check-ram.ps1✅ 16GB DDR4 RAM at 3200MHz/1.2V in CPU0/CPU0-DIMM3 by MicronAuthor: Markus Fleschutz | License: CC0
This PowerShell script checks the given PowerShell script file(s) for validity.
filePattern Specifies the file pattern to the PowerShell file(s)
PS> ./check-ps1-file *.ps1✅ Valid PowerShell in myfile.ps1Author: 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