Updated the manuals

This commit is contained in:
Markus Fleschutz 2025-01-17 08:31:53 +01:00
parent efe4a2c6b4
commit 33ef92d879
635 changed files with 2375 additions and 1666 deletions

View File

@ -6,7 +6,7 @@ This PowerShell script adds firewall rules for the given executable. Administrat
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/add-firewall-rules.ps1 [[-PathToExecutables] <String>] [[-Direction] <String>] [[-FirewallProfile] <Array>] [<CommonParameters>]
/Repos/PowerShell/scripts/add-firewall-rules.ps1 [[-PathToExecutables] <String>] [[-Direction] <String>] [[-FirewallProfile] <Array>] [<CommonParameters>]
-PathToExecutables <String>
Specifies the path to the executables.
@ -113,4 +113,4 @@ try {
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:49)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script handles and escalates the given alert message.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/alert.ps1 [[-Message] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/alert.ps1 [[-Message] <String>] [<CommonParameters>]
-Message <String>
Specifies the alert message
@ -71,4 +71,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:49)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script builds a Git repository by supporting build systems such
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
-path <String>
Specifies the path to the Git repository (default is current working directory)
@ -196,4 +196,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script builds all Git repositories in a folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
-ParentDir <String>
Specifies the path to the parent folder
@ -82,4 +82,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's autostart fol
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-autostart.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-autostart.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the crash dumps director
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-crashdumps.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-crashdumps.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -63,4 +63,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's desktop folde
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-desktop.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-desktop.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -64,4 +64,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the documents folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-docs.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-docs.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -64,4 +64,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's downloads fol
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-downloads.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-downloads.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -64,4 +64,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's Dropbox folde
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-dropbox.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-dropbox.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the /etc directory.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-etc.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-etc.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -64,4 +64,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the fonts folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-fonts.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-fonts.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's home director
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-home.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-home.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Jenkins home directo
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-jenkins.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-jenkins.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -63,4 +63,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -48,4 +48,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's music folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-music.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-music.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -64,4 +64,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's NextCloud fol
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-nextcloud.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-nextcloud.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's OneDrive fold
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-onedrive.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-onedrive.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's pictures fold
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-pics.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-pics.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -62,4 +62,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Public folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-public.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-public.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -62,4 +62,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the 'recent' folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-recent.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-recent.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -53,4 +53,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the given local Git repo
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>]
-folderName <String>
Specifies the folder name of the Git repository
@ -62,21 +62,28 @@ param([string]$folderName = "")
try {
if ("$folderName" -eq "") { $folderName = Read-Host "Enter the Git repository's folder name" }
if (Test-Path "~/Repos/" -pathType container) { # try short name
$path = "~/Repos/"
} elseif (Test-Path "~/repos/" -pathType container) {
$path = "~/repos/"
} elseif (Test-Path "~/Repositories/" -pathType container) { # try long name
$path = "~/Repositories/"
} elseif (Test-Path "~/source/repos/" -pathType container) { # try Visual Studio default
$path = "~/source/repos/"
} elseif (Test-Path "/Repos/" -pathType container) {
$path = "/Repos/"
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
$path = "~/Repos"
} elseif (Test-Path "~/repos" -pathType Container) {
$path = "~/repos"
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
$path = "~/Repositories"
} elseif (Test-Path "~/repositories" -pathType Container) {
$path = "~/repositories"
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
$path = "/Repos"
} elseif (Test-Path "/repos" -pathType Container) {
$path = "/repos"
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
$path = "/Repositories"
} elseif (Test-Path "/repositories" -pathType Container) {
$path = "/repositories"
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
$path = "~/source/repos"
} else {
throw "The folder for Git repositories doesn't exist (yet)"
throw "No Git repositories folder in your home directory or in the root folder yet"
}
$path += $folderName
$path += "/" + $folderName
if (-not(Test-Path "$path" -pathType container)) { throw "The path to 📂$path doesn't exist (yet)" }
$path = Resolve-Path "$path"
@ -90,4 +97,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -1,12 +1,12 @@
The *cd-repos.ps1* Script
===========================
This PowerShell script changes the working directory to the user's Git repositories folder.
This PowerShell script changes the working directory to the Git repositories folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-repos.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-repos.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
-------
```powershell
PS> ./cd-repos.ps1
📂C:\Users\Markus\Repos
📂C:\Repos
```
@ -34,14 +34,14 @@ Script Content
```powershell
<#
.SYNOPSIS
Sets the working directory to the user's repos folder
Sets the working directory to the Git repos folder
.DESCRIPTION
This PowerShell script changes the working directory to the user's Git repositories folder.
This PowerShell script changes the working directory to the Git repositories folder.
.PARAMETER subpath
Specifies an additional relative subpath (optional)
.EXAMPLE
PS> ./cd-repos.ps1
📂C:\Users\Markus\Repos
📂C:\Repos
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -49,21 +49,28 @@ Script Content
#>
try {
if (Test-Path "~/Repos/" -pathType Container) { # try short name
$path = "~/Repos/"
} elseif (Test-Path "~/repos/" -pathType Container) {
$path = "~/repos/"
} elseif (Test-Path "~/Repositories/" -pathType Container) { # try long name
$path = "~/Repositories/"
} elseif (Test-Path "~/source/repos/" -pathType Container) { # try Visual Studio default
$path = "~/source/repos/"
} elseif (Test-Path "/Repos/" -pathType Container) {
$path = "/Repos/"
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
$path = "~/Repos"
} elseif (Test-Path "~/repos" -pathType Container) {
$path = "~/repos"
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
$path = "~/Repositories"
} elseif (Test-Path "~/repositories" -pathType Container) {
$path = "~/repositories"
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
$path = "/Repos"
} elseif (Test-Path "/repos" -pathType Container) {
$path = "/repos"
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
$path = "/Repositories"
} elseif (Test-Path "/repositories" -pathType Container) {
$path = "/repositories"
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
$path = "~/source/repos"
} else {
throw "The folder for Git repositories doesn't exist (yet)"
throw "No Git repositories folder in your home directory or in the root folder yet"
}
if (-not(Test-Path "$path" -pathType Container)) { throw "The path to 📂$path doesn't exist (yet)" }
$path = Resolve-Path "$path"
$path = Resolve-Path $path
Set-Location "$path"
"📂$path"
exit 0 # success
@ -73,4 +80,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the current working directory to the root directo
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-root.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-root.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -57,4 +57,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -55,4 +55,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the PowerShell scripts f
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-scripts.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-scripts.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -16,8 +16,8 @@ Parameters
Example
-------
```powershell
PS> ./cd-scripts
📂C:\Users\Markus\Repos\PowerShell\scripts
PS> ./cd-scripts.ps1
📂C:\Repos\PowerShell\scripts
```
@ -38,8 +38,8 @@ Script Content
.DESCRIPTION
This PowerShell script changes the working directory to the PowerShell scripts folder.
.EXAMPLE
PS> ./cd-scripts
📂C:\Users\Markus\Repos\PowerShell\scripts
PS> ./cd-scripts.ps1
📂C:\Repos\PowerShell\scripts
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's secure shell
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-ssh.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-ssh.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -59,4 +59,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -50,4 +50,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the templates folder.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-templates.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-templates.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -62,4 +62,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -53,4 +53,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to one directory level up.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-up.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-up.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to two directory level up.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-up2.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-up2.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to three directory levels u
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-up3.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-up3.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to four directory levels up
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-up4.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-up4.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:50)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the users directory.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-users.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-users.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the user's videos folder
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-videos.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-videos.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -62,4 +62,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script changes the working directory to the Windows directory.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/cd-windows.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/cd-windows.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script downloads a random photo from Unsplash and sets it as des
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>]
-Category <String>
Specifies the photo category (beach, city, ...)
@ -79,4 +79,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks if the user has administrator rights.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-admin.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-admin.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -67,4 +67,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -72,4 +72,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the BIOS status and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-bios.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-bios.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -75,4 +75,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:50)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -91,8 +91,6 @@ try {
} elseif ($celsius -lt 0) {
$temp = ", $($celsius)°C TOO COLD"
$status = "⚠️"
} elseif ($celsius -lt 30) {
$temp = ", $($celsius)°C cool"
} else {
$temp = ", $($celsius)°C"
}
@ -106,4 +104,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script asks for credentials and checks them against saved ones (
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>]
-TargetFile <String>
Specifies the target file ("$HOME\my.credentials" by default)
@ -82,4 +82,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current day by text-to-speech (
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-day.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-day.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -57,4 +57,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script measures the DNS resolution speed using 100 internet doma
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-dns.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-dns.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
-------
```powershell
PS> ./check-dns.ps1
✅ Internet DNS lookups in 33.6ms
✅ Internet DNS: 33.6ms lookup time
```
@ -39,7 +39,7 @@ Script Content
This PowerShell script measures the DNS resolution speed using 100 internet domains and prints it.
.EXAMPLE
PS> ./check-dns.ps1
✅ Internet DNS lookups in 33.6ms
✅ Internet DNS: 33.6ms lookup time
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -58,10 +58,12 @@ try {
}
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds * 1000.0
$speed = [math]::round($elapsed / $table.Length, 1)
if ($speed -gt 100.0) {
Write-Host "⚠️ Internet DNS lookups take $($speed)ms!"
if ($speed -lt 10.0) {
Write-Output "✅ Internet DNS: $($speed)ms excellent lookup time"
} elseif ($speed -lt 100.0) {
Write-Output "✅ Internet DNS: $($speed)ms lookup time"
} else {
Write-Host "✅ Internet DNS lookups in $($speed)ms"
Write-Output "⚠️ Internet DNS: $($speed)ms slow lookup time"
}
exit 0 # success
} catch {
@ -70,4 +72,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given drive for free space left (10 GB by defa
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-drive-space.ps1 [[-driveName] <String>] [[-minLevel] <Int64>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-drive-space.ps1 [[-driveName] <String>] [[-minLevel] <Int64>] [<CommonParameters>]
-driveName <String>
Specifies the drive name to check (e.g. "C")
@ -110,4 +110,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the free space of all drives and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>]
-minLevel <Int64>
Specifies the minimum warning level (5GB by default)
@ -102,4 +102,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -63,4 +63,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the time until Easter Sunday and replies by text-t
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-easter-sunday.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-easter-sunday.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -61,4 +61,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the file system of a drive. It needs admin rights.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
-Drive <String>
Specifies the drive to check
@ -75,4 +75,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines and prints the file type of the given file.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-file.ps1 [[-Path] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-file.ps1 [[-Path] <String>] [<CommonParameters>]
-Path <String>
Specifies the path to the file
@ -170,4 +170,4 @@ function Check-Header { param( $path )
Check-Header $Path
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the status of the firewall and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-firewall.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-firewall.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -65,4 +65,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -65,4 +65,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the hardware details of the local computer and pr
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-hardware.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-hardware.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -18,7 +18,7 @@ Example
```powershell
PS> ./check-hardware.ps1
H A R D W A R E
=== H A R D W A R E ===
✅ Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
...
@ -43,7 +43,7 @@ Script Content
.EXAMPLE
PS> ./check-hardware.ps1
H A R D W A R E
=== H A R D W A R E ===
✅ Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
...
.LINK
@ -52,7 +52,7 @@ Script Content
Author: Markus Fleschutz | License: CC0
#>
Write-Host "`n H A R D W A R E" -foregroundColor green
Write-Host "`n === H A R D W A R E ===" -foregroundColor green
& "$PSScriptRoot/check-cpu.ps1"
& "$PSScriptRoot/check-ram.ps1"
& "$PSScriptRoot/check-gpu.ps1"
@ -64,4 +64,4 @@ Write-Host "`n H A R D W A R E" -foregroundColor green
exit 0 # success
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the system health of the local computer (hardware
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-health.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-health.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ Script Content
exit 0 # success
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the time until Indepence Day and replies by text-t
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-independence-day.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-independence-day.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -61,4 +61,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given IPv4 address for validity.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
-Address <String>
Specifies the IPv4 address to check
@ -84,4 +84,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given IPv6 address for validity
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>]
-Address <String>
Specifies the IPv6 address to check
@ -98,4 +98,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the position of the International Space Station (
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-iss-position.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-iss-position.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -55,4 +55,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -7,7 +7,7 @@ Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>]
-MAC <String>
Specifies the MAC address to check
@ -87,4 +87,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current month name by text-to-s
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-month.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-month.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -57,4 +57,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines the Moon phase and answers by text-to-speech (
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-moon-phase.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-moon-phase.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -76,4 +76,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script lists the motherboard details.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-motherboard.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-motherboard.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -59,4 +59,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the network details of the local computer and pri
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-network.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-network.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -20,7 +20,7 @@ PS> ./check-network.ps1
N E T W O R K
=== N E T W O R K ===
✅ Firewall enabled
...
@ -45,7 +45,7 @@ Script Content
.EXAMPLE
PS> ./check-network.ps1
N E T W O R K
=== N E T W O R K ===
✅ Firewall enabled
...
.LINK
@ -54,17 +54,17 @@ Script Content
Author: Markus Fleschutz | License: CC0
#>
Write-Host "`n N E T W O R K" -foregroundColor green
Write-Host "`n === N E T W O R K ===" -foregroundColor green
& "$PSScriptRoot/check-firewall"
& "$PSScriptRoot/list-local-ip.ps1"
& "$PSScriptRoot/list-network-shares.ps1"
& "$PSScriptRoot/ping-local-devices.ps1"
& "$PSScriptRoot/check-vpn.ps1"
& "$PSScriptRoot/list-network-shares.ps1"
& "$PSScriptRoot/list-internet-ip.ps1"
& "$PSScriptRoot/ping-internet.ps1"
& "$PSScriptRoot/check-dns.ps1"
& "$PSScriptRoot/check-vpn.ps1"
& "$PSScriptRoot/list-ssh-key.ps1"
exit 0 # success
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -59,4 +59,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the operating system status and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-os.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-os.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -73,4 +73,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the inbox of Outlook for new/unread mails.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-outlook.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-outlook.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -65,4 +65,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the security status of the given password by havei
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-password.ps1 [[-password] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-password.ps1 [[-password] <String>] [<CommonParameters>]
-password <String>
@ -94,4 +94,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -90,4 +90,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks all Plug'n'PLay devices connected to the local com
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-pnp-devices.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-pnp-devices.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -65,4 +65,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the power status and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -61,9 +61,9 @@ try {
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
$reply = "✅ AC powered"
} elseif ($percent -ge 95) {
$reply = "✅ Battery nearly full ($percent%, power scheme is '$powerScheme')"
$reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
} else {
$reply = "✅ Battery $percent% and charging (power scheme is '$powerScheme')"
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
}
} else { # must be offline
if (($remaining -eq 0) -and ($percent -ge 60)) {
@ -71,13 +71,13 @@ try {
} elseif ($remaining -eq 0) {
$reply = "✅ Battery at $percent% (power scheme is '$powerScheme')"
} elseif ($remaining -le 5) {
$reply = "⚠️ Battery $percent% ONLY $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "⚠️ Battery LOW ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($remaining -le 30) {
$reply = "⚠️ Battery $percent% only $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "⚠️ Battery low ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($percent -lt 10) {
$reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
} elseif ($percent -ge 90) {
$reply = "✅ Battery $percent% full with $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "✅ Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} else {
$reply = "✅ Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') "
}
@ -91,4 +91,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -59,4 +59,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given PowerShell script file(s) for validity.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>]
-filePattern <String>
Specifies the file pattern to the PowerShell file(s)
@ -76,4 +76,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -98,4 +98,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script verifies the integrity of a local Git repository and perf
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
-pathToRepo <String>
Specifies the file path to the local Git repository (current working directory by default)
@ -129,4 +129,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script verifies the data integrity of all Git repositories in a
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
-parentDir <String>
Specifies the file path to the parent folder
@ -91,4 +91,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the time until Saint Nicholas Day and replies by t
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-santa.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-santa.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -56,4 +56,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -24,7 +24,7 @@ Script Content
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
.EXAMPLE
PS> ./check-smart-devices.ps1
✅ 1TB Samsung SSD 970 EVO via NVMe (37°C, 2388 hours, 289x on/off, v2B2QEXE7, test passed)
✅ 1TB Samsung SSD 970 EVO 1TB via NVMe (35°C, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -48,18 +48,15 @@ function Bytes2String([int64]$bytes) {
}
try {
#Write-Progress "(1/3) Searching for smartmontools..."
$result = (smartctl --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'smartctl' - make sure smartmontools are installed" }
#Write-Progress "(2/3) Scanning S.M.A.R.T devices..."
if ($IsLinux) {
$devices = $(sudo smartctl --scan-open)
} else {
$devices = $(smartctl --scan-open)
}
#Write-Progress "Querying S.M.A.R.T devices..."
foreach($device in $devices) {
$array = $device.split(" ")
$dev = $array[0]
@ -81,37 +78,41 @@ try {
} else {
$capacity = ""
}
$infos = ""
if ($details.temperature.current -gt 50) {
$temp = "$($details.temperature.current)°C TOO HOT"
$infos = "$($details.temperature.current)°C TOO HOT"
$status = "⚠️"
} elseif ($details.temperature.current -lt 0) {
$temp = "$($details.temperature.current)°C TOO COLD"
$infos = "$($details.temperature.current)°C TOO COLD"
$status = "⚠️"
} else {
$temp = "$($details.temperature.current)°C"
$infos = "$($details.temperature.current)°C"
}
if ($details.power_on_time.hours -gt 87600) { # 10 years
$hours = "$($details.power_on_time.hours) hours (!)"
$infos += ", $($details.power_on_time.hours)h (!)"
$status = "⚠️"
} else {
$hours = "$($details.power_on_time.hours) hours"
$infos += ", $($details.power_on_time.hours)h"
}
if ($details.power_cycle_count -gt 100000) {
$powerOn = "$($details.power_cycle_count)x on/off (!)"
$infos += ", $($details.power_cycle_count)x on/off (!)"
$status = "⚠️"
} else {
$powerOn = "$($details.power_cycle_count)x on/off"
}
$infos += ", $($details.power_cycle_count)x on/off"
}
if ($details.nvme_smart_health_information_log.host_reads) {
$infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_read * 512 * 1000)) read"
$infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_written * 512 * 1000)) written"
}
$infos += ", v$($details.firmware_version)"
if ($details.smart_status.passed) {
$selftest = "test passed"
$infos += ", test passed"
} else {
$selftest = "test FAILED"
$infos += ", test FAILED"
$status = "⚠️"
}
$firmwareVersion = $details.firmware_version
Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, v$firmwareVersion, $selftest)"
Write-Host "$status $capacity$modelName via $protocol ($infos)"
}
#Write-Progress -completed "Done."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -119,4 +120,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the software status of the local computer and pri
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-software.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-software.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -20,7 +20,7 @@ PS> ./check-software.ps1
S O F T W A R E
=== S O F T W A R E ===
✅ Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021)
...
@ -45,7 +45,7 @@ Script Content
.EXAMPLE
PS> ./check-software.ps1
S O F T W A R E
=== S O F T W A R E ===
✅ Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021)
...
.LINK
@ -54,7 +54,7 @@ Script Content
Author: Markus Fleschutz | License: CC0
#>
Write-Host "`n S O F T W A R E" -foregroundColor green
Write-Host "`n === S O F T W A R E ===" -foregroundColor green
& "$PSScriptRoot/check-os.ps1"
& "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-apps.ps1"
@ -64,4 +64,4 @@ Write-Host "`n S O F T W A R E" -foregroundColor green
exit 0 # success
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given subnet mask for validity.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-subnet-mask.ps1 [[-address] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-subnet-mask.ps1 [[-address] <String>] [<CommonParameters>]
-address <String>
Specifies the subnet mask to check
@ -84,4 +84,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the current status of the swap space and prints i
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-swap-space.ps1 [[-minLevel] <Int32>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-swap-space.ps1 [[-minLevel] <Int32>] [<CommonParameters>]
-minLevel <Int32>
Specifies the minimum level in MB (10 MB by default)
@ -107,4 +107,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -7,7 +7,7 @@ It returns the number of broken symlinks as exit value.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-symlinks.ps1 [[-Folder] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-symlinks.ps1 [[-Folder] <String>] [<CommonParameters>]
-Folder <String>
Specifies the path to the folder
@ -100,4 +100,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the local time zone and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-time-zone.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-time-zone.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -66,4 +66,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -103,7 +103,7 @@ try {
}
if ($reason -ne "") {
$status = "⚠️"
$pending = "with pending reboot ($($reason.substring(2)) in registry)"
$pending = "with pending reboot (registry has $($reason.substring(2)))"
}
}
Write-Host "$status $(hostname) is up for $(TimeSpanAsString $uptime) since $($lastBootTime.ToShortDateString()) $pending"
@ -114,4 +114,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script queries the status of the VPN connection(s) and prints it
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-vpn.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-vpn.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
-------
```powershell
PS> ./check-vpn.ps1
✅ VPN to NASA L2TP is connected
Internet VPN to NASA L2TP is connected
```
@ -39,7 +39,7 @@ Script Content
This PowerShell script queries the status of the VPN connection(s) and prints it.
.EXAMPLE
PS> ./check-vpn.ps1
✅ VPN to NASA L2TP is connected
Internet VPN to NASA L2TP is connected
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -53,7 +53,7 @@ try {
} else {
$connections = Get-VPNConnection
foreach($connection in $connections) {
Write-Host "✅ VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())"
Write-Host "✅ Internet VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())"
$noVPN = $false
}
}
@ -65,4 +65,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the current weather report.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-weather.ps1 [[-location] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-weather.ps1 [[-location] <String>] [<CommonParameters>]
-location <String>
Specifies the location to use (determined automatically per default)
@ -81,4 +81,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines and speaks the current week number by text-to-
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-week.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-week.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -54,4 +54,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script determines the current wind conditions and replies by tex
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-wind.ps1 [[-location] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-wind.ps1 [[-location] <String>] [<CommonParameters>]
-location <String>
Specifies the location to use (determined automatically per default)
@ -72,4 +72,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the validity of the Windows system files. It requi
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-windows-system-files.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-windows-system-files.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script checks the given XML file for validity.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-xml-file.ps1 [[-path] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-xml-file.ps1 [[-path] <String>] [<CommonParameters>]
-path <String>
Specifies the path to the XML file
@ -85,4 +85,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script verifies any XML file (with suffix .xml) in the given dir
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-xml-files.ps1 [[-path] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/check-xml-files.ps1 [[-path] <String>] [<CommonParameters>]
-path <String>
Specifies the path to the directory tree (current working dir by default)
@ -83,4 +83,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -7,7 +7,7 @@ NOTE: To be used with care! This cannot be undone!
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] <String>] [<CommonParameters>]
-path <String>
Specifies the file path to the local Git repository (current working directory by default)
@ -31,7 +31,7 @@ PS> ./clean-repo.ps1 C:\Repos\rust
⏳ (2/4) Checking local repository... C:\Repos\rust
⏳ (3/4) Removing untracked files in repository...
⏳ (4/4) Removing untracked files in submodules...
✅ Cleaned up 📂rust repo in 2s.
✅ Cleaned up repo 📂rust in 2s.
```
@ -60,7 +60,7 @@ Script Content
⏳ (2/4) Checking local repository... C:\Repos\rust
⏳ (3/4) Removing untracked files in repository...
⏳ (4/4) Removing untracked files in submodules...
✅ Cleaned up 📂rust repo in 2s.
✅ Cleaned up repo 📂rust in 2s.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -93,7 +93,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Cleaned up 📂$repoName repo in $($elapsed)s."
"✅ Cleaned up repo 📂$repoName in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -101,4 +101,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script cleans all Git repositories in a folder from untracked fi
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clean-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/clean-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
-parentDir <String>
Specifies the path to the parent folder (current working dir by default)
@ -100,4 +100,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script clears the DNS client cache of the local computer.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clear-dns-cache.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/clear-dns-cache.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -7,7 +7,7 @@ IMPORTANT NOTE: this cannot be undo!
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clear-recycle-bin.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/clear-recycle-bin.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script clones popular Git repositories into a common target dire
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clone-repos.ps1 [[-targetDir] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/clone-repos.ps1 [[-targetDir] <String>] [<CommonParameters>]
-targetDir <String>
Specifies the file path to the target directory (current working directory by default)
@ -118,4 +118,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script clones popular Git repositories into a common target dire
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/clone-shallow.ps1 [[-targetDir] <String>] [<CommonParameters>]
/Repos/PowerShell/scripts/clone-shallow.ps1 [[-targetDir] <String>] [<CommonParameters>]
-targetDir <String>
Specifies the file path to the target directory (current working directory by default)
@ -74,4 +74,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

View File

@ -6,7 +6,7 @@ This PowerShell script closes the calculator application gracefully.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/close-calculator.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/close-calculator.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,4 +48,4 @@ Stop-Process -name "CalculatorApp"
exit 0 # success
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*

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