Update the manual pages

This commit is contained in:
Markus Fleschutz 2023-08-06 21:36:33 +02:00
parent fa9d43b715
commit 2b997e0487
560 changed files with 1849 additions and 1173 deletions

View File

@ -25,7 +25,7 @@ PS> ./add-firewall-rules.ps1 [[-PathToExecutables] <String>] [<CommonParameters>
Example Example
------- -------
```powershell ```powershell
PS> ./add-firewall-rules C:\MyApp\bin PS> ./add-firewall-rules.ps1 C:\MyApp\bin
Adding firewall rule for C:\MyApp\bin\app1.exe Adding firewall rule for C:\MyApp\bin\app1.exe
Adding firewall rule for C:\MyApp\bin\app2.exe Adding firewall rule for C:\MyApp\bin\app2.exe
... ...
@ -51,7 +51,7 @@ Script Content
.PARAMETER PathToExecutables .PARAMETER PathToExecutables
Specifies the path to the executables Specifies the path to the executables
.EXAMPLE .EXAMPLE
PS> ./add-firewall-rules C:\MyApp\bin PS> ./add-firewall-rules.ps1 C:\MyApp\bin
Adding firewall rule for C:\MyApp\bin\app1.exe Adding firewall rule for C:\MyApp\bin\app1.exe
Adding firewall rule for C:\MyApp\bin\app2.exe Adding firewall rule for C:\MyApp\bin\app2.exe
... ...
@ -109,4 +109,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of add-firewall-rules.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of add-firewall-rules.ps1 as of 08/06/2023 21:36:04)*

View File

@ -25,7 +25,7 @@ PS> ./add-memo.ps1 [[-text] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./add-memo "Buy apples" PS> ./add-memo.ps1 "Buy apples"
✔️ saved to 📄/home/markus/Memos.csv ✔️ saved to 📄/home/markus/Memos.csv
``` ```
@ -49,7 +49,7 @@ Script Content
.PARAMETER text .PARAMETER text
Specifies the text to memorize Specifies the text to memorize
.EXAMPLE .EXAMPLE
PS> ./add-memo "Buy apples" PS> ./add-memo.ps1 "Buy apples"
✔️ saved to 📄/home/markus/Memos.csv ✔️ saved to 📄/home/markus/Memos.csv
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -79,4 +79,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of add-memo.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of add-memo.ps1 as of 08/06/2023 21:36:05)*

View File

@ -25,7 +25,7 @@ PS> ./alert.ps1 [[-Message] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./alert "Harddisk failure" PS> ./alert.ps1 "Harddisk failure"
``` ```
@ -48,7 +48,7 @@ Script Content
.PARAMETER message .PARAMETER message
Specifies the alert message Specifies the alert message
.EXAMPLE .EXAMPLE
PS> ./alert "Harddisk failure" PS> ./alert.ps1 "Harddisk failure"
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -71,4 +71,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of alert.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of alert.ps1 as of 08/06/2023 21:36:05)*

View File

@ -25,7 +25,7 @@ PS> ./build-repo.ps1 [[-RepoDir] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./build-repo C:\MyRepo PS> ./build-repo.ps1 C:\MyRepo
``` ```
@ -48,7 +48,7 @@ Script Content
.PARAMETER RepoDir .PARAMETER RepoDir
Specifies the path to the Git repository Specifies the path to the Git repository
.EXAMPLE .EXAMPLE
PS> ./build-repo C:\MyRepo PS> ./build-repo.ps1 C:\MyRepo
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -177,4 +177,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1 as of 08/06/2023 21:36:05)*

View File

@ -25,7 +25,7 @@ PS> ./build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./build-repos C:\MyRepos PS> ./build-repos.ps1 C:\MyRepos
``` ```
@ -48,7 +48,7 @@ Script Content
.PARAMETER ParentDir .PARAMETER ParentDir
Specifies the path to the parent folder Specifies the path to the parent folder
.EXAMPLE .EXAMPLE
PS> ./build-repos C:\MyRepos PS> ./build-repos.ps1 C:\MyRepos
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -82,4 +82,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of build-repos.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of build-repos.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./cd-autostart.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./cd-autostart PS> ./cd-autostart.ps1
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script changes the working directory to the user's autostart folder. This PowerShell script changes the working directory to the user's autostart folder.
.EXAMPLE .EXAMPLE
PS> ./cd-autostart PS> ./cd-autostart.ps1
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-autostart.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-autostart.ps1 as of 08/06/2023 21:36:05)*

View File

@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-crashdumps.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-crashdumps.ps1 as of 08/06/2023 21:36:05)*

View File

@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-desktop.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-desktop.ps1 as of 08/06/2023 21:36:05)*

View File

@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-docs.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-docs.ps1 as of 08/06/2023 21:36:05)*

View File

@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-downloads.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-downloads.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-dropbox PS> ./cd-dropbox
📂/home/Markus/Dropbox 📂C:\Users\Markus\Dropbox
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's Dropbox folder. This PowerShell script changes the working directory to the user's Dropbox folder.
.EXAMPLE .EXAMPLE
PS> ./cd-dropbox PS> ./cd-dropbox
📂/home/Markus/Dropbox 📂C:\Users\Markus\Dropbox
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-dropbox.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-dropbox.ps1 as of 08/06/2023 21:36:05)*

View File

@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-etc.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-etc.ps1 as of 08/06/2023 21:36:05)*

View File

@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-fonts.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-fonts.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-home PS> ./cd-home
📂/home/Markus 📂C:\Users\Markus
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's home directory. This PowerShell script changes the working directory to the user's home directory.
.EXAMPLE .EXAMPLE
PS> ./cd-home PS> ./cd-home
📂/home/Markus 📂C:\Users\Markus
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-home.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-home.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,4 +48,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-logs.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-logs.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-music PS> ./cd-music
📂/home/Markus/Music 📂C:\Users\Markus\Music
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's music folder. This PowerShell script changes the working directory to the user's music folder.
.EXAMPLE .EXAMPLE
PS> ./cd-music PS> ./cd-music
📂/home/Markus/Music 📂C:\Users\Markus\Music
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-music.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-music.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-onedrive PS> ./cd-onedrive
📂/home/Markus/OneDrive 📂C:\Users\Markus\OneDrive
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's OneDrive folder. This PowerShell script changes the working directory to the user's OneDrive folder.
.EXAMPLE .EXAMPLE
PS> ./cd-onedrive PS> ./cd-onedrive
📂/home/Markus/OneDrive 📂C:\Users\Markus\OneDrive
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-onedrive.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-onedrive.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-pics PS> ./cd-pics
📂/home/Markus/Pictures 📂C:\Users\Markus\Pictures
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's pictures folder. This PowerShell script changes the working directory to the user's pictures folder.
.EXAMPLE .EXAMPLE
PS> ./cd-pics PS> ./cd-pics
📂/home/Markus/Pictures 📂C:\Users\Markus\Pictures
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -52,9 +52,7 @@ try {
} else { } else {
$Path = [Environment]::GetFolderPath('MyPictures') $Path = [Environment]::GetFolderPath('MyPictures')
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Pictures folder at 📂$Path doesn't exist (yet)" }
throw "Pictures folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -64,4 +62,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-pics.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-pics.ps1 as of 08/06/2023 21:36:05)*

View File

@ -52,16 +52,14 @@ try {
} else { } else {
$Path = Resolve-Path "~/../Public" $Path = Resolve-Path "~/../Public"
} }
if (Test-Path "$Path" -pathType container) { if (-not(Test-Path "$Path" -pathType container)) { throw "Public folder at 📂$Path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
}
throw "Public folder at 📂$Path doesn't exist (yet)"
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-public.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-public.ps1 as of 08/06/2023 21:36:05)*

View File

@ -43,9 +43,7 @@ try {
} else { } else {
$Path = "C:\$Recycle.Bin\" + "$(GetCurrentUserSID)" $Path = "C:\$Recycle.Bin\" + "$(GetCurrentUserSID)"
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Recycle bin folder at 📂$Path doesn't exist (yet)" }
throw "Recycle bin folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -55,4 +53,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-recycle-bin.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-recycle-bin.ps1 as of 08/06/2023 21:36:05)*

View File

@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-repos PS> ./cd-repos
📂C:\Users\Markus\Repos 📂C:\Users\Markus\source\Repos
``` ```
@ -50,7 +50,7 @@ Script Content
Specifies an additional relative subpath (optional) Specifies an additional relative subpath (optional)
.EXAMPLE .EXAMPLE
PS> ./cd-repos PS> ./cd-repos
📂C:\Users\Markus\Repos 📂C:\Users\Markus\source\Repos
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -69,9 +69,7 @@ try {
} else { } else {
throw "The folder for Git repositories in your home directory doesn't exist (yet)." throw "The folder for Git repositories in your home directory doesn't exist (yet)."
} }
if (-not(Test-Path "$Path" -pathType Container)) { if (-not(Test-Path "$Path" -pathType Container)) { throw "The path to 📂$Path doesn't exist (yet)." }
throw "The path to 📂$Path doesn't exist (yet)."
}
$Path = Resolve-Path "$Path" $Path = Resolve-Path "$Path"
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
@ -82,4 +80,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 08/06/2023 21:36:05)*

View File

@ -57,4 +57,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-root.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-root.ps1 as of 08/06/2023 21:36:05)*

View File

@ -55,4 +55,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-screenshots.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-screenshots.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-scripts PS> ./cd-scripts
📂/home/Markus/PowerShell/Scripts 📂C:\Users\Markus\source\repos\PowerShell\Scripts
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the PowerShell scripts folder. This PowerShell script changes the working directory to the PowerShell scripts folder.
.EXAMPLE .EXAMPLE
PS> ./cd-scripts PS> ./cd-scripts
📂/home/Markus/PowerShell/Scripts 📂C:\Users\Markus\source\repos\PowerShell\Scripts
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "$PSScriptRoot" $Path = Resolve-Path "$PSScriptRoot"
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "PowerShell scripts folder at 📂$Path doesn't exist (yet)" }
throw "PowerShell scripts folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-scripts.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-scripts.ps1 as of 08/06/2023 21:36:05)*

View File

@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-ssh PS> ./cd-ssh
📂/home/Markus/.ssh 📂C:\Users\Markus\.ssh
``` ```
@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's SSH folder. This PowerShell script changes the working directory to the user's SSH folder.
.EXAMPLE .EXAMPLE
PS> ./cd-ssh PS> ./cd-ssh
📂/home/Markus/.ssh 📂C:\Users\Markus\.ssh
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,16 +48,14 @@ Script Content
try { try {
$Path = Resolve-Path "~/.ssh" $Path = Resolve-Path "~/.ssh"
if (Test-Path "$Path" -pathType container) { if (-not(Test-Path "$Path" -pathType container)) { throw "User's SSH folder at 📂$Path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
}
throw "User's SSH folder at 📂$Path doesn't exist (yet)"
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-ssh.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-ssh.ps1 as of 08/06/2023 21:36:05)*

View File

@ -40,9 +40,7 @@ function GetTempDir {
try { try {
$Path = GetTempDir $Path = GetTempDir
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Temporary folder at 📂$Path doesn't exist (yet)" }
throw "Temporary folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -52,4 +50,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-temp.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-temp.ps1 as of 08/06/2023 21:36:05)*

View File

@ -52,16 +52,14 @@ try {
} else { } else {
$Path = [Environment]::GetFolderPath('Templates') $Path = [Environment]::GetFolderPath('Templates')
} }
if (Test-Path "$Path" -pathType container) { if (-not(Test-Path "$Path" -pathType container)) { throw "Templates folder at 📂$Path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
}
throw "Templates folder at 📂$Path doesn't exist (yet)"
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-templates.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-templates.ps1 as of 08/06/2023 21:36:05)*

View File

@ -43,9 +43,7 @@ try {
} else { } else {
$Path = "C:\$Recycle.Bin\" + "$(GetCurrentUserSID)" $Path = "C:\$Recycle.Bin\" + "$(GetCurrentUserSID)"
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Trash folder at 📂$Path doesn't exist (yet)" }
throw "Trash folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -55,4 +53,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-trash.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-trash.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path ".." $Path = Resolve-Path ".."
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
throw "Folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-up.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "../.." $Path = Resolve-Path "../.."
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
throw "Folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up2.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-up2.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "../../.." $Path = Resolve-Path "../../.."
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
throw "Folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up3.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-up3.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "../../../.." $Path = Resolve-Path "../../../.."
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
throw "Folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up4.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-up4.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "$HOME/.." $Path = Resolve-Path "$HOME/.."
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Users directory at 📂$Path doesn't exist (yet)" }
throw "Users directory at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-users.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-users.ps1 as of 08/06/2023 21:36:05)*

View File

@ -52,9 +52,7 @@ try {
} else { } else {
$Path = [Environment]::GetFolderPath('MyVideos') $Path = [Environment]::GetFolderPath('MyVideos')
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Videos folder at 📂$Path doesn't exist (yet)" }
throw "Videos folder at 📂$Path doesn't exist (yet)"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -64,4 +62,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-videos.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-videos.ps1 as of 08/06/2023 21:36:05)*

View File

@ -48,9 +48,7 @@ Script Content
try { try {
$Path = Resolve-Path "$env:WINDIR" $Path = Resolve-Path "$env:WINDIR"
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$Path" -pathType container)) { throw "Windows directory at 📂$Path doesn't exist" }
throw "Windows directory at 📂$Path doesn't exist"
}
Set-Location "$Path" Set-Location "$Path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
@ -60,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-windows.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of cd-windows.ps1 as of 08/06/2023 21:36:05)*

View File

@ -79,4 +79,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of change-wallpaper.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of change-wallpaper.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./check-apps.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-apps PS> ./check-apps.ps1
✅ 119 apps installed, 11 upgrades available ✅ 119 apps installed, 11 upgrades available
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the application status and prints it. This PowerShell script queries the application status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-apps PS> ./check-apps.ps1
✅ 119 apps installed, 11 upgrades available ✅ 119 apps installed, 11 upgrades available
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -72,4 +72,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-apps.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-apps.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./check-battery.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-battery PS> ./check-battery.ps1
⚠️ Battery 9% low, 54 min remaining ⚠️ Battery 9% low, 54 min remaining
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the status of the system battery and prints it. This PowerShell script queries the status of the system battery and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-battery PS> ./check-battery.ps1
⚠️ Battery 9% low, 54 min remaining ⚠️ Battery 9% low, 54 min remaining
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -86,4 +86,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-battery.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-battery.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,8 +16,8 @@ PS> ./check-bios.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-bios PS> ./check-bios.ps1
✅ BIOS 'F6', release ALASKA - 1072009, S/N NXA82EV0EBB0760 by American Megatrends Inc. ✅ BIOS model F6 version ALASKA - 1072009 by American Megatrends Inc.
``` ```
@ -38,8 +38,8 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the BIOS status and prints it. This PowerShell script queries the BIOS status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-bios PS> ./check-bios.ps1
✅ BIOS 'F6', release ALASKA - 1072009, S/N NXA82EV0EBB0760 by American Megatrends Inc. ✅ BIOS model F6 version ALASKA - 1072009 by American Megatrends Inc.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,24 +48,26 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
Write-Progress "⏳ Querying BIOS..." Write-Progress "⏳ Querying BIOS details..."
$Model = (sudo dmidecode -s system-product-name) $Model = (sudo dmidecode -s system-product-name)
if ("$Model" -ne "") { if ("$Model" -ne "") {
$Manufacturer = (sudo dmidecode -s system-manufacturer)
$Version = (sudo dmidecode -s bios-version) $Version = (sudo dmidecode -s bios-version)
$RelDate = (sudo dmidecode -s bios-release-date) $RelDate = (sudo dmidecode -s bios-release-date)
Write-Host "✅ BIOS $Model by $Manufacturer ($Version release of $RelDate)" $Manufacturer = (sudo dmidecode -s system-manufacturer)
Write-Host "✅ BIOS model $Model version $Version of $RelDate by $Manufacturer"
} }
Write-Progress -completed "." Write-Progress -completed "."
} else { } else {
# Write-Progress "⏳ Querying BIOS..."
$BIOS = Get-CimInstance -ClassName Win32_BIOS $BIOS = Get-CimInstance -ClassName Win32_BIOS
$Model = $BIOS.Name.Trim() $Model = $BIOS.Name.Trim()
$Manufacturer = $BIOS.Manufacturer.Trim()
$Serial = $BIOS.SerialNumber.Trim()
$Version = $BIOS.Version.Trim() $Version = $BIOS.Version.Trim()
# Write-Progress -completed "." $Serial = $BIOS.SerialNumber.Trim()
Write-Host "✅ BIOS '$Model', release $Version, S/N $Serial by $Manufacturer" $Manufacturer = $BIOS.Manufacturer.Trim()
if ($Serial -eq "To be filled by O.E.M.") {
Write-Host "✅ BIOS model $Model version $Version by $Manufacturer"
} else {
Write-Host "✅ BIOS model $Model version $Version, S/N $Serial, by $Manufacturer"
}
} }
exit 0 # success exit 0 # success
} catch { } catch {
@ -74,4 +76,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-bios.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-bios.ps1 as of 08/06/2023 21:36:05)*

View File

@ -23,7 +23,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the CPU status and prints it (name, type, speed, temperature, etc). This PowerShell script queries the CPU status and prints it (name, type, speed, temperature, etc).
.EXAMPLE .EXAMPLE
PS> ./check-cpu PS> ./check-cpu.ps1
✅ AMD Ryzen 5 5500U with Radeon Graphics (CPU0, 2100MHz, 31.3°C) ✅ AMD Ryzen 5 5500U with Radeon Graphics (CPU0, 2100MHz, 31.3°C)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -103,4 +103,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-cpu.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-cpu.ps1 as of 08/06/2023 21:36:05)*

View File

@ -57,4 +57,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-day.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-day.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./check-dns.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-dns PS> ./check-dns.ps1
✅ DNS resolves 156.5 domains per second ✅ DNS resolves 156.5 domains per second
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script measures and prints the DNS resolution speed by using 200 popular domains. This PowerShell script measures and prints the DNS resolution speed by using 200 popular domains.
.EXAMPLE .EXAMPLE
PS> ./check-dns PS> ./check-dns.ps1
✅ DNS resolves 156.5 domains per second ✅ DNS resolves 156.5 domains per second
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -72,4 +72,4 @@ foreach($row in $table){$nop=Resolve-DNSName $row.Domain}
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-dns.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-dns.ps1 as of 08/06/2023 21:36:05)*

View File

@ -91,4 +91,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-drive-space.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-drive-space.ps1 as of 08/06/2023 21:36:05)*

View File

@ -25,8 +25,8 @@ PS> ./check-drives.ps1 [[-MinLevel] <Int32>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-drives PS> ./check-drives.ps1
✅ Drive C: uses 87GB of 249GB ✅ Drive C: with 250GB at 10%, 225GB free
``` ```
@ -49,8 +49,8 @@ Script Content
.PARAMETER MinLevel .PARAMETER MinLevel
Specifies the minimum warning level (10 GB by default) Specifies the minimum warning level (10 GB by default)
.EXAMPLE .EXAMPLE
PS> ./check-drives PS> ./check-drives.ps1
✅ Drive C: uses 87GB of 249GB ✅ Drive C: with 250GB at 10%, 225GB free
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -91,10 +91,14 @@ try {
} elseif ($Free -eq 0) { } elseif ($Free -eq 0) {
Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is 100% full" Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is 100% full"
} elseif ($Free -lt $MinLevel) { } elseif ($Free -lt $MinLevel) {
Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is nearly full ($(Bytes2String $Free) free)" Write-Host "⚠️ Drive $ID with $(Bytes2String $Total) is nearly full, $(Bytes2String $Free) free"
} else { } else {
[int]$Percent = ($Used * 100) / $Total [int]$Percent = ($Used * 100) / $Total
Write-Host "✅ Drive $ID $Percent% full, $(Bytes2String $Free) of $(Bytes2String $Total) free" if ($Percent -gt 90) {
Write-Host "✅ Drive $ID with $(Bytes2String $Total) is $Percent% full, $(Bytes2String $Free) free"
} else {
Write-Host "✅ Drive $ID with $(Bytes2String $Total) at $Percent%, $(Bytes2String $Free) free"
}
} }
} }
exit 0 # success exit 0 # success
@ -104,4 +108,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-drives.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-drives.ps1 as of 08/06/2023 21:36:05)*

View File

@ -23,7 +23,8 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the time of dusk and answers by text-to-speech (TTS). This PowerShell script queries the time of dusk and answers by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-dusk PS> ./check-dusk.ps1
Dusk is in 2 hours at 8 PM.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -54,7 +55,7 @@ try {
$TimeSpan = TimeSpanToString($Now - $Dusk) $TimeSpan = TimeSpanToString($Now - $Dusk)
$Reply = "Dusk was $TimeSpan ago at $($Dusk.ToShortTimeString())." $Reply = "Dusk was $TimeSpan ago at $($Dusk.ToShortTimeString())."
} }
& "$PSScriptRoot/speak-english.ps1" "$Reply" Write-Output $Reply
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -62,4 +63,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-dusk.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-dusk.ps1 as of 08/06/2023 21:36:05)*

View File

@ -61,4 +61,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-easter-sunday.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-easter-sunday.ps1 as of 08/06/2023 21:36:05)*

View File

@ -75,4 +75,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1 as of 08/06/2023 11:42:25)* *(generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1 as of 08/06/2023 21:36:05)*

View File

@ -170,4 +170,4 @@ function Check-Header { param( $path )
Check-Header $Path Check-Header $Path
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-file.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-file.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./check-firewall.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-firewall PS> ./check-firewall.ps1
✅ Firewall enabled ✅ Firewall enabled
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the status of the firewall and prints it. This PowerShell script queries the status of the firewall and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-firewall PS> ./check-firewall.ps1
✅ Firewall enabled ✅ Firewall enabled
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -65,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-firewall.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-firewall.ps1 as of 08/06/2023 21:36:05)*

View File

@ -23,7 +23,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the GPU status and prints it. This PowerShell script queries the GPU status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-gpu PS> ./check-gpu.ps1
✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32 bit, 59 Hz, driver 31.0.15.1740, status OK) ✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32 bit, 59 Hz, driver 31.0.15.1740, status OK)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -65,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-gpu.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-gpu.ps1 as of 08/06/2023 21:36:05)*

View File

@ -63,4 +63,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-hardware.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-hardware.ps1 as of 08/06/2023 21:36:05)*

View File

@ -58,4 +58,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-health.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-health.ps1 as of 08/06/2023 21:36:05)*

View File

@ -16,7 +16,7 @@ PS> ./check-independence-day.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-independence-day PS> ./check-independence-day.ps1
``` ```
@ -37,7 +37,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS). This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-independence-day PS> ./check-independence-day.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -61,4 +61,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-independence-day.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-independence-day.ps1 as of 08/06/2023 21:36:05)*

View File

@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ip.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ip.ps1 as of 08/06/2023 21:36:06)*

View File

@ -84,4 +84,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv4-address.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ipv4-address.ps1 as of 08/06/2023 21:36:06)*

View File

@ -98,4 +98,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv6-address.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ipv6-address.ps1 as of 08/06/2023 21:36:06)*

View File

@ -55,4 +55,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-iss-position.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-iss-position.ps1 as of 08/06/2023 21:36:06)*

View File

@ -87,4 +87,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-mac-address.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-mac-address.ps1 as of 08/06/2023 21:36:06)*

View File

@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-midnight.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-midnight.ps1 as of 08/06/2023 21:36:06)*

View File

@ -57,4 +57,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-month.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-month.ps1 as of 08/06/2023 21:36:06)*

View File

@ -76,4 +76,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-moon-phase.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-moon-phase.ps1 as of 08/06/2023 21:36:06)*

View File

@ -64,4 +64,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-network.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-network.ps1 as of 08/06/2023 21:36:06)*

View File

@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-new-year.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-new-year.ps1 as of 08/06/2023 21:36:06)*

View File

@ -59,4 +59,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-noon.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-noon.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./check-os.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-os PS> ./check-os.ps1
✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P) ✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the operating system status and prints it. This PowerShell script queries the operating system status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-os PS> ./check-os.ps1
✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P) ✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -73,4 +73,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-os.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-os.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,8 @@ PS> ./check-outlook.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-outlook PS> ./check-outlook.ps1
✅ No new mails.
``` ```
@ -37,7 +38,8 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script checks the inbox of Outlook for new/unread mails. This PowerShell script checks the inbox of Outlook for new/unread mails.
.EXAMPLE .EXAMPLE
PS> ./check-outlook PS> ./check-outlook.ps1
✅ No new mails.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -63,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-outlook.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-outlook.ps1 as of 08/06/2023 21:36:06)*

View File

@ -25,7 +25,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-password qwerty PS> ./check-password qwerty
⚠️ Bad password, it's already listed in 10584568 known security breaches! ⚠️ Bad password, it's already listed in 10584568 known security breaches!
``` ```
@ -47,7 +47,7 @@ Script Content
This PowerShell script checks the security status of the given password by haveibeenpwned.com This PowerShell script checks the security status of the given password by haveibeenpwned.com
.EXAMPLE .EXAMPLE
PS> ./check-password qwerty PS> ./check-password qwerty
⚠️ Bad password, it's already listed in 10584568 known security breaches! ⚠️ Bad password, it's already listed in 10584568 known security breaches!
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -83,7 +83,7 @@ try {
if ($password -eq "") { $password = Read-Host "Enter the password" } if ($password -eq "") { $password = Read-Host "Enter the password" }
$NumBreaches = Get-PasswordPwnCount $password $NumBreaches = Get-PasswordPwnCount $password
if ($NumBreaches -eq 0) { if ($NumBreaches -eq 0) {
"👍 Password seems good, it's not listed in any known security breach (as of today)" "👍 Password seems good, it's not listed in any known security breach as of today."
} else { } else {
"⚠️ Bad password, it's listed already in $NumBreaches known security breaches!" "⚠️ Bad password, it's listed already in $NumBreaches known security breaches!"
} }
@ -94,4 +94,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-password.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-password.ps1 as of 08/06/2023 21:36:06)*

View File

@ -24,6 +24,7 @@ Script Content
This PowerShell script queries pending operating system reboots and prints it. This PowerShell script queries pending operating system reboots and prints it.
.EXAMPLE .EXAMPLE
./check-pending-reboot.ps1 ./check-pending-reboot.ps1
✅ No pending reboot
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -91,4 +92,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-pending-reboot.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-pending-reboot.ps1 as of 08/06/2023 21:36:06)*

View File

@ -25,7 +25,7 @@ PS> ./check-ping.ps1 [[-hosts] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-ping PS> ./check-ping.ps1
✅ Ping latency is 29ms average (13ms...109ms, 0 loss) ✅ Ping latency is 29ms average (13ms...109ms, 0 loss)
``` ```
@ -49,7 +49,7 @@ Script Content
.PARAMETER hosts .PARAMETER hosts
Specifies the hosts to check, seperated by commata (default is: amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,github.com,google.com,live.com,twitter.com,youtube.com) Specifies the hosts to check, seperated by commata (default is: amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,github.com,google.com,live.com,twitter.com,youtube.com)
.EXAMPLE .EXAMPLE
PS> ./check-ping PS> ./check-ping.ps1
✅ Ping latency is 29ms average (13ms...109ms, 0 loss) ✅ Ping latency is 29ms average (13ms...109ms, 0 loss)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -88,4 +88,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ping.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ping.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./check-powershell.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-powershell PS> ./check-powershell.ps1
✅ PowerShell Desktop edition 5.1.19041.2673 (10 modules, 1458 cmdlets, 172 aliases) ✅ PowerShell Desktop edition 5.1.19041.2673 (10 modules, 1458 cmdlets, 172 aliases)
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the PowerShell status and prints it. This PowerShell script queries the PowerShell status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-powershell PS> ./check-powershell.ps1
✅ PowerShell Desktop edition 5.1.19041.2673 (10 modules, 1458 cmdlets, 172 aliases) ✅ PowerShell Desktop edition 5.1.19041.2673 (10 modules, 1458 cmdlets, 172 aliases)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -64,4 +64,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-powershell.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-powershell.ps1 as of 08/06/2023 21:36:06)*

View File

@ -76,4 +76,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ps1-file.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ps1-file.ps1 as of 08/06/2023 21:36:06)*

View File

@ -23,7 +23,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the status of the installed RAM and prints it. This PowerShell script queries the status of the installed RAM and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-ram PS> ./check-ram.ps1
✅ 16GB DDR4 RAM @ 3200MHz (1.2V) in P0 CHANNEL A/DIMM 0 by Samsung ✅ 16GB DDR4 RAM @ 3200MHz (1.2V) in P0 CHANNEL A/DIMM 0 by Samsung
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -98,4 +98,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ram.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-ram.ps1 as of 08/06/2023 21:36:06)*

View File

@ -128,4 +128,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-repo.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-repo.ps1 as of 08/06/2023 21:36:06)*

View File

@ -56,4 +56,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-santa.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-santa.ps1 as of 08/06/2023 21:36:06)*

View File

@ -23,7 +23,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it. This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-smart-devices PS> ./check-smart-devices.ps1
✅ 1TB Samsung SSD 970 EVO via NVMe (2388 hours, 289x on, v2B2QEXE7, 37°C, selftest passed) ✅ 1TB Samsung SSD 970 EVO via NVMe (2388 hours, 289x on, v2B2QEXE7, 37°C, selftest passed)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -95,4 +95,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-smart-devices.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-smart-devices.ps1 as of 08/06/2023 21:36:06)*

View File

@ -67,4 +67,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-software.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-software.ps1 as of 08/06/2023 21:36:06)*

View File

@ -25,7 +25,7 @@ PS> ./check-subnet-mask.ps1 [[-address] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-subnet-mask 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
``` ```
@ -49,7 +49,7 @@ Script Content
.PARAMETER address .PARAMETER address
Specifies the subnet mask to check Specifies the subnet mask to check
.EXAMPLE .EXAMPLE
PS> ./check-subnet-mask 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
@ -84,4 +84,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-subnet-mask.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-subnet-mask.ps1 as of 08/06/2023 21:36:06)*

View File

@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-swap-space.ps1 PS> ./check-swap-space.ps1
✅ Swap space 10% full, 901MB of 1TB free ✅ Swap space with 1GB at 42%, 748MB free
``` ```
@ -50,7 +50,7 @@ Script Content
Specifies the minimum level (10 GB by default) Specifies the minimum level (10 GB by default)
.EXAMPLE .EXAMPLE
PS> ./check-swap-space.ps1 PS> ./check-swap-space.ps1
✅ Swap space 10% full, 901MB of 1TB free ✅ Swap space with 1GB at 42%, 748MB free
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -89,14 +89,18 @@ try {
if ($Total -eq 0) { if ($Total -eq 0) {
Write-Output "⚠️ No swap space configured" Write-Output "⚠️ No swap space configured"
} elseif ($Free -eq 0) { } elseif ($Free -eq 0) {
Write-Output "⚠️ Swap space of $(MB2String $Total) is full" Write-Output "⚠️ Swap space with $(MB2String $Total) is full"
} elseif ($Free -lt $MinLevel) { } elseif ($Free -lt $MinLevel) {
Write-Output "⚠️ Swap space of $(MB2String $Total) is nearly full ($(MB2String $Free) free)" Write-Output "⚠️ Swap space with $(MB2String $Total) is nearly full, only $(MB2String $Free) free"
} elseif ($Used -eq 0) { } elseif ($Used -eq 0) {
Write-Output "✅ Swap space with $(MB2String $Total) reserved" Write-Output "✅ Swap space with $(MB2String $Total) reserved"
} else { } else {
[int]$Percent = ($Used * 100) / $Total [int]$Percent = ($Used * 100) / $Total
Write-Output "✅ Swap space $Percent% full, $(MB2String $Free) of $(MB2String $Total) free" if ($Percent -ge 90) {
Write-Output "✅ Swap space with $(MB2String $Total) is $Percent% full, $(MB2String $Free) free"
} else {
Write-Output "✅ Swap space with $(MB2String $Total) at $Percent%, $(MB2String $Free) free"
}
} }
exit 0 # success exit 0 # success
} catch { } catch {
@ -105,4 +109,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-swap-space.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-swap-space.ps1 as of 08/06/2023 21:36:06)*

View File

@ -27,6 +27,8 @@ Example
------- -------
```powershell ```powershell
PS> ./check-symlinks C:\Users PS> ./check-symlinks C:\Users
⏳ Checking symlinks at 📂C:\Users including subfolders...
✔️ Found 0 broken symlinks at 📂C:\Users in 60 sec
``` ```
@ -51,6 +53,8 @@ Script Content
Specifies the path to the folder Specifies the path to the folder
.EXAMPLE .EXAMPLE
PS> ./check-symlinks C:\Users PS> ./check-symlinks C:\Users
⏳ Checking symlinks at 📂C:\Users including subfolders...
✔️ Found 0 broken symlinks at 📂C:\Users in 60 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -83,11 +87,11 @@ try {
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
if ($NumTotal -eq 0) { if ($NumTotal -eq 0) {
"✔️ found no symlink 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 {
@ -96,4 +100,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-symlinks.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-symlinks.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./check-time-zone.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-time-zone PS> ./check-time-zone.ps1
✅ 11:13 AM W. Europe Summer Time (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (+01:00 DST) ✅ 11:13 AM W. Europe Summer Time (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (+01:00 DST)
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the time zone and prints it. This PowerShell script queries the time zone and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-time-zone PS> ./check-time-zone.ps1
✅ 11:13 AM W. Europe Summer Time (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (+01:00 DST) ✅ 11:13 AM W. Europe Summer Time (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna (+01:00 DST)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -65,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-time-zone.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-time-zone.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,8 @@ PS> ./check-uptime.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-uptime PS> ./check-uptime.ps1
✅ Up for 2 days, 20 hours, 10 minutes
``` ```
@ -37,7 +38,8 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the computer's uptime and prints it. This PowerShell script queries the computer's uptime and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-uptime PS> ./check-uptime.ps1
✅ Up for 2 days, 20 hours, 10 minutes
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -80,4 +82,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-uptime.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-uptime.ps1 as of 08/06/2023 21:36:06)*

View File

@ -65,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-vpn.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-vpn.ps1 as of 08/06/2023 21:36:06)*

View File

@ -25,7 +25,7 @@ PS> ./check-weather.ps1 [[-location] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-weather PS> ./check-weather.ps1
``` ```
@ -48,7 +48,7 @@ Script Content
.PARAMETER location .PARAMETER location
Specifies the location to use (determined automatically per default) Specifies the location to use (determined automatically per default)
.EXAMPLE .EXAMPLE
PS> ./check-weather PS> ./check-weather.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -81,4 +81,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-weather.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-weather.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./check-week.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-week PS> ./check-week.ps1
``` ```
@ -37,7 +37,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script determines and speaks the current week number by text-to-speech (TTS). This PowerShell script determines and speaks the current week number by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-week PS> ./check-week.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -54,4 +54,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-week.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-week.ps1 as of 08/06/2023 21:36:06)*

View File

@ -25,7 +25,7 @@ PS> ./check-wind.ps1 [[-location] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-wind PS> ./check-wind.ps1
``` ```
@ -48,7 +48,7 @@ Script Content
.PARAMETER location .PARAMETER location
Specifies the location to use (determined automatically per default) Specifies the location to use (determined automatically per default)
.EXAMPLE .EXAMPLE
PS> ./check-wind PS> ./check-wind.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -72,4 +72,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-wind.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-wind.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./check-windows-system-files.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./check-windows-system-files PS> ./check-windows-system-files.ps1
✔️ checked Windows system files ✔️ checked Windows system files
``` ```
@ -38,7 +38,7 @@ Script Content
.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 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
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-windows-system-files.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-windows-system-files.ps1 as of 08/06/2023 21:36:06)*

View File

@ -88,4 +88,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-xml-file.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of check-xml-file.ps1 as of 08/06/2023 21:36:06)*

View File

@ -26,7 +26,12 @@ PS> ./clean-repo.ps1 [[-RepoDir] <String>] [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./clean-repo C:\MyRepo PS> ./clean-repo C:\base256unicode
⏳ (1/4) Searching for Git executable... git version 2.41.0.windows.3
⏳ (2/4) Checking local repository... 📂C:\base256unicode
⏳ (3/4) Removing untracked files in repository...
⏳ (4/4) Removing untracked files in submodules...
✔️ Cleaning the 📂base256unicode repo took 1 sec
``` ```
@ -50,7 +55,12 @@ Script Content
.PARAMETER RepoDir .PARAMETER RepoDir
Specifies the file path to the local Git repository Specifies the file path to the local Git repository
.EXAMPLE .EXAMPLE
PS> ./clean-repo C:\MyRepo PS> ./clean-repo C:\base256unicode
⏳ (1/4) Searching for Git executable... git version 2.41.0.windows.3
⏳ (2/4) Checking local repository... 📂C:\base256unicode
⏳ (3/4) Removing untracked files in repository...
⏳ (4/4) Removing untracked files in submodules...
✔️ Cleaning the 📂base256unicode repo took 1 sec
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -91,4 +101,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of clean-repo.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of clean-repo.ps1 as of 08/06/2023 21:36:06)*

View File

@ -92,4 +92,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of clean-repos.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of clean-repos.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,8 @@ PS> ./clear-dns-cache.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./clear-dns-cache PS> ./clear-dns-cache.ps1
✔️ cleared DNS cache in 0 ms
``` ```
@ -37,7 +38,8 @@ Script Content
.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 PS> ./clear-dns-cache.ps1
✔️ cleared DNS cache in 0 ms
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -50,7 +52,7 @@ try {
Clear-DnsClientCache Clear-DnsClientCache
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ cleared DNS cache in $Elapsed ms." "✔️ 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])"
@ -58,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of clear-dns-cache.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of clear-dns-cache.ps1 as of 08/06/2023 21:36:06)*

View File

@ -58,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of clear-recycle-bin.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of clear-recycle-bin.ps1 as of 08/06/2023 21:36:06)*

View File

@ -119,4 +119,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of clone-repos.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of clone-repos.ps1 as of 08/06/2023 21:36:06)*

View File

@ -48,4 +48,4 @@ Stop-Process -name "CalculatorApp"
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-calculator.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-calculator.ps1 as of 08/06/2023 21:36:06)*

View File

@ -48,4 +48,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-chrome.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-chrome.ps1 as of 08/06/2023 21:36:06)*

View File

@ -48,4 +48,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-cortana.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-cortana.ps1 as of 08/06/2023 21:36:06)*

View File

@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") {
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-edge.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-edge.ps1 as of 08/06/2023 21:36:06)*

View File

@ -48,4 +48,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-file-explorer.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-file-explorer.ps1 as of 08/06/2023 21:36:06)*

View File

@ -48,4 +48,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-firefox.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-firefox.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./close-git-extensions.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./close-git-extensions PS> ./close-git-extensions.ps1
``` ```
@ -37,7 +37,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script closes the Git Extensions application gracefully. This PowerShell script closes the Git Extensions application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-git-extensions PS> ./close-git-extensions.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -52,4 +52,4 @@ if ($lastExitCode -ne "0") {
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-git-extensions.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-git-extensions.ps1 as of 08/06/2023 21:36:06)*

View File

@ -16,7 +16,7 @@ PS> ./close-magnifier.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./close-magnifier PS> ./close-magnifier.ps1
``` ```
@ -37,7 +37,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script closes the Windows Screen Magnifier application gracefully. This PowerShell script closes the Windows Screen Magnifier application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-magnifier PS> ./close-magnifier.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,4 +48,4 @@ tskill magnify
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of close-magnifier.ps1 as of 08/06/2023 11:42:26)* *(generated by convert-ps2md.ps1 using the comment-based help of close-magnifier.ps1 as of 08/06/2023 21:36:06)*

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