diff --git a/Scripts/MD5.ps1 b/Scripts/MD5.ps1 index ea54c9f9..92b71f79 100755 --- a/Scripts/MD5.ps1 +++ b/Scripts/MD5.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./MD5.ps1 [] +.SYNTAX MD5.ps1 [] .DESCRIPTION prints the MD5 checksum of the given file .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/SHA1.ps1 b/Scripts/SHA1.ps1 index 16d0cf2f..992f06d8 100755 --- a/Scripts/SHA1.ps1 +++ b/Scripts/SHA1.ps1 @@ -1,16 +1,13 @@ #!/usr/bin/pwsh <# -.SYNTAX ./SHA1.ps1 [] +.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 = "") - -if ($File -eq "" ) { - $File = read-host "Enter the filename" -} +if ($File -eq "" ) { $File = read-host "Enter the filename" } try { $Result = get-filehash $File -algorithm SHA1 diff --git a/Scripts/SHA256.ps1 b/Scripts/SHA256.ps1 index f2d8cdfd..02e1998f 100755 --- a/Scripts/SHA256.ps1 +++ b/Scripts/SHA256.ps1 @@ -1,16 +1,13 @@ #!/usr/bin/pwsh <# -.SYNTAX ./SHA256.ps1 [] +.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 = "") - -if ($File -eq "" ) { - $File = read-host "Enter the filename" -} +if ($File -eq "" ) { $File = read-host "Enter the filename" } try { $Result = get-filehash $File -algorithm SHA256 diff --git a/Scripts/add-firewall-rules.ps1 b/Scripts/add-firewall-rules.ps1 index fe3b9c28..be594241 100755 --- a/Scripts/add-firewall-rules.ps1 +++ b/Scripts/add-firewall-rules.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./add-firewall-rules.ps1 [] +.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 diff --git a/Scripts/alert.ps1 b/Scripts/alert.ps1 index 51bd3da3..8d3e96d4 100755 --- a/Scripts/alert.ps1 +++ b/Scripts/alert.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./alert.ps1 [] +.SYNTAX alert.ps1 [] .DESCRIPTION handle and escalate the given alert message .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/check-cpu-temp.ps1 b/Scripts/check-cpu-temp.ps1 index 619373a6..c24d9f5d 100755 --- a/Scripts/check-cpu-temp.ps1 +++ b/Scripts/check-cpu-temp.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-cpu-temp.ps1 +.SYNTAX check-cpu-temp.ps1 .DESCRIPTION checks the CPU temperature .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index d5fcc778..14c442d7 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-dns-resolution.ps1 +.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 diff --git a/Scripts/check-drive-space.ps1 b/Scripts/check-drive-space.ps1 index ea8524b9..36461e7e 100755 --- a/Scripts/check-drive-space.ps1 +++ b/Scripts/check-drive-space.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-drive-space.ps1 [] [] +.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 diff --git a/Scripts/check-file-system.ps1 b/Scripts/check-file-system.ps1 index 4328ebca..9786a7eb 100755 --- a/Scripts/check-file-system.ps1 +++ b/Scripts/check-file-system.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-file-system.ps1 [] +.SYNTAX check-file-system.ps1 [] .DESCRIPTION checks the validity of the file system (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1 index dba14311..3441e6ff 100755 --- a/Scripts/check-health.ps1 +++ b/Scripts/check-health.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-health.ps1 -.DESCRIPTION checks the system health +.SYNTAX check-health.ps1 +.DESCRIPTION checks the health of the local computer .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> diff --git a/Scripts/check-ipv4-address.ps1 b/Scripts/check-ipv4-address.ps1 index 58fa33ab..9eb2cd2d 100755 --- a/Scripts/check-ipv4-address.ps1 +++ b/Scripts/check-ipv4-address.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-ipv4-address.ps1 [
] +.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 diff --git a/Scripts/check-ipv6-address.ps1 b/Scripts/check-ipv6-address.ps1 index e1b4b0a0..f57dcc33 100755 --- a/Scripts/check-ipv6-address.ps1 +++ b/Scripts/check-ipv6-address.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-ipv6-address.ps1 [
] +.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 diff --git a/Scripts/check-mac-address.ps1 b/Scripts/check-mac-address.ps1 index c656099c..eb6d17c7 100755 --- a/Scripts/check-mac-address.ps1 +++ b/Scripts/check-mac-address.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-mac-address.ps1 [] +.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 diff --git a/Scripts/check-ping.ps1 b/Scripts/check-ping.ps1 index 6ed29170..1ca23636 100755 --- a/Scripts/check-ping.ps1 +++ b/Scripts/check-ping.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-ping.ps1 +.SYNTAX check-ping.ps1 .DESCRIPTION checks the ping latency to the internet .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/check-swap-space.ps1 b/Scripts/check-swap-space.ps1 index a5bd78dd..a688c12c 100755 --- a/Scripts/check-swap-space.ps1 +++ b/Scripts/check-swap-space.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-swap-space.ps1 [] +.SYNTAX check-swap-space.ps1 [] .DESCRIPTION checks the free swap space .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/check-symlinks.ps1 b/Scripts/check-symlinks.ps1 index 44d53111..9e9ad2d6 100755 --- a/Scripts/check-symlinks.ps1 +++ b/Scripts/check-symlinks.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-symlinks.ps1 [] +.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 diff --git a/Scripts/check-windows-system-files.ps1 b/Scripts/check-windows-system-files.ps1 index a8dd2b7d..7d200407 100755 --- a/Scripts/check-windows-system-files.ps1 +++ b/Scripts/check-windows-system-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-windows-system-files.ps1 +.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 diff --git a/Scripts/check-xml-file.ps1 b/Scripts/check-xml-file.ps1 index c1093cd7..feaa589a 100755 --- a/Scripts/check-xml-file.ps1 +++ b/Scripts/check-xml-file.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./check-xml-file [] +.SYNTAX check-xml-file [] .DESCRIPTION checks the given XML file for validity .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/cherry-picker.ps1 b/Scripts/cherry-picker.ps1 index 5d590cf6..bc41abdf 100755 --- a/Scripts/cherry-picker.ps1 +++ b/Scripts/cherry-picker.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./cherry-picker.ps1 [] [] [] [] +.SYNTAX cherry-picker.ps1 [] [] [] [] .DESCRIPTION cherry-picks a Git commit into multiple branches .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index e6edcc7f..7c174408 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./clean-repo.ps1 [] +.SYNTAX clean-repo.ps1 [] .DESCRIPTION cleans the current/given Git repository from untracked files (including submodules, e.g. for a fresh build) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/clone-repos.ps1 b/Scripts/clone-repos.ps1 index 6a77c02c..b1553a3b 100755 --- a/Scripts/clone-repos.ps1 +++ b/Scripts/clone-repos.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./clone-repos.ps1 [] +.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 diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator.ps1 index 62bf26cb..a0929e9a 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-calculator.ps1 +.SYNTAX close-calculator.ps1 .DESCRIPTION closes the calculator program gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-chrome.ps1 b/Scripts/close-chrome.ps1 index 1d791dee..a111581a 100755 --- a/Scripts/close-chrome.ps1 +++ b/Scripts/close-chrome.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-chrome.ps1 +.SYNTAX close-chrome.ps1 .DESCRIPTION closes Google Chrome gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-cortana.ps1 b/Scripts/close-cortana.ps1 index 60ee2b3f..b8b77561 100755 --- a/Scripts/close-cortana.ps1 +++ b/Scripts/close-cortana.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-cortana.ps1 +.SYNTAX close-cortana.ps1 .DESCRIPTION closes Cortana gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-edge.ps1 b/Scripts/close-edge.ps1 index 1ce34d90..c4136d29 100755 --- a/Scripts/close-edge.ps1 +++ b/Scripts/close-edge.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-edge.ps1 +.SYNTAX close-edge.ps1 .DESCRIPTION closes Microsoft Edge gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-file-explorer.ps1 b/Scripts/close-file-explorer.ps1 index 351b4425..02795c5f 100755 --- a/Scripts/close-file-explorer.ps1 +++ b/Scripts/close-file-explorer.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-file-explorer.ps1 +.SYNTAX close-file-explorer.ps1 .DESCRIPTION closes Microsoft File Explorer gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-program.ps1 b/Scripts/close-program.ps1 index 77a0539a..95aac35e 100755 --- a/Scripts/close-program.ps1 +++ b/Scripts/close-program.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-program.ps1 [] [] [] +.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 diff --git a/Scripts/close-system-settings.ps1 b/Scripts/close-system-settings.ps1 index 8385c4c9..c567a0aa 100755 --- a/Scripts/close-system-settings.ps1 +++ b/Scripts/close-system-settings.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-system-settings.ps1 +.SYNTAX close-system-settings.ps1 .DESCRIPTION closes the System Settings gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-thunderbird.ps1 b/Scripts/close-thunderbird.ps1 index ce974d81..91a2a08f 100755 --- a/Scripts/close-thunderbird.ps1 +++ b/Scripts/close-thunderbird.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-thunderbird.ps1 +.SYNTAX close-thunderbird.ps1 .DESCRIPTION closes Mozilla Thunderbird gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-vlc.ps1 b/Scripts/close-vlc.ps1 index 218f1ffc..5d8f9376 100755 --- a/Scripts/close-vlc.ps1 +++ b/Scripts/close-vlc.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-vlc.ps1 +.SYNTAX close-vlc.ps1 .DESCRIPTION closes the VLC media player gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/close-windows-terminal.ps1 b/Scripts/close-windows-terminal.ps1 index 54aba956..3ec0e5ee 100755 --- a/Scripts/close-windows-terminal.ps1 +++ b/Scripts/close-windows-terminal.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./close-windows-terminal.ps1 +.SYNTAX close-windows-terminal.ps1 .DESCRIPTION closes Windows Terminal gracefully .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/configure-git.ps1 b/Scripts/configure-git.ps1 index 743db132..ac0f7668 100755 --- a/Scripts/configure-git.ps1 +++ b/Scripts/configure-git.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./configure-git.ps1 [] [] [] +.SYNTAX configure-git.ps1 [] [] [] .DESCRIPTION sets up the Git user configuration .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/create-branch.ps1 b/Scripts/create-branch.ps1 index 041b6bef..a78c8842 100755 --- a/Scripts/create-branch.ps1 +++ b/Scripts/create-branch.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./create-branch.ps1 [] [] +.SYNTAX create-branch.ps1 [] [] .DESCRIPTION creates a new branch in the current/given Git repository .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/create-shortcut.ps1 b/Scripts/create-shortcut.ps1 index 73823150..ce505b3f 100755 --- a/Scripts/create-shortcut.ps1 +++ b/Scripts/create-shortcut.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./create-shortcut.ps1 [] [] [] +.SYNTAX create-shortcut.ps1 [] [] [] .DESCRIPTION creates a new shortcut .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/create-symlink.ps1 b/Scripts/create-symlink.ps1 index 5795ab7d..182c4eb1 100755 --- a/Scripts/create-symlink.ps1 +++ b/Scripts/create-symlink.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./create-symlink.ps1 [] [] +.SYNTAX create-symlink.ps1 [] [] .DESCRIPTION creates a symbolic link .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/create-tag.ps1 b/Scripts/create-tag.ps1 index 55b906b9..8d2bd714 100755 --- a/Scripts/create-tag.ps1 +++ b/Scripts/create-tag.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./create-tag.ps1 [] [] +.SYNTAX create-tag.ps1 [] [] .DESCRIPTION creates a new tag in the current/given Git repository .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/csv-to-text.ps1 b/Scripts/csv-to-text.ps1 index 8b5981eb..754b6d64 100755 --- a/Scripts/csv-to-text.ps1 +++ b/Scripts/csv-to-text.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./csv-to-text.ps1 [] +.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 diff --git a/Scripts/decrypt-file.ps1 b/Scripts/decrypt-file.ps1 index 9ef4ddf2..1b5c6c7e 100755 --- a/Scripts/decrypt-file.ps1 +++ b/Scripts/decrypt-file.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./decrypt-file.ps1 [] [] +.SYNTAX decrypt-file.ps1 [] [] .DESCRIPTION decrypts the given file .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/display-time.ps1 b/Scripts/display-time.ps1 index 7f6bf947..ec20ad6c 100755 --- a/Scripts/display-time.ps1 +++ b/Scripts/display-time.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./display-time.ps1 [] +.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 diff --git a/Scripts/download.ps1 b/Scripts/download.ps1 index 790c513f..df69aa70 100755 --- a/Scripts/download.ps1 +++ b/Scripts/download.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./download.ps1 [] +.SYNTAX download.ps1 [] .DESCRIPTION downloads the file/directory from the given URL .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/edit.ps1 b/Scripts/edit.ps1 index 63b90b7e..c7966b14 100755 --- a/Scripts/edit.ps1 +++ b/Scripts/edit.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./edit.ps1 +.SYNTAX edit.ps1 .DESCRIPTION starts the built-in text editor to edit the given file .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/enable-crash-dumps.ps1 b/Scripts/enable-crash-dumps.ps1 index 33db9a77..9dd6f9eb 100755 --- a/Scripts/enable-crash-dumps.ps1 +++ b/Scripts/enable-crash-dumps.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./enable-crash-dumps.ps1 +.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/enable-god-mode.ps1 b/Scripts/enable-god-mode.ps1 index 23f48e7a..2f3fd9d5 100755 --- a/Scripts/enable-god-mode.ps1 +++ b/Scripts/enable-god-mode.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./enable-god-mode.ps1 +.SYNTAX enable-god-mode.ps1 .DESCRIPTION enables the god mode (adds a new icon to the desktop) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/enable-ssh-client.ps1 b/Scripts/enable-ssh-client.ps1 index 85cc4cae..70d34375 100755 --- a/Scripts/enable-ssh-client.ps1 +++ b/Scripts/enable-ssh-client.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./enable-ssh-client.ps1 +.SYNTAX enable-ssh-client.ps1 .DESCRIPTION enables the SSH client (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/enable-ssh-server.ps1 b/Scripts/enable-ssh-server.ps1 index 96e9f641..3cb3ec64 100755 --- a/Scripts/enable-ssh-server.ps1 +++ b/Scripts/enable-ssh-server.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./enable-ssh-server.ps1 +.SYNTAX enable-ssh-server.ps1 .DESCRIPTION enables the SSH server (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/encrypt-file.ps1 b/Scripts/encrypt-file.ps1 index 079c6a26..3e872cc4 100755 --- a/Scripts/encrypt-file.ps1 +++ b/Scripts/encrypt-file.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./encrypt-file.ps1 [] [] +.SYNTAX encrypt-file.ps1 [] [] .DESCRIPTION encrypts the given file .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/fetch-repo.ps1 b/Scripts/fetch-repo.ps1 index 982a97d2..681023d8 100755 --- a/Scripts/fetch-repo.ps1 +++ b/Scripts/fetch-repo.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./fetch-repo.ps1 [] +.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 diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index 5ea62f7b..31f3a9e6 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./fetch-repos.ps1 [] +.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 diff --git a/Scripts/generate-qrcode.ps1 b/Scripts/generate-qrcode.ps1 index ebbba6f9..0b16c5a6 100755 --- a/Scripts/generate-qrcode.ps1 +++ b/Scripts/generate-qrcode.ps1 @@ -1,19 +1,14 @@ #!/usr/bin/pwsh <# -.SYNTAX ./generate-qrcode.ps1 [] [] +.SYNTAX generate-qrcode.ps1 [] [] .DESCRIPTION generates a QR code .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> param($Text = "", $ImageSize = "") - -if ($Text -eq "") { - $Text = read-input "Enter text or URL" -} -if ($ImageSize -eq "") { - $ImageSize = read-input "Enter image size (e.g. 500x500)" -} +if ($Text -eq "") { $Text = read-host "Enter text or URL" } +if ($ImageSize -eq "") { $ImageSize = read-host "Enter image size (e.g. 500x500)" } try { $ECC = "M" # can be L, M, Q, H diff --git a/Scripts/go-downloads.ps1 b/Scripts/go-downloads.ps1 index c285da3d..c90e0050 100755 --- a/Scripts/go-downloads.ps1 +++ b/Scripts/go-downloads.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./go-downloads.ps1 +.SYNTAX go-downloads.ps1 .DESCRIPTION go to the user's downloads folder .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/go-home.ps1 b/Scripts/go-home.ps1 index 21616ea6..d12adb77 100755 --- a/Scripts/go-home.ps1 +++ b/Scripts/go-home.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./go-home.ps1 +.SYNTAX go-home.ps1 .DESCRIPTION go to the user's home folder .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/go-music.ps1 b/Scripts/go-music.ps1 index 6f7e240a..78c5c908 100755 --- a/Scripts/go-music.ps1 +++ b/Scripts/go-music.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./go-music.ps1 +.SYNTAX go-music.ps1 .DESCRIPTION go to the user's music folder .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/go-root.ps1 b/Scripts/go-root.ps1 index 28077a17..9d24c17d 100755 --- a/Scripts/go-root.ps1 +++ b/Scripts/go-root.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./go-root.ps1 +.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 diff --git a/Scripts/go-scripts.ps1 b/Scripts/go-scripts.ps1 index a403bb1d..e6bc43b0 100755 --- a/Scripts/go-scripts.ps1 +++ b/Scripts/go-scripts.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./go-scripts.ps1 +.SYNTAX go-scripts.ps1 .DESCRIPTION go to the PowerShell Scripts folder .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/hibernate.ps1 b/Scripts/hibernate.ps1 index a8efeb54..16c708e3 100755 --- a/Scripts/hibernate.ps1 +++ b/Scripts/hibernate.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/pwsh <# -.SYNTAX ./hibernate.ps1 -.DESCRIPTION enables hibernate mode for the local computer (requires admin rights) +.SYNTAX hibernate.ps1 +.DESCRIPTION enables hibernate mode for the local computer (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> diff --git a/Scripts/inspect-exe.ps1 b/Scripts/inspect-exe.ps1 index d96429ac..8ff4b52c 100755 --- a/Scripts/inspect-exe.ps1 +++ b/Scripts/inspect-exe.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./inspect-exe.ps1 [] +.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 diff --git a/Scripts/introduce-powershell.ps1 b/Scripts/introduce-powershell.ps1 index 5bb5b058..ccae29a2 100755 --- a/Scripts/introduce-powershell.ps1 +++ b/Scripts/introduce-powershell.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./introduce-powershell.ps1 +.SYNTAX introduce-powershell.ps1 .DESCRIPTION introduces PowerShell to new users .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-aliases.ps1 b/Scripts/list-aliases.ps1 index 37b141a2..38d00411 100755 --- a/Scripts/list-aliases.ps1 +++ b/Scripts/list-aliases.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-aliases.ps1 +.SYNTAX list-aliases.ps1 .DESCRIPTION lists all PowerShell aliases .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-anagrams.ps1 b/Scripts/list-anagrams.ps1 index 7aa9ce70..34e7bd88 100755 --- a/Scripts/list-anagrams.ps1 +++ b/Scripts/list-anagrams.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-anagrams.ps1 [] [] +.SYNTAX list-anagrams.ps1 [] [] .DESCRIPTION lists all anagrams of the given word .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-automatic-variables.ps1 b/Scripts/list-automatic-variables.ps1 index da9bf9ea..98fd662a 100755 --- a/Scripts/list-automatic-variables.ps1 +++ b/Scripts/list-automatic-variables.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-automatic-variables.ps1 +.SYNTAX list-automatic-variables.ps1 .DESCRIPTION lists the automatic variables of PowerShell .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-branches.ps1 b/Scripts/list-branches.ps1 index 14340b52..1e11843e 100755 --- a/Scripts/list-branches.ps1 +++ b/Scripts/list-branches.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-branches.ps1 [] [] +.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 diff --git a/Scripts/list-clipboard.ps1 b/Scripts/list-clipboard.ps1 index fe928b8f..59a43ed8 100755 --- a/Scripts/list-clipboard.ps1 +++ b/Scripts/list-clipboard.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-clipboard.ps1 +.SYNTAX list-clipboard.ps1 .DESCRIPTION lists the contents of the clipboard .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-cmdlets.ps1 b/Scripts/list-cmdlets.ps1 index d7f2628d..d13895f8 100755 --- a/Scripts/list-cmdlets.ps1 +++ b/Scripts/list-cmdlets.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-cmdlets.ps1 +.SYNTAX list-cmdlets.ps1 .DESCRIPTION lists all PowerShell cmdlets .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-commits.ps1 b/Scripts/list-commits.ps1 index 3edf026c..6f318537 100755 --- a/Scripts/list-commits.ps1 +++ b/Scripts/list-commits.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-commits.ps1 [] [] +.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 diff --git a/Scripts/list-current-timezone.ps1 b/Scripts/list-current-timezone.ps1 index 0bb2a133..cfa2611a 100755 --- a/Scripts/list-current-timezone.ps1 +++ b/Scripts/list-current-timezone.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-current-timezone.ps1 +.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 diff --git a/Scripts/list-drives.ps1 b/Scripts/list-drives.ps1 index 225ec85d..03c0a5c4 100755 --- a/Scripts/list-drives.ps1 +++ b/Scripts/list-drives.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-drives.ps1 +.SYNTAX list-drives.ps1 .DESCRIPTION lists all drives connected to the computer .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-earthquakes.ps1 b/Scripts/list-earthquakes.ps1 index 62baf912..b5ef2ac6 100755 --- a/Scripts/list-earthquakes.ps1 +++ b/Scripts/list-earthquakes.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-earthquakes.ps1 +.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 diff --git a/Scripts/list-empty-dirs.ps1 b/Scripts/list-empty-dirs.ps1 index af03c891..66536b66 100755 --- a/Scripts/list-empty-dirs.ps1 +++ b/Scripts/list-empty-dirs.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-empty-dirs.ps1 [] +.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 diff --git a/Scripts/list-empty-files.ps1 b/Scripts/list-empty-files.ps1 index 8de24757..0e235f01 100755 --- a/Scripts/list-empty-files.ps1 +++ b/Scripts/list-empty-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-empty-files.ps1 [] +.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 diff --git a/Scripts/list-environment-variables.ps1 b/Scripts/list-environment-variables.ps1 index 6c1270ba..4fc3dbcc 100755 --- a/Scripts/list-environment-variables.ps1 +++ b/Scripts/list-environment-variables.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-environment-variables.ps1 +.SYNTAX list-environment-variables.ps1 .DESCRIPTION lists all environment variables .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-files.ps1 b/Scripts/list-files.ps1 index 621fa696..2e1c21a2 100755 --- a/Scripts/list-files.ps1 +++ b/Scripts/list-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-files.ps1 [] +.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 diff --git a/Scripts/list-formatted.ps1 b/Scripts/list-formatted.ps1 index 67e8ce4d..035b3bf4 100755 --- a/Scripts/list-formatted.ps1 +++ b/Scripts/list-formatted.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-formatted.ps1 [] +.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 diff --git a/Scripts/list-fritzbox-calls.ps1 b/Scripts/list-fritzbox-calls.ps1 index a25f22a9..b69944ef 100755 --- a/Scripts/list-fritzbox-calls.ps1 +++ b/Scripts/list-fritzbox-calls.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-fritzbox-calls.ps1 [] [] +.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 diff --git a/Scripts/list-fritzbox-devices.ps1 b/Scripts/list-fritzbox-devices.ps1 index 8adcae88..08984717 100755 --- a/Scripts/list-fritzbox-devices.ps1 +++ b/Scripts/list-fritzbox-devices.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-fritzbox-calls.ps1 [] [] +.SYNTAX list-fritzbox-calls.ps1 [] [] .DESCRIPTION lists FRITZ!Box's known devices .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-hidden-files.ps1 b/Scripts/list-hidden-files.ps1 index 2cdc53df..f4931734 100755 --- a/Scripts/list-hidden-files.ps1 +++ b/Scripts/list-hidden-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-hidden-files.ps1 [] +.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 diff --git a/Scripts/list-installed-apps.ps1 b/Scripts/list-installed-apps.ps1 index 3fbea6b3..566a9831 100755 --- a/Scripts/list-installed-apps.ps1 +++ b/Scripts/list-installed-apps.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-installed-apps.ps1 +.SYNTAX list-installed-apps.ps1 .DESCRIPTION lists the installed Windows Store apps .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-installed-software.ps1 b/Scripts/list-installed-software.ps1 index 19587fa4..2b76c3ee 100755 --- a/Scripts/list-installed-software.ps1 +++ b/Scripts/list-installed-software.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-installed-software.ps1 +.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 diff --git a/Scripts/list-logbook.ps1 b/Scripts/list-logbook.ps1 index 24e815d6..2f214ac6 100755 --- a/Scripts/list-logbook.ps1 +++ b/Scripts/list-logbook.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-logbook.ps1 +.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 diff --git a/Scripts/list-modules.ps1 b/Scripts/list-modules.ps1 index 79d67c9d..6f94c08d 100755 --- a/Scripts/list-modules.ps1 +++ b/Scripts/list-modules.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-modules.ps1 +.SYNTAX list-modules.ps1 .DESCRIPTION lists all PowerShell modules .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-network-shares.ps1 b/Scripts/list-network-shares.ps1 index 9d7f0597..a8ac9e27 100755 --- a/Scripts/list-network-shares.ps1 +++ b/Scripts/list-network-shares.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-network-shares.ps1 +.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 diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 2643d411..5ea867bb 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-news.ps1 [] +.SYNTAX list-news.ps1 [] .DESCRIPTION lists the latest news .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-os-releases.ps1 b/Scripts/list-os-releases.ps1 index 66c9d1da..3d423237 100755 --- a/Scripts/list-os-releases.ps1 +++ b/Scripts/list-os-releases.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-os-releases.ps1 +.SYNTAX list-os-releases.ps1 .DESCRIPTION lists OS releases and download URL .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-printers.ps1 b/Scripts/list-printers.ps1 index 16cc064a..f153faa7 100755 --- a/Scripts/list-printers.ps1 +++ b/Scripts/list-printers.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-printers.ps1 +.SYNTAX list-printers.ps1 .DESCRIPTION lists all printer known to the computer .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-processes.ps1 b/Scripts/list-processes.ps1 index 877924d9..fa4b2ec1 100755 --- a/Scripts/list-processes.ps1 +++ b/Scripts/list-processes.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-processes.ps1 +.SYNTAX list-processes.ps1 .DESCRIPTION lists the local computer processes .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-profiles.ps1 b/Scripts/list-profiles.ps1 index 59d431d1..33f2c4aa 100755 --- a/Scripts/list-profiles.ps1 +++ b/Scripts/list-profiles.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-profiles.ps1 +.SYNTAX list-profiles.ps1 .DESCRIPTION lists your PowerShell profiles .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-random-passwords.ps1 b/Scripts/list-random-passwords.ps1 index 831779ab..d835f6e0 100755 --- a/Scripts/list-random-passwords.ps1 +++ b/Scripts/list-random-passwords.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-random-passwords.ps1 +.SYNTAX list-random-passwords.ps1 .DESCRIPTION prints a list of random passwords .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-random-pins.ps1 b/Scripts/list-random-pins.ps1 index 67936aab..eee9d3b7 100755 --- a/Scripts/list-random-pins.ps1 +++ b/Scripts/list-random-pins.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-random-pins.ps1 [] [] [] +.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 diff --git a/Scripts/list-scripts.ps1 b/Scripts/list-scripts.ps1 index bad110d9..b29049ed 100755 --- a/Scripts/list-scripts.ps1 +++ b/Scripts/list-scripts.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-scripts.ps1 +.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 diff --git a/Scripts/list-tags.ps1 b/Scripts/list-tags.ps1 index 2bc8de0d..fb261766 100755 --- a/Scripts/list-tags.ps1 +++ b/Scripts/list-tags.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-tags.ps1 [] [] +.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 diff --git a/Scripts/list-tasks.ps1 b/Scripts/list-tasks.ps1 index 87c1bc16..a9655058 100755 --- a/Scripts/list-tasks.ps1 +++ b/Scripts/list-tasks.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-tasks.ps1 +.SYNTAX list-tasks.ps1 .DESCRIPTION lists all Windows scheduler tasks .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-timezones.ps1 b/Scripts/list-timezones.ps1 index 8471d34d..fbd84cf1 100755 --- a/Scripts/list-timezones.ps1 +++ b/Scripts/list-timezones.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-timezones.ps1 +.SYNTAX list-timezones.ps1 .DESCRIPTION lists all time zones available .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/list-unused-files.ps1 b/Scripts/list-unused-files.ps1 index 5368f29d..12abcc09 100755 --- a/Scripts/list-unused-files.ps1 +++ b/Scripts/list-unused-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-unused-files.ps1 +.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 diff --git a/Scripts/list-user-groups.ps1 b/Scripts/list-user-groups.ps1 index a5b21eba..cebf6a35 100755 --- a/Scripts/list-user-groups.ps1 +++ b/Scripts/list-user-groups.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./list-user-groups.ps1 +.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 diff --git a/Scripts/locate-city.ps1 b/Scripts/locate-city.ps1 index 930e7b16..68a928ad 100755 --- a/Scripts/locate-city.ps1 +++ b/Scripts/locate-city.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./locate-city.ps1 [] +.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 diff --git a/Scripts/locate-ipaddress.ps1 b/Scripts/locate-ipaddress.ps1 index 24224bbe..fd9c49df 100755 --- a/Scripts/locate-ipaddress.ps1 +++ b/Scripts/locate-ipaddress.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./locate-ipaddress.ps1 [] +.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 diff --git a/Scripts/locate-zip-code.ps1 b/Scripts/locate-zip-code.ps1 index 6585c732..ea109cb7 100755 --- a/Scripts/locate-zip-code.ps1 +++ b/Scripts/locate-zip-code.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./locate-zip-code.ps1 [] [] +.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 diff --git a/Scripts/moon.ps1 b/Scripts/moon.ps1 index 5748eecc..3d0875fe 100755 --- a/Scripts/moon.ps1 +++ b/Scripts/moon.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./moon.ps1 +.SYNTAX moon.ps1 .DESCRIPTION prints the current moon phase .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/mute-audio.ps1 b/Scripts/mute-audio.ps1 index db498e42..d15c7a4d 100755 --- a/Scripts/mute-audio.ps1 +++ b/Scripts/mute-audio.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./mute-audio.ps1 +.SYNTAX mute-audio.ps1 .DESCRIPTION mutes the audio .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/new-email.ps1 b/Scripts/new-email.ps1 index 745b8a41..b94ab477 100755 --- a/Scripts/new-email.ps1 +++ b/Scripts/new-email.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./new-email.ps1 [
] +.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 diff --git a/Scripts/next-joke.ps1 b/Scripts/next-joke.ps1 index e258e218..6acc3748 100755 --- a/Scripts/next-joke.ps1 +++ b/Scripts/next-joke.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./next-joke.ps1 +.SYNTAX next-joke.ps1 .DESCRIPTION gets the next random Juck Norris joke .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/open-browser.ps1 b/Scripts/open-browser.ps1 index 742bba8a..1c516f57 100755 --- a/Scripts/open-browser.ps1 +++ b/Scripts/open-browser.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./open-browser.ps1 [] +.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 diff --git a/Scripts/open-calculator.ps1 b/Scripts/open-calculator.ps1 index d89f2381..849be12e 100755 --- a/Scripts/open-calculator.ps1 +++ b/Scripts/open-calculator.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./open-calculator.ps1 +.SYNTAX open-calculator.ps1 .DESCRIPTION starts the calculator program .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/open-email-client.ps1 b/Scripts/open-email-client.ps1 index 23fc75bd..93a59689 100755 --- a/Scripts/open-email-client.ps1 +++ b/Scripts/open-email-client.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./open-email-client.ps1 +.SYNTAX open-email-client.ps1 .DESCRIPTION starts the default email client .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/open-file-explorer.ps1 b/Scripts/open-file-explorer.ps1 index 3d0cc467..4b65294b 100644 --- a/Scripts/open-file-explorer.ps1 +++ b/Scripts/open-file-explorer.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./open-file-explorer.ps1 +.SYNTAX open-file-explorer.ps1 .DESCRIPTION starts the File Explorerer .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/play-beep.ps1 b/Scripts/play-beep.ps1 index 9ded6347..fc38e7f9 100755 --- a/Scripts/play-beep.ps1 +++ b/Scripts/play-beep.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-beep.ps1 +.SYNTAX play-beep.ps1 .DESCRIPTION plays a beep sound .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/play-m3u.ps1 b/Scripts/play-m3u.ps1 index 639e1f9b..40e43eea 100755 --- a/Scripts/play-m3u.ps1 +++ b/Scripts/play-m3u.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-m3u.ps1 [] +.SYNTAX play-m3u.ps1 [] .DESCRIPTION plays the given playlist (M3U file format) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/play-mission-impossible.ps1 b/Scripts/play-mission-impossible.ps1 index 45ff6313..57350495 100755 --- a/Scripts/play-mission-impossible.ps1 +++ b/Scripts/play-mission-impossible.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-mission-impossible.ps1 +.SYNTAX play-mission-impossible.ps1 .DESCRIPTION plays the Mission Impossible theme .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/play-mp3.ps1 b/Scripts/play-mp3.ps1 index 67728aee..465ea169 100755 --- a/Scripts/play-mp3.ps1 +++ b/Scripts/play-mp3.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-mp3.ps1 [] +.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 diff --git a/Scripts/play-super-mario.ps1 b/Scripts/play-super-mario.ps1 index 9e683ccb..fd569d21 100755 --- a/Scripts/play-super-mario.ps1 +++ b/Scripts/play-super-mario.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-super-mario.ps1 +.SYNTAX play-super-mario.ps1 .DESCRIPTION plays the Super Mario Intro .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/play-the-imperial-march.ps1 b/Scripts/play-the-imperial-march.ps1 index 67b3b5c4..89d30675 100755 --- a/Scripts/play-the-imperial-march.ps1 +++ b/Scripts/play-the-imperial-march.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./play-the-imperial-march.ps1 +.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 diff --git a/Scripts/poweroff.ps1 b/Scripts/poweroff.ps1 index c8ac5536..3531fd75 100755 --- a/Scripts/poweroff.ps1 +++ b/Scripts/poweroff.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/pwsh <# -.SYNTAX ./poweroff.ps1 -.DESCRIPTION halts the local computer, administrator rights are required +.SYNTAX poweroff.ps1 +.DESCRIPTION halts the local computer (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> @@ -9,7 +9,7 @@ #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 3d9943a5..863cf6fe 100755 --- a/Scripts/pull-repo.ps1 +++ b/Scripts/pull-repo.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./pull-repo.ps1 [] +.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 diff --git a/Scripts/pull-repos.ps1 b/Scripts/pull-repos.ps1 index 6dc18beb..77ae0e84 100755 --- a/Scripts/pull-repos.ps1 +++ b/Scripts/pull-repos.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./pull-repos.ps1 [] +.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 diff --git a/Scripts/query-smart-data.ps1 b/Scripts/query-smart-data.ps1 index 2ce6e3ce..c0d9148f 100755 --- a/Scripts/query-smart-data.ps1 +++ b/Scripts/query-smart-data.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./query-smart-data.ps1 [] +.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 diff --git a/Scripts/reboot-fritzbox.ps1 b/Scripts/reboot-fritzbox.ps1 index ebf9c654..7b48345e 100755 --- a/Scripts/reboot-fritzbox.ps1 +++ b/Scripts/reboot-fritzbox.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./reboot-fritzbox.ps1 [] [] +.SYNTAX reboot-fritzbox.ps1 [] [] .DESCRIPTION reboots the FRITZ!Box device .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/reboot.ps1 b/Scripts/reboot.ps1 index 46d4d54d..51afbd96 100755 --- a/Scripts/reboot.ps1 +++ b/Scripts/reboot.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/pwsh <# -.SYNTAX ./reboot.ps1 -.DESCRIPTION reboots the local computer (requires admin rights) +.SYNTAX reboot.ps1 +.DESCRIPTION reboots the local computer (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> @@ -9,7 +9,7 @@ #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 70810d2e..af904cbf 100755 --- a/Scripts/remove-empty-dirs.ps1 +++ b/Scripts/remove-empty-dirs.ps1 @@ -1,18 +1,17 @@ #!/usr/bin/pwsh <# -.SYNTAX ./remove-empty-dirs.ps1 [] -.DESCRIPTION removes empty subfolders within the given directory tree +.SYNTAX remove-empty-dirs.ps1 [] +.DESCRIPTION removes all empty subfolders within the given directory tree .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> param($DirTree = "") +if ($DirTree -eq "" ) { + $DirTree = read-host "Enter the path to the directory tree" +} try { - if ($DirTree -eq "" ) { - $DirTree = read-host "Enter the path to the directory tree" - } - $Folders = @() foreach ($Folder in (Get-ChildItem -path "$DirTree" -Recurse | Where { $_.PSisContainer })) { $Folders += New-Object PSObject -Property @{ diff --git a/Scripts/scan-ports.ps1 b/Scripts/scan-ports.ps1 index 5b47dca2..2a082305 100755 --- a/Scripts/scan-ports.ps1 +++ b/Scripts/scan-ports.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./scan-ports.ps1 +.SYNTAX scan-ports.ps1 .DESCRIPTION scans the network for open/closed ports .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/search-files.ps1 b/Scripts/search-files.ps1 index 2204a285..92dd9e5e 100755 --- a/Scripts/search-files.ps1 +++ b/Scripts/search-files.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./search-files.ps1 [] [] +.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 diff --git a/Scripts/send-email.ps1 b/Scripts/send-email.ps1 index 79468d95..729ba609 100755 --- a/Scripts/send-email.ps1 +++ b/Scripts/send-email.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./send-email.ps1 +.SYNTAX send-email.ps1 .DESCRIPTION sends an email .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 diff --git a/Scripts/send-tcp.ps1 b/Scripts/send-tcp.ps1 index 81110aa4..6a89b0af 100755 --- a/Scripts/send-tcp.ps1 +++ b/Scripts/send-tcp.ps1 @@ -1,24 +1,17 @@ #!/usr/bin/pwsh <# -.SYNTAX ./send-tcp.ps1 [] [] [] +.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 = "") +if ($TargetIP -eq "" ) { $TargetIP = read-host "Enter target IP address" } +if ($TargetPort -eq 0 ) { $TargetPort = read-host "Enter target port" } +if ($Message -eq "" ) { $Message = read-host "Enter message to send" } try { - if ($TargetIP -eq "" ) { - $TargetIP = read-host "Enter target IP address" - } - if ($TargetPort -eq 0 ) { - $TargetPort = read-host "Enter target port" - } - if ($Message -eq "" ) { - $Message = read-host "Enter message to send" - } - $IP = [System.Net.Dns]::GetHostAddresses($TargetIP) $Address = [System.Net.IPAddress]::Parse($IP) $Socket = New-Object System.Net.Sockets.TCPClient($Address,$TargetPort) diff --git a/Scripts/send-udp.ps1 b/Scripts/send-udp.ps1 index e1505f1e..be15e781 100755 --- a/Scripts/send-udp.ps1 +++ b/Scripts/send-udp.ps1 @@ -1,24 +1,17 @@ #!/usr/bin/pwsh <# -.SYNTAX ./send-udp.ps1 [] [] [] +.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 = "") +if ($TargetIP -eq "" ) { $TargetIP = read-host "Enter target IP address" } +if ($TargetPort -eq 0 ) { $TargetPort = read-host "Enter target port" } +if ($Message -eq "" ) { $Message = read-host "Enter message to send" } try { - if ($TargetIP -eq "" ) { - $TargetIP = read-host "Enter target IP address" - } - if ($TargetPort -eq 0 ) { - $TargetPort = read-host "Enter target port" - } - if ($Message -eq "" ) { - $Message = read-host "Enter message to send" - } - $IP = [System.Net.Dns]::GetHostAddresses($TargetIP) $Address = [System.Net.IPAddress]::Parse($IP) $EndPoints = New-Object System.Net.IPEndPoint($Address, $TargetPort) diff --git a/Scripts/set-profile.ps1 b/Scripts/set-profile.ps1 index 6f51516c..9d697be3 100755 --- a/Scripts/set-profile.ps1 +++ b/Scripts/set-profile.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./set-profile.ps1 +.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 diff --git a/Scripts/set-timer.ps1 b/Scripts/set-timer.ps1 index ab3a784c..f355efb6 100755 --- a/Scripts/set-timer.ps1 +++ b/Scripts/set-timer.ps1 @@ -1,16 +1,13 @@ #!/usr/bin/pwsh <# -.SYNTAX ./set-timer.ps1 [] +.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) - -if ($Seconds -eq 0 ) { - [int]$Seconds = read-host "Enter number of seconds" -} +if ($Seconds -eq 0 ) { [int]$Seconds = read-host "Enter number of seconds" } try { for ($i = $Seconds; $i -gt 0; $i--) { diff --git a/Scripts/set-wallpaper.ps1 b/Scripts/set-wallpaper.ps1 index 87c7b68d..d7d89ece 100755 --- a/Scripts/set-wallpaper.ps1 +++ b/Scripts/set-wallpaper.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/pwsh <# -.SYNTAX ./set-wallpaper.ps1 [] [