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
Adds firewall rules for executables (needs admin rights).
.DESCRIPTION

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Checks Git repositories
.DESCRIPTION
@ -10,7 +10,7 @@
Checking parent folder 📂C:\Repos... 16 subfolders
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
https://github.com/fleschutz/PowerShell
.NOTES

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Checks all XML files in a directory tree
.DESCRIPTION
@ -8,7 +8,7 @@
.EXAMPLE
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
https://github.com/fleschutz/PowerShell
.NOTES
@ -31,7 +31,7 @@ try {
[int]$total = $valid + $invalid
[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
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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