diff --git a/Scripts/MD5.ps1 b/Scripts/MD5.ps1 index 6beec805..dac5e49b 100755 --- a/Scripts/MD5.ps1 +++ b/Scripts/MD5.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./MD5.ps1 [] -.DESCRIPTION prints the MD5 checksum of the given file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./MD5.ps1 [] +.DESCRIPTION prints the MD5 checksum of the given file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($File = "") diff --git a/Scripts/SHA1.ps1 b/Scripts/SHA1.ps1 index 08256fbd..71b73879 100755 --- a/Scripts/SHA1.ps1 +++ b/Scripts/SHA1.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./SHA1.ps1 [] -.DESCRIPTION prints the SHA1 checksum of the given file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./SHA1.ps1 [] +.DESCRIPTION prints the SHA1 checksum of the given file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($File = "") diff --git a/Scripts/SHA256.ps1 b/Scripts/SHA256.ps1 index 3648f82d..97fc6c6b 100755 --- a/Scripts/SHA256.ps1 +++ b/Scripts/SHA256.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./SHA256.ps1 [] -.DESCRIPTION prints the SHA256 checksum of the given file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./SHA256.ps1 [] +.DESCRIPTION prints the SHA256 checksum of the given file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($File = "") diff --git a/Scripts/add-firewall-rules.ps1 b/Scripts/add-firewall-rules.ps1 index eec327bf..d00fb89d 100755 --- a/Scripts/add-firewall-rules.ps1 +++ b/Scripts/add-firewall-rules.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./add-firewall-rules.ps1 [] -.DESCRIPTION adds firewall rules for the given executables, administrator rights are required -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./add-firewall-rules.ps1 [] +.DESCRIPTION adds firewall rules for the given executables, administrator rights are required +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -RunAsAdministrator diff --git a/Scripts/alert.ps1 b/Scripts/alert.ps1 index dbb28bd6..6ef240c0 100755 --- a/Scripts/alert.ps1 +++ b/Scripts/alert.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./alert.ps1 [] -.DESCRIPTION handle and escalate the given alert message -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./alert.ps1 [] +.DESCRIPTION handle and escalate the given alert message +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Message = "") diff --git a/Scripts/check-cpu-temp.ps1 b/Scripts/check-cpu-temp.ps1 index ce19e6bd..797faf6e 100755 --- a/Scripts/check-cpu-temp.ps1 +++ b/Scripts/check-cpu-temp.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-cpu-temp.ps1 -.DESCRIPTION checks the CPU temperature -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-cpu-temp.ps1 +.DESCRIPTION checks the CPU temperature +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index e682e98a..2cf893e3 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.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 +.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 #> Set-StrictMode -Version Latest diff --git a/Scripts/check-drive-space.ps1 b/Scripts/check-drive-space.ps1 index f7d2eb60..08c3650b 100755 --- a/Scripts/check-drive-space.ps1 +++ b/Scripts/check-drive-space.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-drive-space.ps1 [] [] -.DESCRIPTION checks the given drive for free space left -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-drive-space.ps1 [] [] +.DESCRIPTION checks the given drive for free space left +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Drive = "", [int]$MinLevel = 50) # minimum level in GB diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1 index 2977f1ee..3d7b50c9 100755 --- a/Scripts/check-health.ps1 +++ b/Scripts/check-health.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-health.ps1 -.DESCRIPTION checks the system health -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-health.ps1 +.DESCRIPTION checks the system health +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> $Hostname = $(hostname) diff --git a/Scripts/check-ipv4-address.ps1 b/Scripts/check-ipv4-address.ps1 index c8a9892b..43f51faf 100755 --- a/Scripts/check-ipv4-address.ps1 +++ b/Scripts/check-ipv4-address.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-ipv4-address.ps1 [
] -.DESCRIPTION checks the given IPv4 address for validity -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-ipv4-address.ps1 [
] +.DESCRIPTION checks the given IPv4 address for validity +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Address = "") diff --git a/Scripts/check-ipv6-address.ps1 b/Scripts/check-ipv6-address.ps1 index 41759a21..f54b01f6 100755 --- a/Scripts/check-ipv6-address.ps1 +++ b/Scripts/check-ipv6-address.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-ipv6-address.ps1 [
] -.DESCRIPTION checks the given IPv6 address for validity -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-ipv6-address.ps1 [
] +.DESCRIPTION checks the given IPv6 address for validity +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Address = "") diff --git a/Scripts/check-mac-address.ps1 b/Scripts/check-mac-address.ps1 index 5f184dc9..cac671a8 100755 --- a/Scripts/check-mac-address.ps1 +++ b/Scripts/check-mac-address.ps1 @@ -1,10 +1,10 @@ #!/bin/powershell <# -.SYNTAX ./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 -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./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 +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($MAC = "") diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index 941420c4..0c244c66 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-swap-space.ps1 [] -.DESCRIPTION checks the free swap space -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-swap-space.ps1 [] +.DESCRIPTION checks the free swap space +.LINK https://github.com/fleschutz/PowerShell +.NOTES 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 85f3b500..a5556437 100755 --- a/Scripts/check-symlinks.ps1 +++ b/Scripts/check-symlinks.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-symlinks.ps1 [] -.DESCRIPTION checks every symlink in the given directory tree -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-symlinks.ps1 [] +.DESCRIPTION checks every symlink in the given directory tree +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") diff --git a/Scripts/check-windows-system-files.ps1 b/Scripts/check-windows-system-files.ps1 index eea6bae3..ec2549a0 100755 --- a/Scripts/check-windows-system-files.ps1 +++ b/Scripts/check-windows-system-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.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 +.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 #> #Requires -RunAsAdministrator diff --git a/Scripts/check-xml-file.ps1 b/Scripts/check-xml-file.ps1 index 2a7525eb..5eeed268 100755 --- a/Scripts/check-xml-file.ps1 +++ b/Scripts/check-xml-file.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./check-xml-file [] -.DESCRIPTION checks the given XML file for validity -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./check-xml-file [] +.DESCRIPTION checks the given XML file for validity +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($File = "") diff --git a/Scripts/clean-branch.ps1 b/Scripts/clean-branch.ps1 index 008fa3c4..3a446d9b 100755 --- a/Scripts/clean-branch.ps1 +++ b/Scripts/clean-branch.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./clean-branch.ps1 [] -.DESCRIPTION cleans the current/given Git repository from generated files (including submodules, e.g. for a fresh build) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./clean-branch.ps1 [] +.DESCRIPTION cleans the current/given Git repository from generated files (including submodules, e.g. for a fresh build) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD") diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index c227be76..500649ef 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./clone-repos.ps1 [] -.DESCRIPTION clones well-known Git repositories into the current/given directory. -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./clone-repos.ps1 [] +.DESCRIPTION clones well-known Git repositories into the current/given directory. +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($TargetDir = "$PWD") diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator.ps1 index 63dea41b..9f4ac253 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-calculator.ps1 -.DESCRIPTION closes the calculator program gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-calculator.ps1 +.DESCRIPTION closes the calculator program gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Calculator" "Calculator" "calc" diff --git a/Scripts/close-chrome.ps1 b/Scripts/close-chrome.ps1 index 703f1f9c..85914a0e 100755 --- a/Scripts/close-chrome.ps1 +++ b/Scripts/close-chrome.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-chrome.ps1 -.DESCRIPTION closes Google Chrome gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-chrome.ps1 +.DESCRIPTION closes Google Chrome gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Google Chrome" "chrome" diff --git a/Scripts/close-cortana.ps1 b/Scripts/close-cortana.ps1 index eb1be1b7..6276c016 100755 --- a/Scripts/close-cortana.ps1 +++ b/Scripts/close-cortana.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-cortana.ps1 -.DESCRIPTION closes Cortana gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-cortana.ps1 +.DESCRIPTION closes Cortana gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Cortana" "Cortana" diff --git a/Scripts/close-edge.ps1 b/Scripts/close-edge.ps1 index 7f67ee0e..d8397e3d 100755 --- a/Scripts/close-edge.ps1 +++ b/Scripts/close-edge.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-edge.ps1 -.DESCRIPTION closes Microsoft Edge gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-edge.ps1 +.DESCRIPTION closes Microsoft Edge gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Microsoft Edge" "msedge" diff --git a/Scripts/close-file-explorer.ps1 b/Scripts/close-file-explorer.ps1 index 4b2903c1..12cb98df 100755 --- a/Scripts/close-file-explorer.ps1 +++ b/Scripts/close-file-explorer.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-file-explorer.ps1 -.DESCRIPTION closes Microsoft File Explorer gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-file-explorer.ps1 +.DESCRIPTION closes Microsoft File Explorer gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "File Explorer" "explorer" diff --git a/Scripts/close-program.ps1 b/Scripts/close-program.ps1 index 3ec5618b..22958192 100755 --- a/Scripts/close-program.ps1 +++ b/Scripts/close-program.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-program.ps1 [][] [] -.DESCRIPTION closes the processes of the given program gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-program.ps1 [][] [] +.DESCRIPTION closes the processes of the given program gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($FullProgramName = "", $ProgramName = "", $ProgramAliasName = "") diff --git a/Scripts/close-system-settings.ps1 b/Scripts/close-system-settings.ps1 index 2fbd262e..a4dc1a58 100755 --- a/Scripts/close-system-settings.ps1 +++ b/Scripts/close-system-settings.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-system-settings.ps1 -.DESCRIPTION closes the System Settings gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-system-settings.ps1 +.DESCRIPTION closes the System Settings gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "System Settings" "SystemSettings" diff --git a/Scripts/close-thunderbird.ps1 b/Scripts/close-thunderbird.ps1 index 8d18c538..cbea04a8 100755 --- a/Scripts/close-thunderbird.ps1 +++ b/Scripts/close-thunderbird.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-thunderbird.ps1 -.DESCRIPTION closes Mozilla Thunderbird gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-thunderbird.ps1 +.DESCRIPTION closes Mozilla Thunderbird gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Mozilla Thunderbird" "thunderbird" diff --git a/Scripts/close-vlc.ps1 b/Scripts/close-vlc.ps1 index 3ee5917e..33223649 100755 --- a/Scripts/close-vlc.ps1 +++ b/Scripts/close-vlc.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-vlc.ps1 -.DESCRIPTION closes the VLC media player gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-vlc.ps1 +.DESCRIPTION closes the VLC media player gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "VLC media player" "vlc" diff --git a/Scripts/close-windows-terminal.ps1 b/Scripts/close-windows-terminal.ps1 index fc31e8e9..ea03e49f 100755 --- a/Scripts/close-windows-terminal.ps1 +++ b/Scripts/close-windows-terminal.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./close-windows-terminal.ps1 -.DESCRIPTION closes Windows Terminal gracefully -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./close-windows-terminal.ps1 +.DESCRIPTION closes Windows Terminal gracefully +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ./close-program "Windows Terminal" "WindowsTerminal" diff --git a/Scripts/configure-git.ps1 b/Scripts/configure-git.ps1 index c6c5e97b..16c0d867 100755 --- a/Scripts/configure-git.ps1 +++ b/Scripts/configure-git.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./configure-git.ps1 [] [] [] -.DESCRIPTION sets up the Git user configuration -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./configure-git.ps1 [] [] [] +.DESCRIPTION sets up the Git user configuration +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($FullName = "", $EmailAddress = "", $FavoriteEditor = "") diff --git a/Scripts/create-shortcut.ps1 b/Scripts/create-shortcut.ps1 index eb925c24..4943e881 100755 --- a/Scripts/create-shortcut.ps1 +++ b/Scripts/create-shortcut.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./create-shortcut.ps1 [] [] [] -.DESCRIPTION creates a new shortcut -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./create-shortcut.ps1 [] [] [] +.DESCRIPTION creates a new shortcut +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Shortcut = "", $Target = "", $Description) diff --git a/Scripts/create-symlink.ps1 b/Scripts/create-symlink.ps1 index 844c6854..f5d90319 100755 --- a/Scripts/create-symlink.ps1 +++ b/Scripts/create-symlink.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./create-symlink.ps1 [] [] -.DESCRIPTION creates a symbolic link -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./create-symlink.ps1 [] [] +.DESCRIPTION creates a symbolic link +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Symlink = "", $Target = "") diff --git a/Scripts/csv-to-text.ps1 b/Scripts/csv-to-text.ps1 index 167e916d..4b33ea64 100755 --- a/Scripts/csv-to-text.ps1 +++ b/Scripts/csv-to-text.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./csv-to-text.ps1 [] -.DESCRIPTION converts the given CSV file into a text list -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./csv-to-text.ps1 [] +.DESCRIPTION converts the given CSV file into a text list +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param([String]$Path) diff --git a/Scripts/decrypt-file.ps1 b/Scripts/decrypt-file.ps1 index b9931e83..9e4b0451 100755 --- a/Scripts/decrypt-file.ps1 +++ b/Scripts/decrypt-file.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./decrypt-file.ps1 [] [] -.DESCRIPTION decrypts the given file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./decrypt-file.ps1 [] [] +.DESCRIPTION decrypts the given file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param([string]$Path = "", [string]$Password = "") diff --git a/Scripts/display-time.ps1 b/Scripts/display-time.ps1 index ce1fa04a..eb594cd2 100755 --- a/Scripts/display-time.ps1 +++ b/Scripts/display-time.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./display-time.ps1 [] -.DESCRIPTION displays the current time for 10 seconds by default -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./display-time.ps1 [] +.DESCRIPTION displays the current time for 10 seconds by default +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param([int]$Seconds = 10) diff --git a/Scripts/enable-crash-dumps.ps1 b/Scripts/enable-crash-dumps.ps1 index e93abeb4..f678a80f 100755 --- a/Scripts/enable-crash-dumps.ps1 +++ b/Scripts/enable-crash-dumps.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./enable-crash-dumps.ps1 -.DESCRIPTION enables the writing of crash dumps -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./enable-crash-dumps.ps1 +.DESCRIPTION enables the writing of crash dumps +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> ################################################################## diff --git a/Scripts/encrypt-file.ps1 b/Scripts/encrypt-file.ps1 index 65ce9417..b232e9cc 100755 --- a/Scripts/encrypt-file.ps1 +++ b/Scripts/encrypt-file.ps1 @@ -1,12 +1,12 @@ #!/bin/powershell <# -.SYNTAX ./encrypt-file.ps1 [] [] -.DESCRIPTION encrypts the given file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./encrypt-file.ps1 [] [] +.DESCRIPTION encrypts the given file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> -param([string]$Path = "", [string]$Password = "") +param($Path = "", $Password = "") function EncryptFile { <# diff --git a/Scripts/fetch-repo.ps1 b/Scripts/fetch-repo.ps1 index f2819d59..a2e42c10 100755 --- a/Scripts/fetch-repo.ps1 +++ b/Scripts/fetch-repo.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./fetch-repo.ps1 [] -.DESCRIPTION fetches updates for the current/given Git repository (including submodules) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./fetch-repo.ps1 [] +.DESCRIPTION fetches updates for the current/given Git repository (including submodules) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD") diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index f10f1ea7..9c11feaf 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./fetch-repos.ps1 [] -.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 +.SYNTAX ./fetch-repos.ps1 [] +.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 #> param($ParentDir = "$PWD") diff --git a/Scripts/generate-qrcode.ps1 b/Scripts/generate-qrcode.ps1 index 490ec627..c20f41d0 100755 --- a/Scripts/generate-qrcode.ps1 +++ b/Scripts/generate-qrcode.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./generate-qrcode.ps1 [] [] -.DESCRIPTION generates a QR code -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./generate-qrcode.ps1 [] [] +.DESCRIPTION generates a QR code +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Text = "", $ImageSize = "") diff --git a/Scripts/go-downloads.ps1 b/Scripts/go-downloads.ps1 index d5e50249..ecf53569 100755 --- a/Scripts/go-downloads.ps1 +++ b/Scripts/go-downloads.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./go-downloads.ps1 -.DESCRIPTION go to the user's downloads folder -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./go-downloads.ps1 +.DESCRIPTION go to the user's downloads folder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/go-home.ps1 b/Scripts/go-home.ps1 index 4e5f7dbd..b079eaea 100755 --- a/Scripts/go-home.ps1 +++ b/Scripts/go-home.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./go-home.ps1 -.DESCRIPTION go to the user's home folder -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./go-home.ps1 +.DESCRIPTION go to the user's home folder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/go-music.ps1 b/Scripts/go-music.ps1 index bca6b19c..672327eb 100755 --- a/Scripts/go-music.ps1 +++ b/Scripts/go-music.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./go-music.ps1 -.DESCRIPTION go to the user's music folder -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./go-music.ps1 +.DESCRIPTION go to the user's music folder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/go-root.ps1 b/Scripts/go-root.ps1 index cc3b3c93..9943914c 100755 --- a/Scripts/go-root.ps1 +++ b/Scripts/go-root.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./go-root.ps1 -.DESCRIPTION go to the root directory (C: on Windows) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./go-root.ps1 +.DESCRIPTION go to the root directory (C: on Windows) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/go-scripts.ps1 b/Scripts/go-scripts.ps1 index 1d712229..c479ed7e 100755 --- a/Scripts/go-scripts.ps1 +++ b/Scripts/go-scripts.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./go-scripts.ps1 -.DESCRIPTION go to the PowerShell Scripts folder -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./go-scripts.ps1 +.DESCRIPTION go to the PowerShell Scripts folder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/hibernate.ps1 b/Scripts/hibernate.ps1 index 23bd349c..f9c4411c 100755 --- a/Scripts/hibernate.ps1 +++ b/Scripts/hibernate.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./hibernate.ps1 -.DESCRIPTION enables hibernate mode for the local computer (requires admin rights) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./hibernate.ps1 +.DESCRIPTION enables hibernate mode for the local computer (requires admin rights) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -RunAsAdministrator diff --git a/Scripts/inspect-exe.ps1 b/Scripts/inspect-exe.ps1 index b699ee98..8c467d36 100755 --- a/Scripts/inspect-exe.ps1 +++ b/Scripts/inspect-exe.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./inspect-exe.ps1 [] -.DESCRIPTION prints basic information of the given executable file -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./inspect-exe.ps1 [] +.DESCRIPTION prints basic information of the given executable file +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($PathToExe = "") diff --git a/Scripts/list-aliases.ps1 b/Scripts/list-aliases.ps1 index 43f009d7..ccde002a 100755 --- a/Scripts/list-aliases.ps1 +++ b/Scripts/list-aliases.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-aliases.ps1 -.DESCRIPTION lists all PowerShell aliases -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-aliases.ps1 +.DESCRIPTION lists all PowerShell aliases +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-anagrams.ps1 b/Scripts/list-anagrams.ps1 index c976febb..5d22bb70 100755 --- a/Scripts/list-anagrams.ps1 +++ b/Scripts/list-anagrams.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-anagrams.ps1 [] [] -.DESCRIPTION lists all anagrams of the given word -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-anagrams.ps1 [] [] +.DESCRIPTION lists all anagrams of the given word +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Word = "", [int]$Columns = 8) diff --git a/Scripts/list-automatic-variables.ps1 b/Scripts/list-automatic-variables.ps1 index 083e5b26..2667bdb8 100755 --- a/Scripts/list-automatic-variables.ps1 +++ b/Scripts/list-automatic-variables.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-automatic-variables.ps1 -.DESCRIPTION lists the automatic variables of PowerShell -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-automatic-variables.ps1 +.DESCRIPTION lists the automatic variables of PowerShell +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> function AddItem { param([string]$Variable, [string]$Content) diff --git a/Scripts/list-branches.ps1 b/Scripts/list-branches.ps1 index 3aca489d..ed333d07 100755 --- a/Scripts/list-branches.ps1 +++ b/Scripts/list-branches.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-branches.ps1 [] [] -.DESCRIPTION lists all branches in the current/given Git repository -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-branches.ps1 [] [] +.DESCRIPTION lists all branches in the current/given Git repository +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD", $Pattern = "*") diff --git a/Scripts/list-clipboard.ps1 b/Scripts/list-clipboard.ps1 index cd9464dc..8761ca14 100755 --- a/Scripts/list-clipboard.ps1 +++ b/Scripts/list-clipboard.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-clipboard.ps1 -.DESCRIPTION lists the contents of the clipboard -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-clipboard.ps1 +.DESCRIPTION lists the contents of the clipboard +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-cmdlets.ps1 b/Scripts/list-cmdlets.ps1 index 312f99f4..25dd2983 100755 --- a/Scripts/list-cmdlets.ps1 +++ b/Scripts/list-cmdlets.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-cmdlets.ps1 -.DESCRIPTION lists all PowerShell cmdlets -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-cmdlets.ps1 +.DESCRIPTION lists all PowerShell cmdlets +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-commits.ps1 b/Scripts/list-commits.ps1 index 6746e405..c7ff5965 100755 --- a/Scripts/list-commits.ps1 +++ b/Scripts/list-commits.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-commits.ps1 [] [] -.DESCRIPTION lists all commits in the current/given Git repository -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-commits.ps1 [] [] +.DESCRIPTION lists all commits in the current/given Git repository +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD", $Format = "compact") diff --git a/Scripts/list-current-timezone.ps1 b/Scripts/list-current-timezone.ps1 index 15ed13c6..cc951d81 100755 --- a/Scripts/list-current-timezone.ps1 +++ b/Scripts/list-current-timezone.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-current-timezone.ps1 -.DESCRIPTION lists the current time zone details -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-current-timezone.ps1 +.DESCRIPTION lists the details of the current time zone +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-drives.ps1 b/Scripts/list-drives.ps1 index 71adf9b6..bbf55af9 100755 --- a/Scripts/list-drives.ps1 +++ b/Scripts/list-drives.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-drives.ps1 -.DESCRIPTION lists all drives -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-drives.ps1 +.DESCRIPTION lists all drives connected to the computer +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-earthquakes.ps1 b/Scripts/list-earthquakes.ps1 index d97463b7..958e20ee 100755 --- a/Scripts/list-earthquakes.ps1 +++ b/Scripts/list-earthquakes.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.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 +.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 #> $Format="csv" # csv, geojson, kml, text, xml diff --git a/Scripts/list-empty-dirs.ps1 b/Scripts/list-empty-dirs.ps1 index 7601af7d..13c7f48a 100755 --- a/Scripts/list-empty-dirs.ps1 +++ b/Scripts/list-empty-dirs.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-empty-dirs.ps1 [] -.DESCRIPTION lists empty subfolders within the given directory tree -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-empty-dirs.ps1 [] +.DESCRIPTION lists empty subfolders within the given directory tree +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") diff --git a/Scripts/list-empty-files.ps1 b/Scripts/list-empty-files.ps1 index cbd30de1..2461541a 100755 --- a/Scripts/list-empty-files.ps1 +++ b/Scripts/list-empty-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-empty-files.ps1 [] -.DESCRIPTION lists empty files within the given directory tree -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-empty-files.ps1 [] +.DESCRIPTION lists empty files within the given directory tree +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") diff --git a/Scripts/list-environment-variables.ps1 b/Scripts/list-environment-variables.ps1 index d8b1eb77..e2e43420 100755 --- a/Scripts/list-environment-variables.ps1 +++ b/Scripts/list-environment-variables.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-environment-variables.ps1 -.DESCRIPTION lists all environment variables -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-environment-variables.ps1 +.DESCRIPTION lists all environment variables +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-files.ps1 b/Scripts/list-files.ps1 index 5a00de52..791a9697 100755 --- a/Scripts/list-files.ps1 +++ b/Scripts/list-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-files.ps1 [] -.DESCRIPTION lists all files in the given folder and also in every subfolder -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-files.ps1 [] +.DESCRIPTION lists all files in the given folder and also in every subfolder +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Folder = "") diff --git a/Scripts/list-formatted.ps1 b/Scripts/list-formatted.ps1 index ea5f1208..664dd83f 100755 --- a/Scripts/list-formatted.ps1 +++ b/Scripts/list-formatted.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-formatted.ps1 [] -.DESCRIPTION lists the current working directory formatted in columns -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-formatted.ps1 [] +.DESCRIPTION lists the current working directory formatted in columns +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Dir = "") diff --git a/Scripts/list-fritzbox-calls.ps1 b/Scripts/list-fritzbox-calls.ps1 index cc178321..6ba02a1f 100755 --- a/Scripts/list-fritzbox-calls.ps1 +++ b/Scripts/list-fritzbox-calls.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-fritzbox-calls.ps1 [] [] -.DESCRIPTION lists the phone calls of the FRITZ!Box device -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-fritzbox-calls.ps1 [] [] +.DESCRIPTION lists the phone calls of the FRITZ!Box device +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -Version 3 diff --git a/Scripts/list-fritzbox-devices.ps1 b/Scripts/list-fritzbox-devices.ps1 index e60af547..cea4ca65 100755 --- a/Scripts/list-fritzbox-devices.ps1 +++ b/Scripts/list-fritzbox-devices.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-fritzbox-calls.ps1 [] [] -.DESCRIPTION lists FRITZ!Box's known devices -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-fritzbox-calls.ps1 [] [] +.DESCRIPTION lists FRITZ!Box's known devices +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -Version 3 diff --git a/Scripts/list-hidden-files.ps1 b/Scripts/list-hidden-files.ps1 index 5ae57524..6a3f3dac 100755 --- a/Scripts/list-hidden-files.ps1 +++ b/Scripts/list-hidden-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-hidden-files.ps1 [] -.DESCRIPTION lists hidden files within the given directory tree -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-hidden-files.ps1 [] +.DESCRIPTION lists hidden files within the given directory tree +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") diff --git a/Scripts/list-installed-apps.ps1 b/Scripts/list-installed-apps.ps1 index 1f983e35..9e90b879 100755 --- a/Scripts/list-installed-apps.ps1 +++ b/Scripts/list-installed-apps.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-installed-apps.ps1 -.DESCRIPTION lists the installed Windows Store apps -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-installed-apps.ps1 +.DESCRIPTION lists the installed Windows Store apps +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-installed-software.ps1 b/Scripts/list-installed-software.ps1 index a9108826..4451be98 100755 --- a/Scripts/list-installed-software.ps1 +++ b/Scripts/list-installed-software.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.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 +.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 #> try { diff --git a/Scripts/list-logbook.ps1 b/Scripts/list-logbook.ps1 index 5d243614..6b83b4f0 100755 --- a/Scripts/list-logbook.ps1 +++ b/Scripts/list-logbook.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-logbook.ps1 -.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-logbook.ps1 +.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> $PathToRepo = "$PSScriptRoot/.." diff --git a/Scripts/list-modules.ps1 b/Scripts/list-modules.ps1 index 8c83349b..84646f10 100755 --- a/Scripts/list-modules.ps1 +++ b/Scripts/list-modules.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-modules.ps1 -.DESCRIPTION lists all PowerShell modules -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-modules.ps1 +.DESCRIPTION lists all PowerShell modules +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-network-shares.ps1 b/Scripts/list-network-shares.ps1 index 30e874f1..64431b1d 100755 --- a/Scripts/list-network-shares.ps1 +++ b/Scripts/list-network-shares.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-network-shares.ps1 -.DESCRIPTION lists the network shares of the local computer -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-network-shares.ps1 +.DESCRIPTION lists the network shares of the local computer +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 5487093e..828700a1 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-news.ps1 [] -.DESCRIPTION lists the latest news -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-news.ps1 [] +.DESCRIPTION lists the latest news +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RSS_URL = "https://yahoo.com/news/rss/world") diff --git a/Scripts/list-os-releases.ps1 b/Scripts/list-os-releases.ps1 index 9907a26f..3113d324 100755 --- a/Scripts/list-os-releases.ps1 +++ b/Scripts/list-os-releases.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-os-releases.ps1 -.DESCRIPTION lists OS releases and download URL -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-os-releases.ps1 +.DESCRIPTION lists OS releases and download URL +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-printers.ps1 b/Scripts/list-printers.ps1 index 1218f0e8..5ab0c5b4 100755 --- a/Scripts/list-printers.ps1 +++ b/Scripts/list-printers.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-printers.ps1 -.DESCRIPTION lists all printer known to the computer -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-printers.ps1 +.DESCRIPTION lists all printer known to the computer +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-processes.ps1 b/Scripts/list-processes.ps1 index 715b69d9..93e025d3 100755 --- a/Scripts/list-processes.ps1 +++ b/Scripts/list-processes.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-processes.ps1 -.DESCRIPTION lists the local computer processes -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-processes.ps1 +.DESCRIPTION lists the local computer processes +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-profiles.ps1 b/Scripts/list-profiles.ps1 index bebf98e3..a085718c 100755 --- a/Scripts/list-profiles.ps1 +++ b/Scripts/list-profiles.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-profiles.ps1 -.DESCRIPTION lists your PowerShell profiles -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-profiles.ps1 +.DESCRIPTION lists your PowerShell profiles +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> function ShowProfile { param([int]$Level, [string]$Name, [string]$Filename) diff --git a/Scripts/list-random-passwords.ps1 b/Scripts/list-random-passwords.ps1 index 9d92a579..3ef7119b 100755 --- a/Scripts/list-random-passwords.ps1 +++ b/Scripts/list-random-passwords.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-random-passwords.ps1 -.DESCRIPTION prints a list of random passwords -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-random-passwords.ps1 +.DESCRIPTION prints a list of random passwords +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> $PasswordLength = 15 diff --git a/Scripts/list-random-pins.ps1 b/Scripts/list-random-pins.ps1 index d68e99eb..ec2412c3 100755 --- a/Scripts/list-random-pins.ps1 +++ b/Scripts/list-random-pins.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-random-pins.ps1 [] [] [] -.DESCRIPTION prints a list of random PIN's -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-random-pins.ps1 [] [] [] +.DESCRIPTION prints a list of random PIN's +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param([int]$PinLength = 5, [int]$Columns = 12, [int]$Rows = 24) diff --git a/Scripts/list-scripts.ps1 b/Scripts/list-scripts.ps1 index d5eb30de..5fc943a2 100755 --- a/Scripts/list-scripts.ps1 +++ b/Scripts/list-scripts.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-scripts.ps1 -.DESCRIPTION lists all PowerShell scripts in this repository (sorted alphabetically) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-scripts.ps1 +.DESCRIPTION lists all PowerShell scripts in this repository (sorted alphabetically) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> function ListScripts { param([string]$FilePath) diff --git a/Scripts/list-tags.ps1 b/Scripts/list-tags.ps1 index f1017b0d..5c4d12a1 100755 --- a/Scripts/list-tags.ps1 +++ b/Scripts/list-tags.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-tags.ps1 [] [] -.DESCRIPTION lists all tags in the current/given Git repository -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-tags.ps1 [] [] +.DESCRIPTION lists all tags in the current/given Git repository +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD", $Pattern="*") diff --git a/Scripts/list-timezones.ps1 b/Scripts/list-timezones.ps1 index 49acbc8b..12db14b8 100755 --- a/Scripts/list-timezones.ps1 +++ b/Scripts/list-timezones.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-timezones.ps1 -.DESCRIPTION lists all time zones available -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-timezones.ps1 +.DESCRIPTION lists all time zones available +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/list-unused-files.ps1 b/Scripts/list-unused-files.ps1 index f79d2e68..05f25845 100755 --- a/Scripts/list-unused-files.ps1 +++ b/Scripts/list-unused-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-unused-files.ps1 -.DESCRIPTION lists files in the with last access time older than -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-unused-files.ps1 +.DESCRIPTION lists files in the with last access time older than +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "", [int]$NumberOfDaysUnused = 99) diff --git a/Scripts/list-user-groups.ps1 b/Scripts/list-user-groups.ps1 index 40188c37..1bb44186 100755 --- a/Scripts/list-user-groups.ps1 +++ b/Scripts/list-user-groups.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./list-user-groups.ps1 -.DESCRIPTION lists the user groups on the local computer -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./list-user-groups.ps1 +.DESCRIPTION lists the user groups on the local computer +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/locate-city.ps1 b/Scripts/locate-city.ps1 index d0eca5a6..9efbcf30 100755 --- a/Scripts/locate-city.ps1 +++ b/Scripts/locate-city.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./locate-city.ps1 [] -.DESCRIPTION prints the geographic location of the given city -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./locate-city.ps1 [] +.DESCRIPTION prints the geographic location of the given city +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($City = "") diff --git a/Scripts/locate-ipaddress.ps1 b/Scripts/locate-ipaddress.ps1 index 76e6fdea..82a600b1 100755 --- a/Scripts/locate-ipaddress.ps1 +++ b/Scripts/locate-ipaddress.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./locate-ipaddress.ps1 [] -.DESCRIPTION prints the geographic location of the given IP address -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./locate-ipaddress.ps1 [] +.DESCRIPTION prints the geographic location of the given IP address +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($IPaddr = "") diff --git a/Scripts/locate-zip-code.ps1 b/Scripts/locate-zip-code.ps1 index ec8848b5..5d0544b2 100755 --- a/Scripts/locate-zip-code.ps1 +++ b/Scripts/locate-zip-code.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./locate-zip-code.ps1 [] [] -.DESCRIPTION prints the geographic location of the given zip-code -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./locate-zip-code.ps1 [] [] +.DESCRIPTION prints the geographic location of the given zip-code +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($CountryCode = "", $ZipCode = "") diff --git a/Scripts/make-install.ps1 b/Scripts/make-install.ps1 index 14ebbb38..fe4df649 100755 --- a/Scripts/make-install.ps1 +++ b/Scripts/make-install.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX make-install.ps1 -.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory. -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX make-install.ps1 +.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory. +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> set SRC_DIR=%1 diff --git a/Scripts/moon.ps1 b/Scripts/moon.ps1 index 92788f00..423f57ae 100755 --- a/Scripts/moon.ps1 +++ b/Scripts/moon.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./moon.ps1 -.DESCRIPTION prints the current moon phase -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./moon.ps1 +.DESCRIPTION prints the current moon phase +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/mute-audio.ps1 b/Scripts/mute-audio.ps1 index e81a53aa..9a5eb44c 100755 --- a/Scripts/mute-audio.ps1 +++ b/Scripts/mute-audio.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./mute-audio.ps1 -.DESCRIPTION mutes the audio -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./mute-audio.ps1 +.DESCRIPTION mutes the audio +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/new-email.ps1 b/Scripts/new-email.ps1 index 7d44f9d3..5d2e303f 100755 --- a/Scripts/new-email.ps1 +++ b/Scripts/new-email.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./new-email.ps1 [
] -.DESCRIPTION starts the default email client to write a new email -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./new-email.ps1 [
] +.DESCRIPTION starts the default email client to write a new email +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($EmailAddress = "") diff --git a/Scripts/next-joke.ps1 b/Scripts/next-joke.ps1 index a21ab7a6..f24d286a 100755 --- a/Scripts/next-joke.ps1 +++ b/Scripts/next-joke.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./next-joke.ps1 -.DESCRIPTION gets the next random Juck Norris joke -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./next-joke.ps1 +.DESCRIPTION gets the next random Juck Norris joke +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/open-browser.ps1 b/Scripts/open-browser.ps1 index cfd10520..df5ce44d 100755 --- a/Scripts/open-browser.ps1 +++ b/Scripts/open-browser.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./open-browser.ps1 [] -.DESCRIPTION starts the default Web browser, optional with given URL -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./open-browser.ps1 [] +.DESCRIPTION starts the default Web browser, optional with given URL +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($URL = "") diff --git a/Scripts/open-calculator.ps1 b/Scripts/open-calculator.ps1 index de8e5e18..25f5b5f9 100755 --- a/Scripts/open-calculator.ps1 +++ b/Scripts/open-calculator.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./open-calculator.ps1 -.DESCRIPTION starts the calculator program -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./open-calculator.ps1 +.DESCRIPTION starts the calculator program +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { diff --git a/Scripts/open-email-client.ps1 b/Scripts/open-email-client.ps1 index 84338250..054f9d1f 100755 --- a/Scripts/open-email-client.ps1 +++ b/Scripts/open-email-client.ps1 @@ -1,13 +1,13 @@ #!/bin/powershell <# -.SYNTAX ./open-email-client.ps1 -.DESCRIPTION starts the default email client -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./open-email-client.ps1 +.DESCRIPTION starts the default email client +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { - Start-Process "mailto:markus@fleschutz.de" + start-process "mailto:markus@fleschutz.de" exit 0 } catch { write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/play-beep.ps1 b/Scripts/play-beep.ps1 index b9a2be53..7f312a7d 100755 --- a/Scripts/play-beep.ps1 +++ b/Scripts/play-beep.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-beep.ps1 -.DESCRIPTION plays a beep sound -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-beep.ps1 +.DESCRIPTION plays a beep sound +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> [console]::beep(500,300) diff --git a/Scripts/play-m3u.ps1 b/Scripts/play-m3u.ps1 index 52f67270..2bf7be49 100755 --- a/Scripts/play-m3u.ps1 +++ b/Scripts/play-m3u.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-m3u.ps1 [] -.DESCRIPTION plays the given playlist (M3U file format) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-m3u.ps1 [] +.DESCRIPTION plays the given playlist (M3U file format) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Filename = "") diff --git a/Scripts/play-mission-impossible.ps1 b/Scripts/play-mission-impossible.ps1 index 1dbce575..fc33d89a 100755 --- a/Scripts/play-mission-impossible.ps1 +++ b/Scripts/play-mission-impossible.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-mission-impossible.ps1 -.DESCRIPTION plays the Mission Impossible theme -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-mission-impossible.ps1 +.DESCRIPTION plays the Mission Impossible theme +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> [console]::beep(784,150) diff --git a/Scripts/play-mp3.ps1 b/Scripts/play-mp3.ps1 index 8f9fbe48..7fd9df2e 100755 --- a/Scripts/play-mp3.ps1 +++ b/Scripts/play-mp3.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-mp3.ps1 [] -.DESCRIPTION plays the given sound file (MP3 file format) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-mp3.ps1 [] +.DESCRIPTION plays the given sound file (MP3 file format) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Filename = "") diff --git a/Scripts/play-super-mario.ps1 b/Scripts/play-super-mario.ps1 index 19fb563d..95b8187a 100755 --- a/Scripts/play-super-mario.ps1 +++ b/Scripts/play-super-mario.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-super-mario.ps1 -.DESCRIPTION plays the Super Mario Intro -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-super-mario.ps1 +.DESCRIPTION plays the Super Mario Intro +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> [console]::beep(659,250) ##E diff --git a/Scripts/play-the-imperial-march.ps1 b/Scripts/play-the-imperial-march.ps1 index e1183eef..31332cb1 100755 --- a/Scripts/play-the-imperial-march.ps1 +++ b/Scripts/play-the-imperial-march.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./play-the-imperial-march.ps1 -.DESCRIPTION plays the Imperial March (Star Wars) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./play-the-imperial-march.ps1 +.DESCRIPTION plays the Imperial March (Star Wars) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> [console]::beep(440, 500) diff --git a/Scripts/poweroff.ps1 b/Scripts/poweroff.ps1 index b4eff1ef..1bab247e 100755 --- a/Scripts/poweroff.ps1 +++ b/Scripts/poweroff.ps1 @@ -1,15 +1,15 @@ #!/bin/powershell <# -.SYNTAX ./poweroff.ps1 -.DESCRIPTION halts the local computer, administrator rights are required -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./poweroff.ps1 +.DESCRIPTION halts the local computer, administrator rights are required +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -RunAsAdministrator try { - Stop-Computer + stop-computer exit 0 } catch { write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/pull-repo.ps1 b/Scripts/pull-repo.ps1 index c2b3f9a0..3a9de78f 100755 --- a/Scripts/pull-repo.ps1 +++ b/Scripts/pull-repo.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./pull-repo.ps1 [] -.DESCRIPTION pulls updates for the current/given Git repository (including submodules) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./pull-repo.ps1 [] +.DESCRIPTION pulls updates for the current/given Git repository (including submodules) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($RepoDir = "$PWD") diff --git a/Scripts/pull-repos.ps1 b/Scripts/pull-repos.ps1 index c9e8949f..50895563 100755 --- a/Scripts/pull-repos.ps1 +++ b/Scripts/pull-repos.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./pull-repos.ps1 [] -.DESCRIPTION pulls updates for all Git repositories under the current/given directory (including submodules) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./pull-repos.ps1 [] +.DESCRIPTION pulls updates for all Git repositories under the current/given directory (including submodules) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($ParentDir = "$PWD") diff --git a/Scripts/query-smart-data.ps1 b/Scripts/query-smart-data.ps1 index 205ef60b..55649478 100755 --- a/Scripts/query-smart-data.ps1 +++ b/Scripts/query-smart-data.ps1 @@ -1,12 +1,12 @@ #!/bin/powershell <# -.SYNTAX ./query-smart-data.ps1 [] -.DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory - (use smart-data2csv.ps1 to generate a CSV table for analysis) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 - requires smartctl (smartmontools) and admin rights - for automation copy this script to /etc/cron.daily +.SYNTAX ./query-smart-data.ps1 [] +.DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory + (use smart-data2csv.ps1 to generate a CSV table for analysis) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 + requires smartctl (smartmontools) and admin rights + for automation copy this script to /etc/cron.daily #> #Requires -RunAsAdministrator diff --git a/Scripts/reboot-fritzbox.ps1 b/Scripts/reboot-fritzbox.ps1 index 1dc59fe0..50ddaf9c 100755 --- a/Scripts/reboot-fritzbox.ps1 +++ b/Scripts/reboot-fritzbox.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./reboot-fritzbox.ps1 [] [] -.DESCRIPTION reboots the FRITZ!Box device -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./reboot-fritzbox.ps1 [] [] +.DESCRIPTION reboots the FRITZ!Box device +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($USERNAME = "", $PASSWORD = "") diff --git a/Scripts/reboot.ps1 b/Scripts/reboot.ps1 index 49d62fe2..aaf7f4b3 100755 --- a/Scripts/reboot.ps1 +++ b/Scripts/reboot.ps1 @@ -1,15 +1,15 @@ #!/bin/powershell <# -.SYNTAX ./reboot.ps1 -.DESCRIPTION reboots the local computer (requires admin rights) -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./reboot.ps1 +.DESCRIPTION reboots the local computer (requires admin rights) +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -RunAsAdministrator try { - Restart-Computer + restart-computer exit 0 } catch { write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/remove-empty-dirs.ps1 b/Scripts/remove-empty-dirs.ps1 index 38cf7f59..214be509 100755 --- a/Scripts/remove-empty-dirs.ps1 +++ b/Scripts/remove-empty-dirs.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./remove-empty-dirs.ps1 [] -.DESCRIPTION removes empty subfolders within the given directory tree -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./remove-empty-dirs.ps1 [] +.DESCRIPTION removes empty subfolders within the given directory tree +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") diff --git a/Scripts/scan-ports.ps1 b/Scripts/scan-ports.ps1 index 5b2ee98c..6a92ca8d 100755 --- a/Scripts/scan-ports.ps1 +++ b/Scripts/scan-ports.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./scan-ports.ps1 -.DESCRIPTION scans the network for open/closed ports -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./scan-ports.ps1 +.DESCRIPTION scans the network for open/closed ports +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> $network = "192.168.178" diff --git a/Scripts/search-files.ps1 b/Scripts/search-files.ps1 index e649fda6..ef7b5c9b 100755 --- a/Scripts/search-files.ps1 +++ b/Scripts/search-files.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./search-files.ps1 [] [] -.DESCRIPTION searches the given pattern in the given files -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./search-files.ps1 [] [] +.DESCRIPTION searches the given pattern in the given files +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($Pattern = "", $Path = "") diff --git a/Scripts/send-email.ps1 b/Scripts/send-email.ps1 index 9c39acdf..8217890d 100755 --- a/Scripts/send-email.ps1 +++ b/Scripts/send-email.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./send-email.ps1 -.DESCRIPTION sends an email -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./send-email.ps1 +.DESCRIPTION sends an email +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> $smtpServer = "smtp.example.com" diff --git a/Scripts/send-tcp.ps1 b/Scripts/send-tcp.ps1 index f155582d..cbe48ee2 100755 --- a/Scripts/send-tcp.ps1 +++ b/Scripts/send-tcp.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./send-tcp.ps1 [] [] [] -.DESCRIPTION sends a TCP message to the given IP address and port -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./send-tcp.ps1 [] [] [] +.DESCRIPTION sends a TCP message to the given IP address and port +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($TargetIP = "", [int]$TargetPort = 0, $Message = "") diff --git a/Scripts/send-udp.ps1 b/Scripts/send-udp.ps1 index ac4c7013..07edc02c 100755 --- a/Scripts/send-udp.ps1 +++ b/Scripts/send-udp.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./send-udp.ps1 [] [] [] -.DESCRIPTION sends a UDP datagram message to the given IP address and port -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./send-udp.ps1 [] [] [] +.DESCRIPTION sends a UDP datagram message to the given IP address and port +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param($TargetIP = "", [int]$TargetPort = 0, $Message = "") diff --git a/Scripts/set-profile.ps1 b/Scripts/set-profile.ps1 index 8058cad9..ebbb47cb 100755 --- a/Scripts/set-profile.ps1 +++ b/Scripts/set-profile.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./set-profile.ps1 -.DESCRIPTION sets the PowerShell profile for the current user -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./set-profile.ps1 +.DESCRIPTION sets the PowerShell profile for the current user +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> try { @@ -12,7 +12,7 @@ try { copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force - write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost', gets active on next login" + write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost' (gets active on next login)" exit 0 } catch { write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/set-timer.ps1 b/Scripts/set-timer.ps1 index 5c1c3e3f..c6dbd5ec 100755 --- a/Scripts/set-timer.ps1 +++ b/Scripts/set-timer.ps1 @@ -1,9 +1,9 @@ #!/bin/powershell <# -.SYNTAX ./set-timer.ps1 [] -.DESCRIPTION sets a timer for a countdown -.LINK https://github.com/fleschutz/PowerShell -.NOTES Author: Markus Fleschutz / License: CC0 +.SYNTAX ./set-timer.ps1 [] +.DESCRIPTION sets a timer for a countdown +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 #> param([int]$Seconds = 0) diff --git a/Scripts/set-wallpaper.ps1 b/Scripts/set-wallpaper.ps1 index aa0bd1c9..e62bccd0 100755 --- a/Scripts/set-wallpaper.ps1 +++ b/Scripts/set-wallpaper.ps1 @@ -1,10 +1,10 @@ #!/bin/powershell <# -.SYNTAX ./set-wallpaper.ps1 [] [