diff --git a/Scripts/MD5.ps1 b/Scripts/MD5.ps1 index 0a08017b..783605d6 100755 --- a/Scripts/MD5.ps1 +++ b/Scripts/MD5.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS MD5.ps1 [] .DESCRIPTION - Prints the MD5 checksum of the given file + Prints the MD5 checksum of the given file. .EXAMPLE PS> .\MD5.ps1 C:\MyFile.txt +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$File = "") diff --git a/Scripts/SHA1.ps1 b/Scripts/SHA1.ps1 index 22a9f217..814ab75a 100755 --- a/Scripts/SHA1.ps1 +++ b/Scripts/SHA1.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS SHA1.ps1 [] .DESCRIPTION - Prints the SHA1 checksum of the given file + Prints the SHA1 checksum of the given file. .EXAMPLE PS> .\SHA1.ps1 C:\MyFile.txt +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$File = "") diff --git a/Scripts/SHA256.ps1 b/Scripts/SHA256.ps1 index 3f130a38..7fbcced9 100755 --- a/Scripts/SHA256.ps1 +++ b/Scripts/SHA256.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS SHA256.ps1 [] .DESCRIPTION - Prints the SHA256 checksum of the given file + Prints the SHA256 checksum of the given file. .EXAMPLE PS> .\SHA256.ps1 C:\MyFile.txt +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$File = "") diff --git a/Scripts/add-firewall-rules.ps1 b/Scripts/add-firewall-rules.ps1 index a70ffa4f..c342152e 100755 --- a/Scripts/add-firewall-rules.ps1 +++ b/Scripts/add-firewall-rules.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS add-firewall-rules.ps1 [] .DESCRIPTION - Adds firewall rules for the given executables (needs administrator rights) + Adds firewall rules for the given executables (needs administrator rights). .EXAMPLE PS> .\add-firewall-rules.ps1 C:\MyApp\bin .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> #Requires -RunAsAdministrator diff --git a/Scripts/add-memo.ps1 b/Scripts/add-memo.ps1 index 4193d202..24d10028 100755 --- a/Scripts/add-memo.ps1 +++ b/Scripts/add-memo.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS add-memo.ps1 [] .DESCRIPTION - Adds the given memo text to $HOME/Memos.csv + Adds the given memo text to $HOME/Memos.csv. .EXAMPLE PS> .\add-memo.ps1 "Buy apples" .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([string]$text = "") diff --git a/Scripts/alert.ps1 b/Scripts/alert.ps1 index c313db47..d3f39acb 100755 --- a/Scripts/alert.ps1 +++ b/Scripts/alert.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS alert.ps1 [] .DESCRIPTION - Handle and escalate the given alert message + Handle and escalate the given alert message. .EXAMPLE PS> .\alert.ps1 "Harddisk failure" .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([string]$Message = "") diff --git a/Scripts/cd-desktop.ps1 b/Scripts/cd-desktop.ps1 index 41d27ddf..8d39f0ae 100755 --- a/Scripts/cd-desktop.ps1 +++ b/Scripts/cd-desktop.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-desktop.ps1 .DESCRIPTION - Go to the user's desktop folder + Go to the user's desktop folder. .EXAMPLE PS> .\cd-desktop.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Desktop" diff --git a/Scripts/cd-docs.ps1 b/Scripts/cd-docs.ps1 index b6543207..7b7f0b64 100755 --- a/Scripts/cd-docs.ps1 +++ b/Scripts/cd-docs.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-docs.ps1 .DESCRIPTION - Go to the user's documents folder + Go to the user's documents folder. .EXAMPLE PS> .\cd-docs.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Documents" diff --git a/Scripts/cd-downloads.ps1 b/Scripts/cd-downloads.ps1 index 82022483..6248e0ad 100755 --- a/Scripts/cd-downloads.ps1 +++ b/Scripts/cd-downloads.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-downloads.ps1 .DESCRIPTION - go to the user's downloads folder + Go to the user's downloads folder. .EXAMPLE PS> .\cd-downloads.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Downloads" diff --git a/Scripts/cd-dropbox.ps1 b/Scripts/cd-dropbox.ps1 index 2d928650..7d330004 100755 --- a/Scripts/cd-dropbox.ps1 +++ b/Scripts/cd-dropbox.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-dropbox.ps1 .DESCRIPTION - Go to the user's Dropbox folder + Go to the user's Dropbox folder. .EXAMPLE PS> .\cd-dropbox.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Dropbox" diff --git a/Scripts/cd-home.ps1 b/Scripts/cd-home.ps1 index fae1d571..58d7c64a 100755 --- a/Scripts/cd-home.ps1 +++ b/Scripts/cd-home.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-home.ps1 .DESCRIPTION - Go to the user's home folder + Go to the user's home folder. .EXAMPLE PS> .\cd-home.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME" diff --git a/Scripts/cd-music.ps1 b/Scripts/cd-music.ps1 index 8913e9df..872e5426 100755 --- a/Scripts/cd-music.ps1 +++ b/Scripts/cd-music.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-music.ps1 .DESCRIPTION - Go to the user's music folder + Go to the user's music folder. .EXAMPLE PS> .\cd-music.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Music" diff --git a/Scripts/cd-onedrive.ps1 b/Scripts/cd-onedrive.ps1 index 7dc5b11c..6229cd7d 100644 --- a/Scripts/cd-onedrive.ps1 +++ b/Scripts/cd-onedrive.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-onedrive.ps1 .DESCRIPTION - Go to the user's OneDrive folder + Go to the user's OneDrive folder. .EXAMPLE PS> .\cd-onedrive.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/OneDrive" diff --git a/Scripts/cd-pics.ps1 b/Scripts/cd-pics.ps1 index d24f27be..9f750dd6 100755 --- a/Scripts/cd-pics.ps1 +++ b/Scripts/cd-pics.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-pics.ps1 .DESCRIPTION - Go to the user's pictures folder + Go to the user's pictures folder. .EXAMPLE PS> .\cd-pics.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Pictures" diff --git a/Scripts/cd-recycle-bin.ps1 b/Scripts/cd-recycle-bin.ps1 index 6f233d8f..c4de753b 100644 --- a/Scripts/cd-recycle-bin.ps1 +++ b/Scripts/cd-recycle-bin.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-recycle-bin.ps1 .DESCRIPTION - Go to the user's recycle bin folder + 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 + Author: Markus Fleschutz · License: CC0 #> function Get-CurrentUserSID { [CmdletBinding()] param() diff --git a/Scripts/cd-repos.ps1 b/Scripts/cd-repos.ps1 index 56084d36..ba940653 100644 --- a/Scripts/cd-repos.ps1 +++ b/Scripts/cd-repos.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-repos.ps1 .DESCRIPTION - Go to the user's Git repositories folder + 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 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Repos" diff --git a/Scripts/cd-root.ps1 b/Scripts/cd-root.ps1 index 55693d5d..20153fc6 100755 --- a/Scripts/cd-root.ps1 +++ b/Scripts/cd-root.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-root.ps1 .DESCRIPTION - Go to the root directory (C:\ on Windows) + 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 + Author: Markus Fleschutz · License: CC0 #> if ($IsLinux) { diff --git a/Scripts/cd-scripts.ps1 b/Scripts/cd-scripts.ps1 index 3657238f..2827e8bc 100755 --- a/Scripts/cd-scripts.ps1 +++ b/Scripts/cd-scripts.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-scripts.ps1 .DESCRIPTION - Go to the PowerShell Scripts folder + Go to the PowerShell Scripts folder. .EXAMPLE PS> .\cd-scripts.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$PSScriptRoot" diff --git a/Scripts/cd-up.ps1 b/Scripts/cd-up.ps1 index 1623f1b2..6cf243a7 100755 --- a/Scripts/cd-up.ps1 +++ b/Scripts/cd-up.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-up.ps1 .DESCRIPTION - Go one directory level up + Go one directory level up. .EXAMPLE PS> .\cd-up.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path ".." diff --git a/Scripts/cd-up2.ps1 b/Scripts/cd-up2.ps1 index f4bc3d9f..367f7329 100644 --- a/Scripts/cd-up2.ps1 +++ b/Scripts/cd-up2.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-up2.ps1 .DESCRIPTION - Go two directory levels up + Go two directory levels up. .EXAMPLE PS> .\cd-up2.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "../.." diff --git a/Scripts/cd-up3.ps1 b/Scripts/cd-up3.ps1 index 709ec405..3bc23e3a 100644 --- a/Scripts/cd-up3.ps1 +++ b/Scripts/cd-up3.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-up3.ps1 .DESCRIPTION - Go three directory levels up + Go three directory levels up. .EXAMPLE PS> .\cd-up3.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "../../.." diff --git a/Scripts/cd-up4.ps1 b/Scripts/cd-up4.ps1 index fc4137e1..f06a9348 100644 --- a/Scripts/cd-up4.ps1 +++ b/Scripts/cd-up4.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-up4.ps1 .DESCRIPTION - Go four directory levels up + Go four directory levels up. .EXAMPLE PS> .\cd-up4.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "../../../.." diff --git a/Scripts/cd-videos.ps1 b/Scripts/cd-videos.ps1 index c3319b81..091f045a 100755 --- a/Scripts/cd-videos.ps1 +++ b/Scripts/cd-videos.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS cd-videos.ps1 .DESCRIPTION - Go to the user's videos folder + Go to the user's videos folder. .EXAMPLE PS> .\cd-videos.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> $TargetDir = resolve-path "$HOME/Videos" diff --git a/Scripts/check-cpu-temp.ps1 b/Scripts/check-cpu-temp.ps1 index 63ea73de..8d0d46f0 100755 --- a/Scripts/check-cpu-temp.ps1 +++ b/Scripts/check-cpu-temp.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-cpu-temp.ps1 .DESCRIPTION - Checks the CPU temperature + Checks the CPU temperature. .EXAMPLE PS> .\check-cpu-temp.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> try { diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index d4bfd3bd..10aeb4f9 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-dns-resolution.ps1 .DESCRIPTION - Checks the DNS resolution with frequently used domain names + 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 + Author: Markus Fleschutz · License: CC0 #> try { diff --git a/Scripts/check-drive-space.ps1 b/Scripts/check-drive-space.ps1 index b31afa25..bb965284 100755 --- a/Scripts/check-drive-space.ps1 +++ b/Scripts/check-drive-space.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-drive-space.ps1 [] [] .DESCRIPTION - Checks the given drive for free space left + 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 + Author: Markus Fleschutz · License: CC0 #> param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB diff --git a/Scripts/check-file-system.ps1 b/Scripts/check-file-system.ps1 index 6d4f4739..e162a7cc 100755 --- a/Scripts/check-file-system.ps1 +++ b/Scripts/check-file-system.ps1 @@ -1,19 +1,17 @@ -<# +#Requires -RunAsAdministrator +<# .SYNOPSIS check-file-system.ps1 [] .DESCRIPTION - Checks the validity of the file system (needs admin rights) + 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 + Author: Markus Fleschutz · License: CC0 #> -#Requires -RunAsAdministrator - param([string]$Drive = "") try { diff --git a/Scripts/check-ipv4-address.ps1 b/Scripts/check-ipv4-address.ps1 index 9a03d70f..5ebb5b60 100755 --- a/Scripts/check-ipv4-address.ps1 +++ b/Scripts/check-ipv4-address.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-ipv4-address.ps1 [
] .DESCRIPTION - Checks the given IPv4 address for validity + 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 + Author: Markus Fleschutz · License: CC0 #> param([string]$Address = "") diff --git a/Scripts/check-ipv6-address.ps1 b/Scripts/check-ipv6-address.ps1 index bfbad295..4291dd4c 100755 --- a/Scripts/check-ipv6-address.ps1 +++ b/Scripts/check-ipv6-address.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-ipv6-address.ps1 [
] .DESCRIPTION - Checks the given IPv6 address for validity + 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 + Author: Markus Fleschutz · License: CC0 #> param([string]$Address = "") diff --git a/Scripts/check-mac-address.ps1 b/Scripts/check-mac-address.ps1 index 9b9be843..009d27be 100755 --- a/Scripts/check-mac-address.ps1 +++ b/Scripts/check-mac-address.ps1 @@ -2,15 +2,13 @@ .SYNOPSIS check-mac-address.ps1 [] .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 + 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). .EXAMPLE PS> .\check-mac-address.ps1 11:22:33:44:55:66 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([string]$MAC = "") diff --git a/Scripts/check-ping.ps1 b/Scripts/check-ping.ps1 index 057878b8..c2ab4ad6 100755 --- a/Scripts/check-ping.ps1 +++ b/Scripts/check-ping.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-ping.ps1 .DESCRIPTION - Checks the ping latency from the local computer to the internet + 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 + Author: Markus Fleschutz · License: CC0 #> try { diff --git a/Scripts/check-subnet-mask.ps1 b/Scripts/check-subnet-mask.ps1 index d8e4d6a5..4441b70c 100755 --- a/Scripts/check-subnet-mask.ps1 +++ b/Scripts/check-subnet-mask.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-subnet-mask.ps1 [
] .DESCRIPTION - Checks the given subnet mask for validity + Checks the given subnet mask for validity. .EXAMPLE PS> .\check-subnet-mask.ps1 255.255.255.0 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([string]$address = "") diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index a76c79f3..c884ba09 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-swap-space.ps1 [] .DESCRIPTION - Checks the free swap space + Checks the free swap space. .EXAMPLE PS> .\check-swap-space.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([int]$MinLevel = 50) # minimum level in GB diff --git a/Scripts/check-symlinks.ps1 b/Scripts/check-symlinks.ps1 index d8789fad..bfec9578 100755 --- a/Scripts/check-symlinks.ps1 +++ b/Scripts/check-symlinks.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-symlinks.ps1 [] .DESCRIPTION - Checks every symlink in the given directory tree + 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 + Author: Markus Fleschutz · License: CC0 #> param([string]$DirTree = "") diff --git a/Scripts/check-weather.ps1 b/Scripts/check-weather.ps1 index 89942de7..b653ac6d 100755 --- a/Scripts/check-weather.ps1 +++ b/Scripts/check-weather.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-weather.ps1 [] .DESCRIPTION - Checks the weather for critical values + Checks the weather for critical values. .EXAMPLE PS> .\check-weather.ps1 .LINK https://github.com/fleschutz/PowerShell .NOTES - Author: Markus Fleschutz - License: CC0 + Author: Markus Fleschutz · License: CC0 #> param([string]$Location = "") # empty means determine automatically diff --git a/Scripts/check-windows-system-files.ps1 b/Scripts/check-windows-system-files.ps1 index 5b03914a..c751bdca 100755 --- a/Scripts/check-windows-system-files.ps1 +++ b/Scripts/check-windows-system-files.ps1 @@ -1,19 +1,17 @@ -<# +#Requires -RunAsAdministrator +<# .SYNOPSIS check-windows-system-files.ps1 .DESCRIPTION - Checks the validity of the Windows system files (requires admin rights) + 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 + Author: Markus Fleschutz · License: CC0 #> -#Requires -RunAsAdministrator - try { sfc /verifyOnly if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" } diff --git a/Scripts/check-xml-file.ps1 b/Scripts/check-xml-file.ps1 index be8186be..af200ff9 100755 --- a/Scripts/check-xml-file.ps1 +++ b/Scripts/check-xml-file.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS check-xml-file [] .DESCRIPTION - Checks the given XML file for validity + Checks the given XML file for validity. .EXAMPLE PS> .\check-xml-file.ps1 myfile.xml +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$File = "") diff --git a/Scripts/cherry-picker.ps1 b/Scripts/cherry-picker.ps1 index 7b080775..7236a6f0 100755 --- a/Scripts/cherry-picker.ps1 +++ b/Scripts/cherry-picker.ps1 @@ -6,11 +6,10 @@ NOTE: in case of merge conflicts the script stops immediately! .EXAMPLE PS> .\cherry-picker.ps1 93849f889 "Fix typo" "v1 v2 v3" +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$CommitID = "", [string]$CommitMessage = "", [string]$Branches = "", [string]$RepoDir = "$PWD") diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index f390c220..47871700 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS clean-repo.ps1 [] .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 PS> .\clean-repo.ps1 C:\MyRepo +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$RepoDir = "$PWD") diff --git a/Scripts/clean-repos.ps1 b/Scripts/clean-repos.ps1 index b2c6e995..63640c25 100755 --- a/Scripts/clean-repos.ps1 +++ b/Scripts/clean-repos.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS clean-repos.ps1 [] .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 PS> .\clean-repos.ps1 C:\MyRepos +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$ParentDir = "$PWD") diff --git a/Scripts/clear-recycle-bin.ps1 b/Scripts/clear-recycle-bin.ps1 index 8181eaf6..b0a2a2fc 100755 --- a/Scripts/clear-recycle-bin.ps1 +++ b/Scripts/clear-recycle-bin.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS clear-recycle-bin.ps1 .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 PS> .\clear-recycle-bin.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> try { diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index c6c82f25..bbd81210 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -5,11 +5,10 @@ Clones well-known Git repositories under the current/given directory. .EXAMPLE PS> .\clone-repos.ps1 C:\MyRepos +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$ParentDir = "$PWD") diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator.ps1 index 558c2919..b3a6e42f 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-calculator.ps1 .DESCRIPTION - Closes the calculator program gracefully + Closes the calculator program gracefully. .EXAMPLE PS> .\close-calculator.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Calculator" "Calculator" "calc" diff --git a/Scripts/close-chrome.ps1 b/Scripts/close-chrome.ps1 index 9a8b6e29..afd82e20 100755 --- a/Scripts/close-chrome.ps1 +++ b/Scripts/close-chrome.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-chrome.ps1 .DESCRIPTION - Closes the Web browser Google Chrome gracefully + Closes the Web browser Google Chrome gracefully. .EXAMPLE PS> .\close-chrome.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome" diff --git a/Scripts/close-cortana.ps1 b/Scripts/close-cortana.ps1 index 1676d4da..f89152e8 100755 --- a/Scripts/close-cortana.ps1 +++ b/Scripts/close-cortana.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-cortana.ps1 .DESCRIPTION - Closes Cortana gracefully + Closes Cortana gracefully. .EXAMPLE PS> .\close-cortana.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana" diff --git a/Scripts/close-edge.ps1 b/Scripts/close-edge.ps1 index 741a7eea..c549a104 100755 --- a/Scripts/close-edge.ps1 +++ b/Scripts/close-edge.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-edge.ps1 .DESCRIPTION - Closes the Web browser Microsoft Edge gracefully + Closes the Web browser Microsoft Edge gracefully. .EXAMPLE PS> .\close-edge.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Microsoft Edge" "msedge" "msedge" diff --git a/Scripts/close-file-explorer.ps1 b/Scripts/close-file-explorer.ps1 index 0c93d221..3ffedc54 100755 --- a/Scripts/close-file-explorer.ps1 +++ b/Scripts/close-file-explorer.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-file-explorer.ps1 .DESCRIPTION - Closes Microsoft File Explorer gracefully + Closes Microsoft File Explorer gracefully. .EXAMPLE PS> .\close-file-explorer.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "File Explorer" "explorer" "explorer" diff --git a/Scripts/close-firefox.ps1 b/Scripts/close-firefox.ps1 index fcbb459e..db48a7cd 100755 --- a/Scripts/close-firefox.ps1 +++ b/Scripts/close-firefox.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-firefox.ps1 .DESCRIPTION - Closes the Firefox Web browser gracefully + Closes the Firefox Web browser gracefully. .EXAMPLE PS> .\close-firefox.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox" diff --git a/Scripts/close-netflix.ps1 b/Scripts/close-netflix.ps1 index 747b59a0..04fb91b4 100755 --- a/Scripts/close-netflix.ps1 +++ b/Scripts/close-netflix.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-netflix.ps1 .DESCRIPTION - Closes Netflix gracefully + Closes the Netflix program gracefully. .EXAMPLE PS> .\close-netflix.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker" diff --git a/Scripts/close-onedrive.ps1 b/Scripts/close-onedrive.ps1 index 8e9c0e46..374fd34d 100755 --- a/Scripts/close-onedrive.ps1 +++ b/Scripts/close-onedrive.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-onedrive.ps1 .DESCRIPTION - Closes Microsoft OneDrive gracefully + Closes Microsoft OneDrive gracefully. .EXAMPLE PS> .\close-onedrive.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Microsoft OneDrive" "onedrive" "onedrive.exe" diff --git a/Scripts/close-program.ps1 b/Scripts/close-program.ps1 index 9368d57b..b3d52228 100755 --- a/Scripts/close-program.ps1 +++ b/Scripts/close-program.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-program.ps1 [] [] [] .DESCRIPTION - Closes the processes of the given program gracefully + Closes the processes of the given program gracefully. .EXAMPLE PS> .\close-program.ps1 "Google Chrome" "chrome.exe" +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$FullProgramName = "", [string]$ProgramName = "", [string]$ProgramAliasName = "") diff --git a/Scripts/close-system-settings.ps1 b/Scripts/close-system-settings.ps1 index eb16c839..d6a9fc61 100755 --- a/Scripts/close-system-settings.ps1 +++ b/Scripts/close-system-settings.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-system-settings.ps1 .DESCRIPTION - Closes the System Settings gracefully + Closes the System Settings gracefully. .EXAMPLE PS> .\close-system-settings.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "System Settings" "SystemSettings" "SystemSettings" diff --git a/Scripts/close-thunderbird.ps1 b/Scripts/close-thunderbird.ps1 index 6b38ea04..170ecf73 100755 --- a/Scripts/close-thunderbird.ps1 +++ b/Scripts/close-thunderbird.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-thunderbird.ps1 .DESCRIPTION - Closes the mail client Mozilla Thunderbird gracefully + Closes the mail client Mozilla Thunderbird gracefully. .EXAMPLE PS> .\close-thunderbird.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Mozilla Thunderbird" "thunderbird" "thunderbird" diff --git a/Scripts/close-vlc.ps1 b/Scripts/close-vlc.ps1 index a6f70477..4f234e0b 100755 --- a/Scripts/close-vlc.ps1 +++ b/Scripts/close-vlc.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-vlc.ps1 .DESCRIPTION - Closes the VLC media player gracefully + Closes the VLC media player gracefully. .EXAMPLE PS> .\close-vlc.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc" diff --git a/Scripts/close-windows-terminal.ps1 b/Scripts/close-windows-terminal.ps1 index 40c5658b..74d28160 100755 --- a/Scripts/close-windows-terminal.ps1 +++ b/Scripts/close-windows-terminal.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS close-windows-terminal.ps1 .DESCRIPTION - Closes Windows Terminal gracefully + Closes Windows Terminal gracefully. .EXAMPLE PS> .\close-windows-terminal.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> & "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal" diff --git a/Scripts/configure-git.ps1 b/Scripts/configure-git.ps1 index 1b660b3c..f6c299e4 100755 --- a/Scripts/configure-git.ps1 +++ b/Scripts/configure-git.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS configure-git.ps1 [] [] [] .DESCRIPTION - Sets up the Git user configuration + Sets up the Git user configuration. .EXAMPLE PS> .\configure-git.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$FullName = "", [string]$EmailAddress = "", [string]$FavoriteEditor = "") diff --git a/Scripts/convert-csv2txt.ps1 b/Scripts/convert-csv2txt.ps1 index 6030f480..b057d4f9 100755 --- a/Scripts/convert-csv2txt.ps1 +++ b/Scripts/convert-csv2txt.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS convert-csv2txt.ps1 [] .DESCRIPTION - Converts the given CSV file into a text list + Converts a .CSV file into a text file. .EXAMPLE PS> .\convert-csv2txt.ps1 salaries.csv +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$Path = "") diff --git a/Scripts/convert-mysql2csv.ps1 b/Scripts/convert-mysql2csv.ps1 index 87c258f2..db165624 100755 --- a/Scripts/convert-mysql2csv.ps1 +++ b/Scripts/convert-mysql2csv.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS convert-mysql2csv.ps1 [] [] [] [] [] .DESCRIPTION - Convert the MySQL database table to a CSV file + Convert a MySQL database table to a .CSV file. .EXAMPLE PS> .\convert-mysql2csv.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> diff --git a/Scripts/convert-ps2bat.ps1 b/Scripts/convert-ps2bat.ps1 index 83df22ac..3024a9ed 100644 --- a/Scripts/convert-ps2bat.ps1 +++ b/Scripts/convert-ps2bat.ps1 @@ -2,14 +2,13 @@ .SYNOPSIS convert-ps2bat.ps1 [] .DESCRIPTION - Converts PowerShell script(s) to .bat files + Converts a PowerShell script to .bat files. .EXAMPLE PS> .\convert-ps2bat.ps1 *.ps1 +.NOTES + Author: Markus Fleschutz · License: CC0 .LINK https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz - License: CC0 #> param([string]$Pattern = "") diff --git a/Scripts/convert-ps2md.ps1 b/Scripts/convert-ps2md.ps1 index c11063fd..8978d6fe 100644 --- a/Scripts/convert-ps2md.ps1 +++ b/Scripts/convert-ps2md.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS convert-ps2md.ps1 [