Replaced the done character

This commit is contained in:
Markus Fleschutz 2024-10-01 13:37:53 +02:00
parent c43e787025
commit fd963889d2
600 changed files with 743 additions and 769 deletions

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Adds firewall rules for executables (needs admin rights). Adds firewall rules for executables (needs admin rights).
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Handles and escalates an alert Handles and escalates an alert
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds a repository Builds a repository
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds Git repositories Builds Git repositories
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's autostart folder Sets the working directory to the user's autostart folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Change to the crash dumps folder Change to the crash dumps folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's desktop folder Sets the working directory to the user's desktop folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the documents folder Sets the working directory to the documents folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's downloads folder Sets the working directory to the user's downloads folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's Dropbox folder Sets the working directory to the user's Dropbox folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes to the /etc directory Changes to the /etc directory
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the fonts folder Sets the working directory to the fonts folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's home folder Sets the working directory to the user's home folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the logs folder Sets the working directory to the logs folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's music folder Sets the working directory to the user's music folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's OneDrive folder Sets the working directory to the user's OneDrive folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's pictures folder Sets the working directory to the user's pictures folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Public folder Sets the working directory to the Public folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the 'recent' folder Sets the working directory to the 'recent' folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the recycle bin folder Sets the working directory to the recycle bin folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to a repository Sets the working directory to a repository
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's repos folder Sets the working directory to the user's repos folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the root directory Sets the working directory to the root directory
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's screenshots folder Sets the working directory to the user's screenshots folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the PowerShell scripts folder Sets the working directory to the PowerShell scripts folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's SSH folder Sets the working directory to the user's SSH folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the temporary folder Sets the working directory to the temporary folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the templates folder Sets the working directory to the templates folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the trash folder Sets the working directory to the trash folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to one level up Sets the working directory to one level up
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to two directory levels up Sets the working directory to two directory levels up
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to three directory levels up Sets the working directory to three directory levels up
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to four directory levels up Sets the working directory to four directory levels up
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the users directory Sets the working directory to the users directory
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's videos folder Sets the working directory to the user's videos folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Windows directory Sets the working directory to the Windows directory
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes the wallpaper Changes the wallpaper
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for admin rights Check for admin rights
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Query the app status Query the app status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the BIOS status Checks the BIOS status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the CPU status Checks the CPU status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks credentials Checks credentials
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-credentials.ps1 PS> ./check-credentials.ps1
Enter username and password, please. Enter username and password, please.
Your credentials are correct. Your credentials are correct.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -30,7 +30,7 @@ try {
$pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password)) $pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password))
if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." } if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." }
"✔️ Your credentials are correct." " Your credentials are correct."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the current day Determines the current day
.DESCRIPTION .DESCRIPTION
This PowerShell script determines and speaks the current day by text-to-speech (TTS). This PowerShell script determines and speaks the current day by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-day PS> ./check-day
It's Sunday. It's Sunday.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the DNS resolution Check the DNS resolution
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time of dusk Checks the time of dusk
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Easter Sunday Checks the time until Easter Sunday
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the file system of a drive (needs admin rights) Checks the file system of a drive (needs admin rights)
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the drive to check Specifies the drive to check
.EXAMPLE .EXAMPLE
PS> ./check-file-system C PS> ./check-file-system C
file system on drive C is clean file system on drive C is clean
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a file Checks a file
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the firewall status Checks the firewall status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the GPU status Checks the GPU status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the hardware Checks the hardware
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the system health Checks the system health
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Independence Day Checks the time until Independence Day
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv4 address for validity Checks an IPv4 address for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the IPv4 address to check Specifies the IPv4 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv4-address 192.168.11.22 PS> ./check-ipv4-address 192.168.11.22
IPv4 192.168.11.22 is valid IPv4 192.168.11.22 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -29,7 +29,7 @@ try {
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" } if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
if (IsIPv4AddressValid $Address) { if (IsIPv4AddressValid $Address) {
"✔️ IPv4 $Address is valid" " IPv4 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv4 address: $Address" write-warning "Invalid IPv4 address: $Address"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv6 address for validity Checks an IPv6 address for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the IPv6 address to check Specifies the IPv6 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2 PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
IPv6 fe80::200:5aee:feaa:20a2 is valid IPv6 fe80::200:5aee:feaa:20a2 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -43,7 +43,7 @@ try {
$Address = read-host "Enter IPv6 address to validate" $Address = read-host "Enter IPv6 address to validate"
} }
if (IsIPv6AddressValid $Address) { if (IsIPv6AddressValid $Address) {
"✔️ IPv6 $Address is valid" " IPv6 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv6 address: $Address" write-warning "Invalid IPv6 address: $Address"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the ISS position Checks the ISS position
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given MAC address for validity Checks the given MAC address for validity
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
Specifies the MAC address to check Specifies the MAC address to check
.EXAMPLE .EXAMPLE
PS> ./check-mac-address 11:22:33:44:55:66 PS> ./check-mac-address 11:22:33:44:55:66
MAC address 11:22:33:44:55:66 is valid MAC address 11:22:33:44:55:66 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -31,7 +31,7 @@ try {
$MAC = read-host "Enter MAC address to validate" $MAC = read-host "Enter MAC address to validate"
} }
if (IsMACAddressValid $MAC) { if (IsMACAddressValid $MAC) {
"✔️ MAC address $MAC is valid" " MAC address $MAC is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid MAC address: $MAC" write-warning "Invalid MAC address: $MAC"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Midnight Checks for Midnight
.DESCRIPTION .DESCRIPTION

View File

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Gets the current month name Gets the current month name
.DESCRIPTION .DESCRIPTION
This PowerShell script determines and speaks the current month name by text-to-speech (TTS). This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-month PS> ./check-month
It's December. It's December.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the Moon phase Checks the Moon phase
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the network details Checks the network details
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Noon Checks for Noon
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the OS status Checks the OS status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Outlook's inbox Checks Outlook's inbox
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a password Checks a password
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for pending reboots Check for pending reboots
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PnP devices Checks PnP devices
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the power status Checks the power status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the PowerShell status Check the PowerShell status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PowerShell file(s) for validity Checks PowerShell file(s) for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the file pattern to the PowerShell file(s) Specifies the file pattern to the PowerShell file(s)
.EXAMPLE .EXAMPLE
PS> ./check-ps1-file *.ps1 PS> ./check-ps1-file *.ps1
Valid PowerShell in myfile.ps1 Valid PowerShell in myfile.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -24,7 +24,7 @@ try {
$syntaxError = @() $syntaxError = @()
[void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError) [void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError)
if ("$syntaxError" -ne "") { throw "$syntaxError" } if ("$syntaxError" -ne "") { throw "$syntaxError" }
"✔️ Valid PowerShell in $($file.Name)" " Valid PowerShell in $($file.Name)"
} }
exit 0 # success exit 0 # success
} catch { } catch {

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the RAM Checks the RAM
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a Git repository Checks a Git repository
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Git repositories Checks Git repositories
.DESCRIPTION .DESCRIPTION
@ -10,7 +10,7 @@
Checking parent folder 📂C:\Repos... 16 subfolders Checking parent folder 📂C:\Repos... 16 subfolders
Checking 📂rust repository (1/16)... Checking 📂rust repository (1/16)...
... ...
Checked all 16 Git repos in 📂C:\Repos in 356s. Checked all 16 Git repos in 📂C:\Repos in 356s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Saint Nicholas Day Checks the time until Saint Nicholas Day
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the SMART device status Checks the SMART device status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the software Checks the software
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given subnet mask for validity Checks the given subnet mask for validity
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the subnet mask to check Specifies the subnet mask to check
.EXAMPLE .EXAMPLE
PS> ./check-subnet-mask.ps1 255.255.255.0 PS> ./check-subnet-mask.ps1 255.255.255.0
subnet mask 255.255.255.0 is valid subnet mask 255.255.255.0 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -29,7 +29,7 @@ try {
if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" } if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" }
if (IsSubNetMaskValid $address) { if (IsSubNetMaskValid $address) {
"✔️ subnet mask $Address is valid" " subnet mask $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid subnet mask: $address" write-warning "Invalid subnet mask: $address"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the swap space Checks the swap space
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks symlinks in a folder Checks symlinks in a folder
.DESCRIPTION .DESCRIPTION
@ -9,7 +9,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-symlinks C:\Users PS> ./check-symlinks C:\Users
Checking symlinks at 📂C:\Users including subfolders... Checking symlinks at 📂C:\Users including subfolders...
Found 0 broken symlinks at 📂C:\Users in 60 sec Found 0 broken symlinks at 📂C:\Users in 60 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -42,11 +42,11 @@ try {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
if ($NumTotal -eq 0) { if ($NumTotal -eq 0) {
"✔️ No symlink found at 📂$FullPath in $Elapsed sec" " No symlink found at 📂$FullPath in $Elapsed sec"
} elseif ($NumBroken -eq 1) { } elseif ($NumBroken -eq 1) {
"✔️ Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec" " Found $NumBroken broken symlink at 📂$FullPath in $Elapsed sec"
} else { } else {
"✔️ Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec" " Found $NumBroken broken symlinks at 📂$FullPath in $Elapsed sec"
} }
exit $NumBroken exit $NumBroken
} catch { } catch {

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time zone Checks the time zone
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the uptime Checks the uptime
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the VPN status Checks the VPN status
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the weather Checks the weather
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the week number Determines the week number
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the wind conditions Checks the wind conditions
.DESCRIPTION .DESCRIPTION

View File

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the validity of the Windows system files (requires admin rights) Checks the validity of the Windows system files (requires admin rights)
.DESCRIPTION .DESCRIPTION
This PowerShell script checks the validity of the Windows system files. It requires admin rights. This PowerShell script checks the validity of the Windows system files. It requires admin rights.
.EXAMPLE .EXAMPLE
PS> ./check-windows-system-files.ps1 PS> ./check-windows-system-files.ps1
checked Windows system files checked Windows system files
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -18,7 +18,7 @@ try {
sfc /verifyOnly sfc /verifyOnly
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" } if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }
"✔️ checked Windows system files" " checked Windows system files"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Verifies an XML file Verifies an XML file
.DESCRIPTION .DESCRIPTION
@ -7,7 +7,7 @@
Specifies the path to the XML file Specifies the path to the XML file
.EXAMPLE .EXAMPLE
PS> ./check-xml-file.ps1 myfile.xml PS> ./check-xml-file.ps1 myfile.xml
Valid XML in 📄myfile.xml Valid XML in 📄myfile.xml
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -34,7 +34,7 @@ try {
if ($script:ErrorCount -gt 0) { throw "Invalid XML" } if ($script:ErrorCount -gt 0) { throw "Invalid XML" }
"✔️ Valid XML in 📄$path" " Valid XML in 📄$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ $($Error[0]) in 📄$path" "⚠️ $($Error[0]) in 📄$path"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks all XML files in a directory tree Checks all XML files in a directory tree
.DESCRIPTION .DESCRIPTION
@ -8,7 +8,7 @@
.EXAMPLE .EXAMPLE
PS> ./check-xml-files.ps1 C:\Windows PS> ./check-xml-files.ps1 C:\Windows
... ...
Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -31,7 +31,7 @@ try {
[int]$total = $valid + $invalid [int]$total = $valid + $invalid
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec" " Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans a repo Cleans a repo
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans all Git repositories in a folder from untracked files Cleans all Git repositories in a folder from untracked files
.DESCRIPTION .DESCRIPTION

View File

@ -1,11 +1,11 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the DNS cache Clears the DNS cache
.DESCRIPTION .DESCRIPTION
This PowerShell script clears the DNS client cache of the local computer. This PowerShell script clears the DNS client cache of the local computer.
.EXAMPLE .EXAMPLE
PS> ./clear-dns-cache.ps1 PS> ./clear-dns-cache.ps1
Cleared DNS cache in 1 sec Cleared DNS cache in 1 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -18,7 +18,7 @@ try {
Clear-DnsClientCache Clear-DnsClientCache
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ Cleared DNS cache in $Elapsed sec" " Cleared DNS cache in $Elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the recycle bin folder Clears the recycle bin folder
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones Git repos Clones Git repos
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones a shallow Git repo Clones a shallow Git repo
.DESCRIPTION .DESCRIPTION
@ -24,7 +24,7 @@ try {
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Cloned the shallow repository in $elapsed sec" " Cloned the shallow repository in $elapsed sec"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the calculator application Closes the calculator application
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the Chrome browser Closes the Chrome browser
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes Microsoft's Cortana application Closes Microsoft's Cortana application
.DESCRIPTION .DESCRIPTION

View File

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the Edge browser Closes the Edge browser
.DESCRIPTION .DESCRIPTION

Some files were not shown because too many files have changed in this diff Show More