mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 08:58:16 +01:00
Update the comment based help text
This commit is contained in:
parent
acc88e247d
commit
27bd366394
@ -1,12 +1,13 @@
|
|||||||
## add-firewall-rules.ps1 - Adds firewall rules for the given executables (needs admin rights)
|
## add-firewall-rules.ps1 - Adds firewall rules for executables (needs admin rights)
|
||||||
|
|
||||||
add-firewall-rules.ps1 [<PathToExecutables>]
|
This script adds firewall rules for the given executable. Administrator rights are required.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
add-firewall-rules.ps1 [[-PathToExecutables] <String>] [<CommonParameters>]
|
add-firewall-rules.ps1 [[-PathToExecutables] <String>] [<CommonParameters>]
|
||||||
|
|
||||||
-PathToExecutables <String>
|
-PathToExecutables <String>
|
||||||
|
Specifies the path to the executables
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
## add-memo.ps1 - Adds a memo to Memos.csv in the home folder
|
## add-memo.ps1 - Adds a memo text to $HOME/Memos.csv
|
||||||
|
|
||||||
add-memo.ps1 [<text>]
|
This script adds the given memo text to $HOME/Memos.csv.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
add-memo.ps1 [[-text] <String>] [<CommonParameters>]
|
add-memo.ps1 [[-text] <String>] [<CommonParameters>]
|
||||||
|
|
||||||
-text <String>
|
-text <String>
|
||||||
|
Specifies the text to memorize
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
## alert.ps1 - Handle and escalate the given alert message
|
## alert.ps1 - Handles and escalates an alert
|
||||||
|
|
||||||
alert.ps1 [<message>]
|
This script handles and escalates the given alert message.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
alert.ps1 [[-Message] <String>] [<CommonParameters>]
|
alert.ps1 [[-Message] <String>] [<CommonParameters>]
|
||||||
|
|
||||||
-Message <String>
|
-Message <String>
|
||||||
|
Specifies the alert message
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
## build-repo.ps1 - Builds a Git repository
|
## build-repo.ps1 - Builds a Git repository
|
||||||
|
|
||||||
Supports building with cmake, configure, autogen, Imakefile and Makefile.
|
This scripts supports building with cmake, configure, autogen, Imakefile and Makefile.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
build-repo.ps1 [[-RepoDir] <String>] [<CommonParameters>]
|
build-repo.ps1 [[-RepoDir] <String>] [<CommonParameters>]
|
||||||
|
|
||||||
-RepoDir <String>
|
-RepoDir <String>
|
||||||
Specifies the path to the Git repository.
|
Specifies the path to the Git repository
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## build-repos.ps1 - Builds all Git repositories in a folder
|
## build-repos.ps1 - Builds all Git repositories in a folder
|
||||||
|
|
||||||
build-repos.ps1 [<ParentDir>]
|
This script builds all Git repositories in a given folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-desktop.ps1 - Change the working directory to the user's desktop folder
|
## cd-desktop.ps1 - Sets the working directory to the user's desktop folder
|
||||||
|
|
||||||
cd-desktop.ps1
|
This script changes the working directory to the user's desktop folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-docs.ps1 - Change the working directory to the user's documents folder
|
## cd-docs.ps1 - Sets the working directory to the user's documents folder
|
||||||
|
|
||||||
cd-docs.ps1
|
This scripts changes the working directory to the user's documents folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-downloads.ps1 - Change the working directory to the user's downloads folder
|
## cd-downloads.ps1 - Sets the working directory to the user's downloads folder
|
||||||
|
|
||||||
cd-downloads.ps1
|
This script changes the working directory to the user's downloads folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-dropbox.ps1 - Change the working directory to the user's Dropbox folder
|
## cd-dropbox.ps1 - Sets the working directory to the user's Dropbox folder
|
||||||
|
|
||||||
cd-dropbox.ps1
|
This script changes the working directory to the user's Dropbox folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-home.ps1 - Change the working directory to the user's home directory
|
## cd-home.ps1 - Sets the working directory to the user's home directory
|
||||||
|
|
||||||
cd-home.ps1
|
This script changes the working directory to the user's home directory.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-music.ps1 - Change the working directory to the user's music folder
|
## cd-music.ps1 - Sets the working directory to the user's music folder
|
||||||
|
|
||||||
cd-music.ps1
|
This script changes the working directory to the user's music folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-onedrive.ps1 - Change the working directory to the user's OneDrive folder
|
## cd-onedrive.ps1 - Sets the working directory to the user's OneDrive folder
|
||||||
|
|
||||||
cd-onedrive.ps1
|
This script changes the working directory to the user's OneDrive folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-pics.ps1 - Change the working directory to the user's pictures folder
|
## cd-pics.ps1 - Sets the working directory to the user's pictures folder
|
||||||
|
|
||||||
cd-pics.ps1
|
This script changes the working directory to the user's pictures folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-repos.ps1 - Change the working directory to the user's Git repositories folder
|
## cd-repos.ps1 - Sets the working directory to the user's Git repositories folder
|
||||||
|
|
||||||
cd-repos.ps1
|
This script changes the working directory to the user's Git repositories folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-root.ps1 - Change the working directory to the root directory (C:\ on Windows)
|
## cd-root.ps1 - Sets the working directory to the root directory (C:\ on Windows)
|
||||||
|
|
||||||
cd-root.ps1
|
This script changes the working directory to the root directory (C:\ on Windows).
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-scripts.ps1 - Change the working directory to the PowerShell scripts folder
|
## cd-scripts.ps1 - Sets the working directory to the PowerShell scripts folder
|
||||||
|
|
||||||
cd-scripts.ps1
|
This script changes the working directory to the PowerShell scripts folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-ssh.ps1 - Change the working directory to the user's SSH folder
|
## cd-ssh.ps1 - Sets the working directory to the user's SSH folder
|
||||||
|
|
||||||
cd-ssh.ps1
|
This script changes the working directory to the user's SSH folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-up.ps1 - Change the working directory to one level up
|
## cd-up.ps1 - Sets the working directory to one level up
|
||||||
|
|
||||||
cd-up.ps1
|
This script changes the working directory to one directory level up.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-up2.ps1 - Change the working directory to two directory levels up
|
## cd-up2.ps1 - Sets the working directory to two directory levels up
|
||||||
|
|
||||||
cd-up2.ps1
|
This script changes the working directory to two directory level up.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-up3.ps1 - Change the working directory to three directory levels up
|
## cd-up3.ps1 - Sets the working directory to three directory levels up
|
||||||
|
|
||||||
cd-up3.ps1
|
This script changes the working directory to three directory levels up.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-up4.ps1 - Change the working directory to four directory levels up
|
## cd-up4.ps1 - Sets the working directory to four directory levels up
|
||||||
|
|
||||||
cd-up4.ps1
|
This script changes the working directory to four directory levels up.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## cd-videos.ps1 - Change the working directory to the user's videos folder
|
## cd-videos.ps1 - Sets the working directory to the user's videos folder
|
||||||
|
|
||||||
cd-videos.ps1
|
This script changes the working directory to the user's videos folder.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## check-cpu-temp.ps1 - Checks the CPU temperature
|
## check-cpu-temp.ps1 - Checks the CPU temperature
|
||||||
|
|
||||||
check-cpu-temp.ps1
|
This script checks the CPU temperature.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## check-dns-resolution.ps1 - Checks the DNS resolution with frequently used domain names
|
## check-dns-resolution.ps1 - Checks the DNS resolution with frequently used domain names
|
||||||
|
|
||||||
check-dns-resolution.ps1
|
This script checks the DNS resolution with frequently used domain names.
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
## check-drive-space.ps1 - Checks a drive for free space left (20 GB by default)
|
## check-drive-space.ps1 - Checks a drive for free space left (20 GB by default)
|
||||||
|
|
||||||
check-drive-space.ps1 [<drive>] [<min-level>]
|
This script checks a drive for free space left (20 GB by default).
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
```powershell
|
```powershell
|
||||||
check-drive-space.ps1 [[-Drive] <String>] [[-MinLevel] <Int32>] [<CommonParameters>]
|
check-drive-space.ps1 [[-Drive] <String>] [[-MinLevel] <Int32>] [<CommonParameters>]
|
||||||
|
|
||||||
-Drive <String>
|
-Drive <String>
|
||||||
|
Specifies the drive to check
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 1
|
Position? 1
|
||||||
@ -15,6 +16,7 @@ check-drive-space.ps1 [[-Drive] <String>] [[-MinLevel] <Int32>] [<CommonParamete
|
|||||||
Accept wildcard characters? false
|
Accept wildcard characters? false
|
||||||
|
|
||||||
-MinLevel <Int32>
|
-MinLevel <Int32>
|
||||||
|
Specifies the minimum level in Gigabyte
|
||||||
|
|
||||||
Required? false
|
Required? false
|
||||||
Position? 2
|
Position? 2
|
||||||
|
@ -30,7 +30,7 @@ export-to-manuals.ps1 [[-FilePattern] <String>] [[-TargetDir] <String>] [<Common
|
|||||||
## Example
|
## Example
|
||||||
```powershell
|
```powershell
|
||||||
PS>./export-to-manuals.ps1
|
PS>./export-to-manuals.ps1
|
||||||
Found 264 scripts, starting export to /home/markus/PowerShell/Docs...
|
Found 264 scripts, exporting to /home/markus/PowerShell/Docs...
|
||||||
✔️ exported 264 scripts as manuals in 28 sec
|
✔️ exported 264 scripts as manuals in 28 sec
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Adds firewall rules for the given executables (needs admin rights)
|
Adds firewall rules for executables (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
add-firewall-rules.ps1 [<PathToExecutables>]
|
This script adds firewall rules for the given executable. Administrator rights are required.
|
||||||
|
.PARAMETER PathToExecutables
|
||||||
|
Specifies the path to the executables
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./add-firewall-rules C:\MyApp\bin
|
PS> ./add-firewall-rules C:\MyApp\bin
|
||||||
Adding firewall rule for C:\MyApp\bin\app1.exe
|
Adding firewall rule for C:\MyApp\bin\app1.exe
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Adds a memo to Memos.csv in the home folder
|
Adds a memo text to $HOME/Memos.csv
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
add-memo.ps1 [<text>]
|
This script adds the given memo text to $HOME/Memos.csv.
|
||||||
|
.PARAMETER text
|
||||||
|
Specifies the text to memorize
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./add-memo "Buy apples"
|
PS> ./add-memo "Buy apples"
|
||||||
✔️ added to 📄/home/markus/Memos.csv
|
✔️ added to 📄/home/markus/Memos.csv
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Handle and escalate the given alert message
|
Handles and escalates an alert
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
alert.ps1 [<message>]
|
This script handles and escalates the given alert message.
|
||||||
|
.PARAMETER message
|
||||||
|
Specifies the alert message
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./alert "Harddisk failure"
|
PS> ./alert "Harddisk failure"
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Builds a Git repository
|
Builds a Git repository
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Supports building with cmake, configure, autogen, Imakefile and Makefile.
|
This scripts supports building with cmake, configure, autogen, Imakefile and Makefile.
|
||||||
.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 C:\MyRepo
|
||||||
.NOTES
|
.NOTES
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Builds all Git repositories in a folder
|
Builds all Git repositories in a folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
build-repos.ps1 [<ParentDir>]
|
This script builds all Git repositories in a given folder.
|
||||||
.PARAMETER ParentDir
|
.PARAMETER ParentDir
|
||||||
Specifies the path to the folder containing the Git repositories
|
Specifies the path to the folder containing the Git repositories
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's desktop folder
|
Sets the working directory to the user's desktop folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-desktop.ps1
|
This script changes the working directory to the user's desktop folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-desktop
|
PS> ./cd-desktop
|
||||||
📂/home/markus/Desktop
|
📂/home/markus/Desktop
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's documents folder
|
Sets the working directory to the user's documents folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-docs.ps1
|
This scripts changes the working directory to the user's documents folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-docs
|
PS> ./cd-docs
|
||||||
📂/home/markus/Documents
|
📂/home/markus/Documents
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's downloads folder
|
Sets the working directory to the user's downloads folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-downloads.ps1
|
This script changes the working directory to the user's downloads folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-downloads
|
PS> ./cd-downloads
|
||||||
📂/home/markus/Downloads
|
📂/home/markus/Downloads
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's Dropbox folder
|
Sets the working directory to the user's Dropbox folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-dropbox.ps1
|
This script changes the working directory to the user's Dropbox folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-dropbox
|
PS> ./cd-dropbox
|
||||||
📂/home/markus/Dropbox
|
📂/home/markus/Dropbox
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's home directory
|
Sets the working directory to the user's home directory
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-home.ps1
|
This script changes the working directory to the user's home directory.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-home
|
PS> ./cd-home
|
||||||
📂/home/markus
|
📂/home/markus
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's music folder
|
Sets the working directory to the user's music folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-music.ps1
|
This script changes the working directory to the user's music folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-music
|
PS> ./cd-music
|
||||||
📂/home/markus/Music
|
📂/home/markus/Music
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's OneDrive folder
|
Sets the working directory to the user's OneDrive folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-onedrive.ps1
|
This script changes the working directory to the user's OneDrive folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-onedrive
|
PS> ./cd-onedrive
|
||||||
📂/home/markus/OneDrive
|
📂/home/markus/OneDrive
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's pictures folder
|
Sets the working directory to the user's pictures folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-pics.ps1
|
This script changes the working directory to the user's pictures folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-pics
|
PS> ./cd-pics
|
||||||
📂/home/markus/Pictures
|
📂/home/markus/Pictures
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's recycle bin folder
|
Sets the working directory to the user's recycle bin folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-recycle-bin.ps1
|
This script changes the working directory to the user's recycle bin folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-recycle-bin
|
PS> ./cd-recycle-bin
|
||||||
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's Git repositories folder
|
Sets the working directory to the user's Git repositories folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-repos.ps1
|
This script changes the working directory to the user's Git repositories folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-repos
|
PS> ./cd-repos
|
||||||
📂/home/markus/Repos
|
📂/home/markus/Repos
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the root directory (C:\ on Windows)
|
Sets the working directory to the root directory (C:\ on Windows)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-root.ps1
|
This script changes the working directory to the root directory (C:\ on Windows).
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-root
|
PS> ./cd-root
|
||||||
📂C:\
|
📂C:\
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the PowerShell scripts folder
|
Sets the working directory to the PowerShell scripts folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-scripts.ps1
|
This script changes the working directory to the PowerShell scripts folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-scripts
|
PS> ./cd-scripts
|
||||||
📂/home/markus/PowerShell/Scripts
|
📂/home/markus/PowerShell/Scripts
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's SSH folder
|
Sets the working directory to the user's SSH folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-ssh.ps1
|
This script changes the working directory to the user's SSH folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-ssh
|
PS> ./cd-ssh
|
||||||
📂/home/markus/.ssh
|
📂/home/markus/.ssh
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to one level up
|
Sets the working directory to one level up
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-up.ps1
|
This script changes the working directory to one directory level up.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\cd-up
|
PS> .\cd-up
|
||||||
(one level up)
|
(one level up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to two directory levels up
|
Sets the working directory to two directory levels up
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-up2.ps1
|
This script changes the working directory to two directory level up.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up2
|
PS> ./cd-up2
|
||||||
(two levels up)
|
(two levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to three directory levels up
|
Sets the working directory to three directory levels up
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-up3.ps1
|
This script changes the working directory to three directory levels up.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up3
|
PS> ./cd-up3
|
||||||
(three levels up)
|
(three levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to four directory levels up
|
Sets the working directory to four directory levels up
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-up4.ps1
|
This script changes the working directory to four directory levels up.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-up4
|
PS> ./cd-up4
|
||||||
(four levels up)
|
(four levels up)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Change the working directory to the user's videos folder
|
Sets the working directory to the user's videos folder
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
cd-videos.ps1
|
This script changes the working directory to the user's videos folder.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-videos
|
PS> ./cd-videos
|
||||||
📂/home/markus/Videos
|
📂/home/markus/Videos
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Checks the CPU temperature
|
Checks the CPU temperature
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
check-cpu-temp.ps1
|
This script checks the CPU temperature.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-cpu-temp
|
PS> ./check-cpu-temp
|
||||||
✔️ 30.3 °C CPU temperature - good
|
✔️ 30.3 °C CPU temperature - good
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Checks the DNS resolution with frequently used domain names
|
Checks the DNS resolution with frequently used domain names
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
check-dns-resolution.ps1
|
This script checks the DNS resolution with frequently used domain names.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-dns-resolution
|
PS> ./check-dns-resolution
|
||||||
✔️ 11.8 domains/sec (177 domains resolved in 15 sec)
|
✔️ 11.8 domains/sec (177 domains resolved in 15 sec)
|
||||||
|
@ -2,7 +2,11 @@
|
|||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Checks a drive for free space left (20 GB by default)
|
Checks a drive for free space left (20 GB by default)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
check-drive-space.ps1 [<drive>] [<min-level>]
|
This script checks a drive for free space left (20 GB by default).
|
||||||
|
.PARAMETER Drive
|
||||||
|
Specifies the drive to check
|
||||||
|
.PARAMETER MinLevel
|
||||||
|
Specifies the minimum level in Gigabyte
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-drive-space C
|
PS> ./check-drive-space C
|
||||||
✔️ 172 GB left on drive C (61 of 233 GB used)
|
✔️ 172 GB left on drive C (61 of 233 GB used)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
This script exports the comment based help of all PowerShell scripts as manuals.
|
This script exports the comment based help of all PowerShell scripts as manuals.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./export-to-manuals.ps1
|
PS> ./export-to-manuals.ps1
|
||||||
Found 264 scripts, starting export to /home/markus/PowerShell/Docs...
|
Found 264 scripts, exporting to /home/markus/PowerShell/Docs...
|
||||||
✔️ exported 264 scripts as manuals in 28 sec
|
✔️ exported 264 scripts as manuals in 28 sec
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
@ -21,7 +21,7 @@ try {
|
|||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
$Scripts = Get-ChildItem "$FilePattern"
|
$Scripts = Get-ChildItem "$FilePattern"
|
||||||
"Found $($Scripts.Count) scripts, starting export to $TargetDir..."
|
"Found $($Scripts.Count) scripts, exporting to $TargetDir..."
|
||||||
|
|
||||||
foreach ($Script in $Scripts) {
|
foreach ($Script in $Scripts) {
|
||||||
& "$PSScriptRoot/convert-ps2md" "$Script" > "$TargetDir/$($Script.BaseName).md"
|
& "$PSScriptRoot/convert-ps2md" "$Script" > "$TargetDir/$($Script.BaseName).md"
|
||||||
|
Loading…
Reference in New Issue
Block a user