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
This PowerShell script checks the given drive for free space left (10 GB by default).
driveName Specifies the drive name to check (e.g. "C")
minLevel Specifies the minimum level in bytes (10GB by default)
PS> ./check-drive-space.ps1 C✅ Drive C: uses 56% of 1TB: 442GB freeAuthor: Markus Fleschutz | License: CC0
This PowerShell script queries the CPU status (name, type, speed, temperature, etc) and prints it.
PS> ./check-cpu.ps1✅ Intel(R) Core(TM) i9-10900X CPU @ 3.70GHz (AMD64, 20 cores, CPU0, 3696MHz, CPU0 socket, 31.3°C)Author: Markus Fleschutz | License: CC0
This PowerShell script queries the BIOS status and prints it.
PS> ./check-bios.ps1✅ BIOS model P62 v02.67, version HPQOEM - 5, S/N CZC1080B01 by HPAuthor: Markus Fleschutz | License: CC0
This PowerShell script changes the working directory to the user's videos folder.
PS> ./cd-videos📂C:\Users\Markus\Videos entered (has 3 files and 0 subfolders)Author: Markus Fleschutz | License: CC0