Update the comment-based help

This commit is contained in:
Markus Fleschutz 2021-08-29 17:50:03 +02:00
parent 11ca126b33
commit e10261351c
249 changed files with 780 additions and 1021 deletions

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
MD5.ps1 [<file>] MD5.ps1 [<file>]
.DESCRIPTION .DESCRIPTION
Prints the MD5 checksum of the given file Prints the MD5 checksum of the given file.
.EXAMPLE .EXAMPLE
PS> .\MD5.ps1 C:\MyFile.txt PS> .\MD5.ps1 C:\MyFile.txt
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$File = "") param([string]$File = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
SHA1.ps1 [<file>] SHA1.ps1 [<file>]
.DESCRIPTION .DESCRIPTION
Prints the SHA1 checksum of the given file Prints the SHA1 checksum of the given file.
.EXAMPLE .EXAMPLE
PS> .\SHA1.ps1 C:\MyFile.txt PS> .\SHA1.ps1 C:\MyFile.txt
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$File = "") param([string]$File = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
SHA256.ps1 [<file>] SHA256.ps1 [<file>]
.DESCRIPTION .DESCRIPTION
Prints the SHA256 checksum of the given file Prints the SHA256 checksum of the given file.
.EXAMPLE .EXAMPLE
PS> .\SHA256.ps1 C:\MyFile.txt PS> .\SHA256.ps1 C:\MyFile.txt
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$File = "") param([string]$File = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
add-firewall-rules.ps1 [<path-to-executables>] add-firewall-rules.ps1 [<path-to-executables>]
.DESCRIPTION .DESCRIPTION
Adds firewall rules for the given executables (needs administrator rights) Adds firewall rules for the given executables (needs administrator rights).
.EXAMPLE .EXAMPLE
PS> .\add-firewall-rules.ps1 C:\MyApp\bin PS> .\add-firewall-rules.ps1 C:\MyApp\bin
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
add-memo.ps1 [<text>] add-memo.ps1 [<text>]
.DESCRIPTION .DESCRIPTION
Adds the given memo text to $HOME/Memos.csv Adds the given memo text to $HOME/Memos.csv.
.EXAMPLE .EXAMPLE
PS> .\add-memo.ps1 "Buy apples" PS> .\add-memo.ps1 "Buy apples"
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$text = "") param([string]$text = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
alert.ps1 [<message>] alert.ps1 [<message>]
.DESCRIPTION .DESCRIPTION
Handle and escalate the given alert message Handle and escalate the given alert message.
.EXAMPLE .EXAMPLE
PS> .\alert.ps1 "Harddisk failure" PS> .\alert.ps1 "Harddisk failure"
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$Message = "") param([string]$Message = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-desktop.ps1 cd-desktop.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's desktop folder Go to the user's desktop folder.
.EXAMPLE .EXAMPLE
PS> .\cd-desktop.ps1 PS> .\cd-desktop.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Desktop" $TargetDir = resolve-path "$HOME/Desktop"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-docs.ps1 cd-docs.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's documents folder Go to the user's documents folder.
.EXAMPLE .EXAMPLE
PS> .\cd-docs.ps1 PS> .\cd-docs.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Documents" $TargetDir = resolve-path "$HOME/Documents"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-downloads.ps1 cd-downloads.ps1
.DESCRIPTION .DESCRIPTION
go to the user's downloads folder Go to the user's downloads folder.
.EXAMPLE .EXAMPLE
PS> .\cd-downloads.ps1 PS> .\cd-downloads.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Downloads" $TargetDir = resolve-path "$HOME/Downloads"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-dropbox.ps1 cd-dropbox.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's Dropbox folder Go to the user's Dropbox folder.
.EXAMPLE .EXAMPLE
PS> .\cd-dropbox.ps1 PS> .\cd-dropbox.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Dropbox" $TargetDir = resolve-path "$HOME/Dropbox"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-home.ps1 cd-home.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's home folder Go to the user's home folder.
.EXAMPLE .EXAMPLE
PS> .\cd-home.ps1 PS> .\cd-home.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME" $TargetDir = resolve-path "$HOME"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-music.ps1 cd-music.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's music folder Go to the user's music folder.
.EXAMPLE .EXAMPLE
PS> .\cd-music.ps1 PS> .\cd-music.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Music" $TargetDir = resolve-path "$HOME/Music"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-onedrive.ps1 cd-onedrive.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's OneDrive folder Go to the user's OneDrive folder.
.EXAMPLE .EXAMPLE
PS> .\cd-onedrive.ps1 PS> .\cd-onedrive.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/OneDrive" $TargetDir = resolve-path "$HOME/OneDrive"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-pics.ps1 cd-pics.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's pictures folder Go to the user's pictures folder.
.EXAMPLE .EXAMPLE
PS> .\cd-pics.ps1 PS> .\cd-pics.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Pictures" $TargetDir = resolve-path "$HOME/Pictures"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-recycle-bin.ps1 cd-recycle-bin.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's recycle bin folder Go to the user's recycle bin folder.
.EXAMPLE .EXAMPLE
PS> .\cd-recycle-bin.ps1 PS> .\cd-recycle-bin.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
function Get-CurrentUserSID { [CmdletBinding()] param() function Get-CurrentUserSID { [CmdletBinding()] param()

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-repos.ps1 cd-repos.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's Git repositories folder Go to the user's Git repositories folder.
.EXAMPLE .EXAMPLE
PS> .\cd-repos.ps1 PS> .\cd-repos.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Repos" $TargetDir = resolve-path "$HOME/Repos"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-root.ps1 cd-root.ps1
.DESCRIPTION .DESCRIPTION
Go to the root directory (C:\ on Windows) Go to the root directory (C:\ on Windows).
.EXAMPLE .EXAMPLE
PS> .\cd-root.ps1 PS> .\cd-root.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
if ($IsLinux) { if ($IsLinux) {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-scripts.ps1 cd-scripts.ps1
.DESCRIPTION .DESCRIPTION
Go to the PowerShell Scripts folder Go to the PowerShell Scripts folder.
.EXAMPLE .EXAMPLE
PS> .\cd-scripts.ps1 PS> .\cd-scripts.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$PSScriptRoot" $TargetDir = resolve-path "$PSScriptRoot"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-up.ps1 cd-up.ps1
.DESCRIPTION .DESCRIPTION
Go one directory level up Go one directory level up.
.EXAMPLE .EXAMPLE
PS> .\cd-up.ps1 PS> .\cd-up.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path ".." $TargetDir = resolve-path ".."

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-up2.ps1 cd-up2.ps1
.DESCRIPTION .DESCRIPTION
Go two directory levels up Go two directory levels up.
.EXAMPLE .EXAMPLE
PS> .\cd-up2.ps1 PS> .\cd-up2.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "../.." $TargetDir = resolve-path "../.."

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-up3.ps1 cd-up3.ps1
.DESCRIPTION .DESCRIPTION
Go three directory levels up Go three directory levels up.
.EXAMPLE .EXAMPLE
PS> .\cd-up3.ps1 PS> .\cd-up3.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "../../.." $TargetDir = resolve-path "../../.."

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-up4.ps1 cd-up4.ps1
.DESCRIPTION .DESCRIPTION
Go four directory levels up Go four directory levels up.
.EXAMPLE .EXAMPLE
PS> .\cd-up4.ps1 PS> .\cd-up4.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "../../../.." $TargetDir = resolve-path "../../../.."

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
cd-videos.ps1 cd-videos.ps1
.DESCRIPTION .DESCRIPTION
Go to the user's videos folder Go to the user's videos folder.
.EXAMPLE .EXAMPLE
PS> .\cd-videos.ps1 PS> .\cd-videos.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
$TargetDir = resolve-path "$HOME/Videos" $TargetDir = resolve-path "$HOME/Videos"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-cpu-temp.ps1 check-cpu-temp.ps1
.DESCRIPTION .DESCRIPTION
Checks the CPU temperature Checks the CPU temperature.
.EXAMPLE .EXAMPLE
PS> .\check-cpu-temp.ps1 PS> .\check-cpu-temp.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-dns-resolution.ps1 check-dns-resolution.ps1
.DESCRIPTION .DESCRIPTION
Checks the DNS resolution with frequently used domain names Checks the DNS resolution with frequently used domain names.
.EXAMPLE .EXAMPLE
PS> .\check-dns-resolution.ps1 PS> .\check-dns-resolution.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-drive-space.ps1 [<drive>] [<min-level>] check-drive-space.ps1 [<drive>] [<min-level>]
.DESCRIPTION .DESCRIPTION
Checks the given drive for free space left Checks the given drive for free space left.
.EXAMPLE .EXAMPLE
PS> .\check-drive-space.ps1 C PS> .\check-drive-space.ps1 C
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
check-file-system.ps1 [<drive>] check-file-system.ps1 [<drive>]
.DESCRIPTION .DESCRIPTION
Checks the validity of the file system (needs admin rights) Checks the validity of the file system (needs admin rights).
.EXAMPLE .EXAMPLE
PS> .\check-file-system.ps1 C PS> .\check-file-system.ps1 C
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
#Requires -RunAsAdministrator
param([string]$Drive = "") param([string]$Drive = "")
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-ipv4-address.ps1 [<address>] check-ipv4-address.ps1 [<address>]
.DESCRIPTION .DESCRIPTION
Checks the given IPv4 address for validity Checks the given IPv4 address for validity.
.EXAMPLE .EXAMPLE
PS> .\check-ipv4-address.ps1 192.168.11.22 PS> .\check-ipv4-address.ps1 192.168.11.22
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$Address = "") param([string]$Address = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-ipv6-address.ps1 [<address>] check-ipv6-address.ps1 [<address>]
.DESCRIPTION .DESCRIPTION
Checks the given IPv6 address for validity Checks the given IPv6 address for validity.
.EXAMPLE .EXAMPLE
PS> .\check-ipv6-address.ps1 fe80::200:5aee:feaa:20a2 PS> .\check-ipv6-address.ps1 fe80::200:5aee:feaa:20a2
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$Address = "") param([string]$Address = "")

View File

@ -2,15 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-mac-address.ps1 [<MAC>] check-mac-address.ps1 [<MAC>]
.DESCRIPTION .DESCRIPTION
Checks the given MAC address for validity Checks the given MAC address for validity (MAC address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000).
MAC address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000
.EXAMPLE .EXAMPLE
PS> .\check-mac-address.ps1 11:22:33:44:55:66 PS> .\check-mac-address.ps1 11:22:33:44:55:66
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$MAC = "") param([string]$MAC = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-ping.ps1 check-ping.ps1
.DESCRIPTION .DESCRIPTION
Checks the ping latency from the local computer to the internet Checks the ping latency from the local computer to the internet.
.EXAMPLE .EXAMPLE
PS> .\check-ping.ps1 PS> .\check-ping.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-subnet-mask.ps1 [<address>] check-subnet-mask.ps1 [<address>]
.DESCRIPTION .DESCRIPTION
Checks the given subnet mask for validity Checks the given subnet mask for validity.
.EXAMPLE .EXAMPLE
PS> .\check-subnet-mask.ps1 255.255.255.0 PS> .\check-subnet-mask.ps1 255.255.255.0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$address = "") param([string]$address = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-swap-space.ps1 [<min-level>] check-swap-space.ps1 [<min-level>]
.DESCRIPTION .DESCRIPTION
Checks the free swap space Checks the free swap space.
.EXAMPLE .EXAMPLE
PS> .\check-swap-space.ps1 PS> .\check-swap-space.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([int]$MinLevel = 50) # minimum level in GB param([int]$MinLevel = 50) # minimum level in GB

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-symlinks.ps1 [<dir-tree>] check-symlinks.ps1 [<dir-tree>]
.DESCRIPTION .DESCRIPTION
Checks every symlink in the given directory tree Checks every symlink in the given directory tree.
.EXAMPLE .EXAMPLE
PS> .\check-symlinks.ps1 C:\MyApp PS> .\check-symlinks.ps1 C:\MyApp
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$DirTree = "") param([string]$DirTree = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-weather.ps1 [<location>] check-weather.ps1 [<location>]
.DESCRIPTION .DESCRIPTION
Checks the weather for critical values Checks the weather for critical values.
.EXAMPLE .EXAMPLE
PS> .\check-weather.ps1 PS> .\check-weather.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$Location = "") # empty means determine automatically param([string]$Location = "") # empty means determine automatically

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
check-windows-system-files.ps1 check-windows-system-files.ps1
.DESCRIPTION .DESCRIPTION
Checks the validity of the Windows system files (requires admin rights) Checks the validity of the Windows system files (requires admin rights).
.EXAMPLE .EXAMPLE
PS> .\check-windows-system-files.ps1 PS> .\check-windows-system-files.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
sfc /verifyOnly sfc /verifyOnly
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" } if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
check-xml-file [<file>] check-xml-file [<file>]
.DESCRIPTION .DESCRIPTION
Checks the given XML file for validity Checks the given XML file for validity.
.EXAMPLE .EXAMPLE
PS> .\check-xml-file.ps1 myfile.xml PS> .\check-xml-file.ps1 myfile.xml
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$File = "") param([string]$File = "")

View File

@ -6,11 +6,10 @@
NOTE: in case of merge conflicts the script stops immediately! NOTE: in case of merge conflicts the script stops immediately!
.EXAMPLE .EXAMPLE
PS> .\cherry-picker.ps1 93849f889 "Fix typo" "v1 v2 v3" PS> .\cherry-picker.ps1 93849f889 "Fix typo" "v1 v2 v3"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD") param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
clean-repo.ps1 [<repo-dir>] clean-repo.ps1 [<repo-dir>]
.DESCRIPTION .DESCRIPTION
Cleans a Git repository from untracked files (including submodules, e.g. for a fresh build) Cleans a Git repository from untracked files (including submodules, e.g. for a fresh build).
.EXAMPLE .EXAMPLE
PS> .\clean-repo.ps1 C:\MyRepo PS> .\clean-repo.ps1 C:\MyRepo
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$RepoDir = "$PWD") param([string]$RepoDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
clean-repos.ps1 [<parent-dir>] clean-repos.ps1 [<parent-dir>]
.DESCRIPTION .DESCRIPTION
Cleans all Git repositories under the current/given directory from untracked files (including submodules) Cleans all Git repositories under the current/given directory from untracked files (including submodules).
.EXAMPLE .EXAMPLE
PS> .\clean-repos.ps1 C:\MyRepos PS> .\clean-repos.ps1 C:\MyRepos
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$ParentDir = "$PWD") param([string]$ParentDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
clear-recycle-bin.ps1 clear-recycle-bin.ps1
.DESCRIPTION .DESCRIPTION
Removes the content of the recycle bin folder (can not be undo!) Removes the content of the recycle bin folder (can not be undo).
.EXAMPLE .EXAMPLE
PS> .\clear-recycle-bin.ps1 PS> .\clear-recycle-bin.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -5,11 +5,10 @@
Clones well-known Git repositories under the current/given directory. Clones well-known Git repositories under the current/given directory.
.EXAMPLE .EXAMPLE
PS> .\clone-repos.ps1 C:\MyRepos PS> .\clone-repos.ps1 C:\MyRepos
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$ParentDir = "$PWD") param([string]$ParentDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-calculator.ps1 close-calculator.ps1
.DESCRIPTION .DESCRIPTION
Closes the calculator program gracefully Closes the calculator program gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-calculator.ps1 PS> .\close-calculator.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Calculator" "Calculator" "calc" & "$PSScriptRoot/close-program.ps1" "Calculator" "Calculator" "calc"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-chrome.ps1 close-chrome.ps1
.DESCRIPTION .DESCRIPTION
Closes the Web browser Google Chrome gracefully Closes the Web browser Google Chrome gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-chrome.ps1 PS> .\close-chrome.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome" & "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-cortana.ps1 close-cortana.ps1
.DESCRIPTION .DESCRIPTION
Closes Cortana gracefully Closes Cortana gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-cortana.ps1 PS> .\close-cortana.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana" & "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-edge.ps1 close-edge.ps1
.DESCRIPTION .DESCRIPTION
Closes the Web browser Microsoft Edge gracefully Closes the Web browser Microsoft Edge gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-edge.ps1 PS> .\close-edge.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Microsoft Edge" "msedge" "msedge" & "$PSScriptRoot/close-program.ps1" "Microsoft Edge" "msedge" "msedge"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-file-explorer.ps1 close-file-explorer.ps1
.DESCRIPTION .DESCRIPTION
Closes Microsoft File Explorer gracefully Closes Microsoft File Explorer gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-file-explorer.ps1 PS> .\close-file-explorer.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "File Explorer" "explorer" "explorer" & "$PSScriptRoot/close-program.ps1" "File Explorer" "explorer" "explorer"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-firefox.ps1 close-firefox.ps1
.DESCRIPTION .DESCRIPTION
Closes the Firefox Web browser gracefully Closes the Firefox Web browser gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-firefox.ps1 PS> .\close-firefox.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox" & "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-netflix.ps1 close-netflix.ps1
.DESCRIPTION .DESCRIPTION
Closes Netflix gracefully Closes the Netflix program gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-netflix.ps1 PS> .\close-netflix.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker" & "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-onedrive.ps1 close-onedrive.ps1
.DESCRIPTION .DESCRIPTION
Closes Microsoft OneDrive gracefully Closes Microsoft OneDrive gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-onedrive.ps1 PS> .\close-onedrive.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Microsoft OneDrive" "onedrive" "onedrive.exe" & "$PSScriptRoot/close-program.ps1" "Microsoft OneDrive" "onedrive" "onedrive.exe"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-program.ps1 [<full-program-name>] [<program-name>] [<program-alias-name>] close-program.ps1 [<full-program-name>] [<program-name>] [<program-alias-name>]
.DESCRIPTION .DESCRIPTION
Closes the processes of the given program gracefully Closes the processes of the given program gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-program.ps1 "Google Chrome" "chrome.exe" PS> .\close-program.ps1 "Google Chrome" "chrome.exe"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$FullProgramName = "", [string]$ProgramName = "", [string]$ProgramAliasName = "") param([string]$FullProgramName = "", [string]$ProgramName = "", [string]$ProgramAliasName = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-system-settings.ps1 close-system-settings.ps1
.DESCRIPTION .DESCRIPTION
Closes the System Settings gracefully Closes the System Settings gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-system-settings.ps1 PS> .\close-system-settings.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "System Settings" "SystemSettings" "SystemSettings" & "$PSScriptRoot/close-program.ps1" "System Settings" "SystemSettings" "SystemSettings"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-thunderbird.ps1 close-thunderbird.ps1
.DESCRIPTION .DESCRIPTION
Closes the mail client Mozilla Thunderbird gracefully Closes the mail client Mozilla Thunderbird gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-thunderbird.ps1 PS> .\close-thunderbird.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Mozilla Thunderbird" "thunderbird" "thunderbird" & "$PSScriptRoot/close-program.ps1" "Mozilla Thunderbird" "thunderbird" "thunderbird"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-vlc.ps1 close-vlc.ps1
.DESCRIPTION .DESCRIPTION
Closes the VLC media player gracefully Closes the VLC media player gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-vlc.ps1 PS> .\close-vlc.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc" & "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
close-windows-terminal.ps1 close-windows-terminal.ps1
.DESCRIPTION .DESCRIPTION
Closes Windows Terminal gracefully Closes Windows Terminal gracefully.
.EXAMPLE .EXAMPLE
PS> .\close-windows-terminal.ps1 PS> .\close-windows-terminal.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal" & "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>] configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
.DESCRIPTION .DESCRIPTION
Sets up the Git user configuration Sets up the Git user configuration.
.EXAMPLE .EXAMPLE
PS> .\configure-git.ps1 PS> .\configure-git.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$FullName = "", [string]$EmailAddress = "", [string]$FavoriteEditor = "") param([string]$FullName = "", [string]$EmailAddress = "", [string]$FavoriteEditor = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
convert-csv2txt.ps1 [<csv-file>] convert-csv2txt.ps1 [<csv-file>]
.DESCRIPTION .DESCRIPTION
Converts the given CSV file into a text list Converts a .CSV file into a text file.
.EXAMPLE .EXAMPLE
PS> .\convert-csv2txt.ps1 salaries.csv PS> .\convert-csv2txt.ps1 salaries.csv
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Path = "") param([string]$Path = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>] convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
.DESCRIPTION .DESCRIPTION
Convert the MySQL database table to a CSV file Convert a MySQL database table to a .CSV file.
.EXAMPLE .EXAMPLE
PS> .\convert-mysql2csv.ps1 PS> .\convert-mysql2csv.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
convert-ps2bat.ps1 [<pattern>] convert-ps2bat.ps1 [<pattern>]
.DESCRIPTION .DESCRIPTION
Converts PowerShell script(s) to .bat files Converts a PowerShell script to .bat files.
.EXAMPLE .EXAMPLE
PS> .\convert-ps2bat.ps1 *.ps1 PS> .\convert-ps2bat.ps1 *.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Pattern = "") param([string]$Pattern = "")

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
convert-ps2md.ps1 [<script>] convert-ps2md.ps1 [<script>]
.DESCRIPTION .DESCRIPTION
Converts the comment-based help of a PowerShell script to Markdown Converts the comment-based help of a PowerShell script to Markdown.
.EXAMPLE .EXAMPLE
PS> .\convert-ps2md.ps1 myscript.ps1 PS> .\convert-ps2md.ps1 myscript.ps1
.NOTES .NOTES

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>] convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
.DESCRIPTION .DESCRIPTION
Convert the SQL database table to a CSV file Converts a SQL database table to a .CSV file.
.EXAMPLE .EXAMPLE
PS> .\convert-sql2csv.ps1 PS> .\convert-sql2csv.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$server = "", [string]$database = "", [string]$username = "", [string]$password = "", [string]$query = "") param([string]$server = "", [string]$database = "", [string]$username = "", [string]$password = "", [string]$query = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
convert-txt2wav.ps1 [<text>] [<wav-file>] convert-txt2wav.ps1 [<text>] [<wav-file>]
.DESCRIPTION .DESCRIPTION
Converts the given text to a .WAV audio file Converts text to a .WAV audio file.
.EXAMPLE .EXAMPLE
PS> .\convert-txt2wav.ps1 "Hello World" spoken.wav PS> .\convert-txt2wav.ps1 "Hello World" spoken.wav
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Text = "", [string]$WavFile = "") param([string]$Text = "", [string]$WavFile = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
copy-photos-sorted.ps1 [<source-dir>] [<target-dir-tree>] copy-photos-sorted.ps1 [<source-dir>] [<target-dir-tree>]
.DESCRIPTION .DESCRIPTION
Copies all photos in source-dir sorted by year and month into the target-dir-tree Copies all photos in source-dir sorted by year and month into the target-dir-tree.
.EXAMPLE .EXAMPLE
PS> .\copy-photos-sorted.ps1 C:\MyPhotos C:\MyPhotoAlbum PS> .\copy-photos-sorted.ps1 C:\MyPhotos C:\MyPhotoAlbum
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$SourceDir = "", [string]$TargetDirTree = "") param([string]$SourceDir = "", [string]$TargetDirTree = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
create-branch.ps1 [<new-branch-name>] [<repo-dir>] create-branch.ps1 [<new-branch-name>] [<repo-dir>]
.DESCRIPTION .DESCRIPTION
Creates and switches to a new branch in a Git repository Creates and switches to a new branch in a Git repository.
.EXAMPLE .EXAMPLE
PS> .\create-branch.ps1 moonshot PS> .\create-branch.ps1 moonshot
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$NewBranchName = "", [string]$RepoDir = "$PWD") param([string]$NewBranchName = "", [string]$RepoDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
create-shortcut.ps1 [<shortcut>] [<target>] [<description>] create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
.DESCRIPTION .DESCRIPTION
Creates a new shortcut file Creates a new shortcut file.
.EXAMPLE .EXAMPLE
PS> .\create-shortcut.ps1 C:\Temp\HDD C:\ PS> .\create-shortcut.ps1 C:\Temp\HDD C:\
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$shortcut = "", [string]$target = "", [string]$description) param([string]$shortcut = "", [string]$target = "", [string]$description)

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
create-symlink.ps1 [<symlink>] [<target>] create-symlink.ps1 [<symlink>] [<target>]
.DESCRIPTION .DESCRIPTION
Creates a symbolic link file Creates a symbolic link file.
.EXAMPLE .EXAMPLE
PS> .\create-symlink.ps1 C:\Temp\HDD C:\ PS> .\create-symlink.ps1 C:\Temp\HDD C:\
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$symlink = "", $[string]target = "") param([string]$symlink = "", $[string]target = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
create-tag.ps1 [<new-tag-name>] [<repo-dir>] create-tag.ps1 [<new-tag-name>] [<repo-dir>]
.DESCRIPTION .DESCRIPTION
Creates a new tag in a Git repository Creates a new tag in a Git repository.
.EXAMPLE .EXAMPLE
PS> .\create-tag.ps1 v1.7 PS> .\create-tag.ps1 v1.7
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz Author: Markus Fleschutz · License: CC0
License: CC0
#> #>
param([string]$NewTagName = "", [string]$RepoDir = "$PWD") param([string]$NewTagName = "", [string]$RepoDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
decrypt-file.ps1 [<path>] [<password>] decrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION .DESCRIPTION
Decrypts the given file Decrypts the given file.
.EXAMPLE .EXAMPLE
PS> .\decrypt-file-rules.ps1 C:\MyFile.txt "123" PS> .\decrypt-file-rules.ps1 C:\MyFile.txt "123"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Path = "", [string]$Password = "") param([string]$Path = "", [string]$Password = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
display-time.ps1 [<seconds>] display-time.ps1 [<seconds>]
.DESCRIPTION .DESCRIPTION
Displays the current time (for 10 seconds by default) Displays the current time (for 10 seconds by default).
.EXAMPLE .EXAMPLE
PS> .\display-time.ps1 PS> .\display-time.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([int]$Seconds = 10) param([int]$Seconds = 10)

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
download-dir.ps1 [<URL>] download-dir.ps1 [<URL>]
.DESCRIPTION .DESCRIPTION
Downloads a directory tree from the given URL Downloads a directory tree from the given URL.
.EXAMPLE .EXAMPLE
PS> .\download-dir.ps1 "https://www.cnn.com" PS> .\download-dir.ps1 "https://www.cnn.com"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$URL = "") param([string]$URL = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
download-file.ps1 [<URL>] download-file.ps1 [<URL>]
.DESCRIPTION .DESCRIPTION
Downloads a file from the given URL Downloads a file from the given URL.
.EXAMPLE .EXAMPLE
PS> .\download-file.ps1 "https://www.cnn.com/index.html" PS> .\download-file.ps1 "https://www.cnn.com/index.html"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$URL = "") param([string]$URL = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
edit.ps1 <filename> edit.ps1 <filename>
.DESCRIPTION .DESCRIPTION
Opens the built-in text editor to edit the given file Opens the built-in text editor to edit the given file.
.EXAMPLE .EXAMPLE
PS> .\edit.ps1 C:\MyFile.txt PS> .\edit.ps1 C:\MyFile.txt
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Filename = "") param([string]$Filename = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
enable-crash-dumps.ps1 enable-crash-dumps.ps1
.DESCRIPTION .DESCRIPTION
Enables the writing of crash dumps Enables the writing of crash dumps.
.EXAMPLE .EXAMPLE
PS> .\enable-crash-dumps.ps1 PS> .\enable-crash-dumps.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
################################################################## ##################################################################

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
enable-god-mode.ps1 enable-god-mode.ps1
.DESCRIPTION .DESCRIPTION
Enables the god mode (adds a new icon to the desktop) Enables the god mode (adds a new icon to the desktop).
.EXAMPLE .EXAMPLE
PS> .\enable-god-mode.ps1 PS> .\enable-god-mode.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
encrypt-file.ps1 [<path>] [<password>] encrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION .DESCRIPTION
Encrypts the given file Encrypts the given file.
.EXAMPLE .EXAMPLE
PS> .\encrypt-file.ps1 C:\MyFile.txt "123" PS> .\encrypt-file.ps1 C:\MyFile.txt "123"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Path = "", [string]$Password = "") param([string]$Path = "", [string]$Password = "")

View File

@ -1,4 +1,17 @@
# make sure you adjust this path <#
.SYNOPSIS
enter-chat.ps1
.DESCRIPTION
Enters a chat using a common network shared file.
.EXAMPLE
PS> .\enter-chat.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
# make sure you adjust this path
# it must point to a network share where you have read and write permissions # it must point to a network share where you have read and write permissions
$ServerShare = "\\myserver\chathome" $ServerShare = "\\myserver\chathome"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
fetch-repo.ps1 [<repo-dir>] fetch-repo.ps1 [<repo-dir>]
.DESCRIPTION .DESCRIPTION
Fetches updates for a local Git repository (including submodules) Fetches updates for a local Git repository (including submodules).
.EXAMPLE .EXAMPLE
PS> .\fetch-repo.ps1 PS> .\fetch-repo.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$RepoDir = "$PWD") param([string]$RepoDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
fetch-repos.ps1 [<parent-dir>] fetch-repos.ps1 [<parent-dir>]
.DESCRIPTION .DESCRIPTION
Fetches updates for all Git repositories under the current/given directory (including submodules) Fetches updates for all Git repositories under the current/given directory (including submodules).
.EXAMPLE .EXAMPLE
PS> .\fetch-repos.ps1 C:\MyRepos PS> .\fetch-repos.ps1 C:\MyRepos
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$ParentDir = "$PWD") param([string]$ParentDir = "$PWD")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
generate-qrcode.ps1 [<text>] [<image-size>] generate-qrcode.ps1 [<text>] [<image-size>]
.DESCRIPTION .DESCRIPTION
Generates a QR code image file Generates a QR code image file.
.EXAMPLE .EXAMPLE
PS> .\generate-qrcode.ps1 PS> .\generate-qrcode.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Text = "", [string]$ImageSize = "") param([string]$Text = "", [string]$ImageSize = "")

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
hibernate.ps1 hibernate.ps1
.DESCRIPTION .DESCRIPTION
Enables hibernate mode for the local computer (needs admin rights) Enables hibernate mode for the local computer (needs admin rights).
.EXAMPLE .EXAMPLE
PS> .\hibernate.ps1 PS> .\hibernate.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") [Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false); [System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false);

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
inspect-exe.ps1 [<path-to-exe-file>] inspect-exe.ps1 [<path-to-exe-file>]
.DESCRIPTION .DESCRIPTION
Prints basic information of the given executable file Prints basic information of the given executable file.
.EXAMPLE .EXAMPLE
PS> .\inspect-exe.ps1 C:\MyApp.exe PS> .\inspect-exe.ps1 C:\MyApp.exe
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$PathToExe = "") param([string]$PathToExe = "")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
install-github-cli.ps1 install-github-cli.ps1
.DESCRIPTION .DESCRIPTION
Installs GitHub CLI Installs GitHub CLI.
.EXAMPLE .EXAMPLE
PS> .\install-github-cli.ps1 PS> .\install-github-cli.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
install-google-chrome.ps1 install-google-chrome.ps1
.DESCRIPTION .DESCRIPTION
Installs the latest Google Chrome browser Installs the latest Google Chrome browser.
.EXAMPLE .EXAMPLE
PS> .\install-google-chrome.ps1 PS> .\install-google-chrome.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -5,11 +5,10 @@
Installs the Knot Resolver (a DNS resolver daemon, needs admin rights). Installs the Knot Resolver (a DNS resolver daemon, needs admin rights).
.EXAMPLE .EXAMPLE
PS> .\install-knot-resolver.ps1 PS> .\install-knot-resolver.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -5,11 +5,10 @@
Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number. Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number.
.EXAMPLE .EXAMPLE
PS> .\install-signal-cli.ps1 0.11.12 PS> .\install-signal-cli.ps1 0.11.12
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Version = "") param([string]$Version = "")

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
install-ssh-client.ps1 install-ssh-client.ps1
.DESCRIPTION .DESCRIPTION
Installs the SSH client (needs admin rights) Installs the SSH client (needs admin rights).
.EXAMPLE .EXAMPLE
PS> .\install-ssh-client.ps1 PS> .\install-ssh-client.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
$StopWatch = [system.diagnostics.stopwatch]::startNew() $StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
install-ssh-server.ps1 install-ssh-server.ps1
.DESCRIPTION .DESCRIPTION
Installs the SSH server (needs admin rights) Installs the SSH server (needs admin rights).
.EXAMPLE .EXAMPLE
PS> .\install-ssh-server.ps1 PS> .\install-ssh-server.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
$StopWatch = [system.diagnostics.stopwatch]::startNew() $StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,19 +1,17 @@
<# #Requires -RunAsAdministrator
<#
.SYNOPSIS .SYNOPSIS
install-wsl.ps1 install-wsl.ps1
.DESCRIPTION .DESCRIPTION
Installs Windows Subsystem for Linux (WSL), needs admin rights Installs Windows Subsystem for Linux (WSL) - needs admin rights.
.EXAMPLE .EXAMPLE
PS> .\install-wsl.ps1 PS> .\install-wsl.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
#Requires -RunAsAdministrator
try { try {
$StopWatch = [system.diagnostics.stopwatch]::startNew() $StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
introduce-powershell.ps1 introduce-powershell.ps1
.DESCRIPTION .DESCRIPTION
Introduces PowerShell to new users Introduces PowerShell to new users.
.EXAMPLE .EXAMPLE
PS> .\introduce-powershell.ps1 PS> .\introduce-powershell.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-aliases.ps1 list-aliases.ps1
.DESCRIPTION .DESCRIPTION
Lists all PowerShell aliases Lists all PowerShell aliases.
.EXAMPLE .EXAMPLE
PS> .\list-aliases.ps1 PS> .\list-aliases.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-anagrams.ps1 [<word>] [<columns>] list-anagrams.ps1 [<word>] [<columns>]
.DESCRIPTION .DESCRIPTION
Lists all anagrams of the given word Lists all anagrams of the given word.
.EXAMPLE .EXAMPLE
PS> .\list-anagrams.ps1 Markus PS> .\list-anagrams.ps1 Markus
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$Word = "", [int]$Columns = 8) param([string]$Word = "", [int]$Columns = 8)

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-automatic-variables.ps1 list-automatic-variables.ps1
.DESCRIPTION .DESCRIPTION
Lists all automatic variables of PowerShell Lists all automatic variables of PowerShell.
.EXAMPLE .EXAMPLE
PS> .\list-automatic-variables.ps1 PS> .\list-automatic-variables.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
function AddItem { param([string]$Variable, [string]$Content) function AddItem { param([string]$Variable, [string]$Content)

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-branches.ps1 [<repo-dir>] [<pattern>] list-branches.ps1 [<repo-dir>] [<pattern>]
.DESCRIPTION .DESCRIPTION
Lists all branches in the current/given Git repository Lists all branches in the current/given Git repository.
.EXAMPLE .EXAMPLE
PS> .\list-branches.ps1 PS> .\list-branches.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$RepoDir = "$PWD", [string]$Pattern = "*") param([string]$RepoDir = "$PWD", [string]$Pattern = "*")

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-cheat-sheet.ps1 list-cheat-sheet.ps1
.DESCRIPTION .DESCRIPTION
Lists the PowerShell cheat sheet Lists the PowerShell cheat sheet.
.EXAMPLE .EXAMPLE
PS> .\list-cheat-sheet.ps1 PS> .\list-cheat-sheet.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
"PowerShell Cheat Sheet" "PowerShell Cheat Sheet"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-city-weather.ps1 list-city-weather.ps1
.DESCRIPTION .DESCRIPTION
List the current weather of cities world-wide (west to east) List the current weather of cities world-wide (west to east).
.EXAMPLE .EXAMPLE
PS> .\list-city-weather.ps1 PS> .\list-city-weather.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
$Cities="Hawaii","Los Angeles","Mexico City","Miami","New York","Rio de Janeiro","Paris","London","Berlin","Cape Town","Dubai","Mumbai","Singapore","Hong Kong","Peking","Tokyo","Sydney" $Cities="Hawaii","Los Angeles","Mexico City","Miami","New York","Rio de Janeiro","Paris","London","Berlin","Cape Town","Dubai","Mumbai","Singapore","Hong Kong","Peking","Tokyo","Sydney"

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-cli-tools.ps1 list-cli-tools.ps1
.DESCRIPTION .DESCRIPTION
Lists available command-line interface (CLI) tools Lists available command-line interface (CLI) tools.
.EXAMPLE .EXAMPLE
PS> .\list-cli-tools.ps1 PS> .\list-cli-tools.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
function CheckFor { param([string]$Cmd, [string]$VersionArg) function CheckFor { param([string]$Cmd, [string]$VersionArg)

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-clipboard.ps1 list-clipboard.ps1
.DESCRIPTION .DESCRIPTION
Lists the contents of the clipboard Lists the contents of the clipboard.
.EXAMPLE .EXAMPLE
PS> .\list-clipboard.ps1 PS> .\list-clipboard.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-cmdlets.ps1 list-cmdlets.ps1
.DESCRIPTION .DESCRIPTION
Lists all PowerShell cmdlets Lists all PowerShell cmdlets.
.EXAMPLE .EXAMPLE
PS> .\list-cmdlets.ps1 PS> .\list-cmdlets.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-commits.ps1 [<repo-dir>] [<format>] list-commits.ps1 [<repo-dir>] [<format>]
.DESCRIPTION .DESCRIPTION
Lists all commits in the current/given Git repository Lists all commits in the current/given Git repository.
.EXAMPLE .EXAMPLE
PS> .\list-commits.ps1 PS> .\list-commits.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
License: CC0
#> #>
param([string]$RepoDir = "$PWD", [string]$Format = "compact") param([string]$RepoDir = "$PWD", [string]$Format = "compact")

View File

@ -2,15 +2,13 @@
.SYNOPSIS .SYNOPSIS
list-console-colors.ps1 list-console-colors.ps1
.DESCRIPTION .DESCRIPTION
Lists all console colors Lists all console colors.
.EXAMPLE .EXAMPLE
PS> .\list-console-colors.ps1 PS> .\list-console-colors.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz
Creation Date: 2021-08-27
License: CC0
#> #>
try { try {

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