Improve the comment-based section

This commit is contained in:
Markus Fleschutz 2021-07-13 21:10:02 +02:00
parent e85b2a5bd5
commit d37e3ba990
208 changed files with 2086 additions and 840 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX check-file-system.ps1 [<drive>]
.DESCRIPTION checks the validity of the file system (needs admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
check-file-system.ps1 [<drive>]
.DESCRIPTION
Checks the validity of the file system (needs admin rights)
.EXAMPLE
PS> .\check-file-system.ps1 C
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

@ -1,8 +1,14 @@
<#
.SYNTAX check-health.ps1
.DESCRIPTION checks the health of the local computer
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
check-health.ps1
.DESCRIPTION
Checks the health of the local computer
.EXAMPLE
PS> .\check-health.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
$Hostname = $(hostname)

View File

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

View File

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

View File

@ -1,9 +1,15 @@
<#
.SYNTAX check-mac-address.ps1 [<MAC>]
.DESCRIPTION checks the given MAC address for validity
.SYNOPSIS
check-mac-address.ps1 [<MAC>]
.DESCRIPTION
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
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.EXAMPLE
PS> .\check-mac-address.ps1 11:22:33:44:55:66
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($MAC = "")

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX check-windows-system-files.ps1
.DESCRIPTION checks the validity of the Windows system files (requires admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
check-windows-system-files.ps1
.DESCRIPTION
Checks the validity of the Windows system files (requires admin rights)
.EXAMPLE
PS> .\check-windows-system-files.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX cherry-picker.ps1 [<commit-id>] [<commit-message>] [<branches>] [<repo-dir>]
.DESCRIPTION cherry-picks a Git commit into multiple branches
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
cherry-picker.ps1 [<commit-id>] [<commit-message>] [<branches>] [<repo-dir>]
.DESCRIPTION
Cherry-picks a Git commit into multiple branches
.EXAMPLE
PS> .\cherry-picker.ps1 93849f889 "Fix typo" v1 v2 v3
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($CommitID = "", $CommitMessage = "", $Branches = "", $RepoDir = "$PWD")

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX clone-repos.ps1 [<parent-dir>]
.DESCRIPTION clones well-known Git repositories under the current/given directory.
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
clone-repos.ps1 [<parent-dir>]
.DESCRIPTION
Clones well-known Git repositories under the current/given directory.
.EXAMPLE
PS> .\clone-repos.ps1 C:\MyRepos
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($ParentDir = "$PWD")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX enable-ssh-client.ps1
.DESCRIPTION enables the SSH client (needs admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
enable-ssh-client.ps1
.DESCRIPTION
Enables the SSH client (needs admin rights)
.EXAMPLE
PS> .\enable-ssh-client.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

@ -1,8 +1,14 @@
<#
.SYNTAX enable-ssh-server.ps1
.DESCRIPTION enables the SSH server (needs admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
enable-ssh-server.ps1
.DESCRIPTION
Enables the SSH server (needs admin rights)
.EXAMPLE
PS> .\enable-ssh-server.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX hibernate.ps1
.DESCRIPTION enables hibernate mode for the local computer (needs admin rights)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
hibernate.ps1
.DESCRIPTION
Enables hibernate mode for the local computer (needs admin rights)
.EXAMPLE
PS> .\hibernate.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX install-google-chrome.ps1
.DESCRIPTION silently installs latest Google Chrome
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
install-google-chrome.ps1
.DESCRIPTION
Silently installs latest Google Chrome
.EXAMPLE
PS> .\install-google-chrome.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX install-signal-cli.ps1 [<version>]
.DESCRIPTION installs signal-cli from github.com/AsamK/signal-cli
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
install-signal-cli.ps1 [<version>]
.DESCRIPTION
Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number.
.EXAMPLE
PS> .\install-signal-cli.ps1 0.11.12
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($Version = "")

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-aliases.ps1
.DESCRIPTION lists all PowerShell aliases
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-aliases.ps1
.DESCRIPTION
Lists all PowerShell aliases
.EXAMPLE
PS> .\list-aliases.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-city-weather.ps1
.DESCRIPTION list the current weather of cities world-wide (west to east)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-city-weather.ps1
.DESCRIPTION
List the current weather of cities world-wide (west to east)
.EXAMPLE
PS> .\list-city-weather.ps1
.LINK
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"

View File

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

View File

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

View File

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

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-credits.ps1
.DESCRIPTION shows the credits
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-credits.ps1
.DESCRIPTION
Shows the credits for the PowerShell Scripts
.EXAMPLE
PS> .\list-credits.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-dir-tree.ps1 [<dir-tree>]
.DESCRIPTION lists a directory tree
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-dir-tree.ps1 [<dir-tree>]
.DESCRIPTION
Lists the full directory tree
.EXAMPLE
PS> .\list-dir-tree.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($DirTree = "$PWD")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-dir.ps1 [<pattern>]
.DESCRIPTION lists the directory content formatted in columns
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-dir.ps1 [<pattern>]
.DESCRIPTION
Lists the directory content formatted in columns
.EXAMPLE
PS> .\list-dir.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($Pattern = "*")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-drives.ps1
.DESCRIPTION lists all drives connected to the computer
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-drives.ps1
.DESCRIPTION
Lists all drives connected to the computer
.EXAMPLE
PS> .\list-drives.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-earthquakes.ps1
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-earthquakes.ps1
.DESCRIPTION
Lists earthquakes with magnitude >= 6.0 for the last 30 days
.EXAMPLE
PS> .\list-earthquakes.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
$Format="csv" # csv, geojson, kml, text, xml

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-emojis.ps1
.DESCRIPTION lists the Emojis of Unicode 13.0
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-emojis.ps1
.DESCRIPTION
Lists the Emojis of Unicode 13.0
.EXAMPLE
PS> .\list-emojis.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
"Emojis of Unicode 13.0"

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-empty-dirs.ps1 [<dir-tree>]
.DESCRIPTION lists empty subfolders within the given directory tree
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-empty-dirs.ps1 [<dir-tree>]
.DESCRIPTION
Lists empty subfolders within the given directory tree
.EXAMPLE
PS> .\list-empty-dirs.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($DirTree = "$PWD")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-empty-files.ps1 [<dir-tree>]
.DESCRIPTION lists empty files within the given directory tree
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-empty-files.ps1 [<dir-tree>]
.DESCRIPTION
Lists empty files within the given directory tree
.EXAMPLE
PS> .\list-empty-files.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($DirTree = "")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-environment-variables.ps1
.DESCRIPTION lists all environment variables
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-environment-variables.ps1
.DESCRIPTION
Lists all environment variables
.EXAMPLE
PS> .\list-environment-variables.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-files.ps1 [<dir-tree>]
.DESCRIPTION lists all files in the given directory tree
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-files.ps1 [<dir-tree>]
.DESCRIPTION
Lists all files in the given directory tree
.EXAMPLE
PS> .\list-files.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($DirTree = "")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists the phone calls of the FRITZ!Box device
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION
Lists the phone calls of the FRITZ!Box device
.EXAMPLE
PS> .\list-fritzbox-calls.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -Version 3

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists FRITZ!Box's known devices
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-fritzbox-devices.ps1 [<username>] [<password>]
.DESCRIPTION
Lists FRITZ!Box's known devices
.EXAMPLE
PS> .\list-fritzbox-devices.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -Version 3

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-hidden-files.ps1 [<dir-tree>]
.DESCRIPTION lists hidden files within the given directory tree
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-hidden-files.ps1 [<dir-tree>]
.DESCRIPTION
Lists hidden files within the given directory tree
.EXAMPLE
PS> .\list-hidden-files.ps1 C:\
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($DirTree = "$PWD")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-installed-apps.ps1
.DESCRIPTION lists the installed Windows Store apps
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-installed-apps.ps1
.DESCRIPTION
Lists the installed Windows Store apps
.EXAMPLE
PS> .\list-installed-apps.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-installed-software.ps1
.DESCRIPTION lists the installed software (except Windows Store apps)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-installed-software.ps1
.DESCRIPTION
Lists the installed software (except Windows Store apps)
.EXAMPLE
PS> .\list-installed-software.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-latest-tag.ps1 [<repo-dir>]
.DESCRIPTION lists the latest tag on the current branch in a Git repository
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-latest-tag.ps1 [<repo-dir>]
.DESCRIPTION
Lists the latest tag on the current branch in a Git repository
.EXAMPLE
PS> .\list-latest-tag.ps1 C:\MyRepo
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param($RepoDir = "$PWD")

View File

@ -1,8 +1,14 @@
<#
.SYNTAX list-memos.ps1
.DESCRIPTION lists the memos at $HOME/Memos.csv
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
.SYNOPSIS
list-memos.ps1
.DESCRIPTION
Lists all memos in $HOME/Memos.csv
.EXAMPLE
PS> .\list-memos.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>

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