mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-18 10:56:45 +02:00
Replace tabs by spaces in meta header
This commit is contained in:
parent
5d372fc184
commit
6efc805a7d
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./MD5.ps1 [<file>]
|
.SYNTAX ./MD5.ps1 [<file>]
|
||||||
.DESCRIPTION prints the MD5 checksum of the given file
|
.DESCRIPTION prints the MD5 checksum of the given file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($File = "")
|
param($File = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./SHA1.ps1 [<file>]
|
.SYNTAX ./SHA1.ps1 [<file>]
|
||||||
.DESCRIPTION prints the SHA1 checksum of the given file
|
.DESCRIPTION prints the SHA1 checksum of the given file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($File = "")
|
param($File = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./SHA256.ps1 [<file>]
|
.SYNTAX ./SHA256.ps1 [<file>]
|
||||||
.DESCRIPTION prints the SHA256 checksum of the given file
|
.DESCRIPTION prints the SHA256 checksum of the given file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($File = "")
|
param($File = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>]
|
.SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>]
|
||||||
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required
|
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./alert.ps1 [<message>]
|
.SYNTAX ./alert.ps1 [<message>]
|
||||||
.DESCRIPTION handle and escalate the given alert message
|
.DESCRIPTION handle and escalate the given alert message
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Message = "")
|
param($Message = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-cpu-temp.ps1
|
.SYNTAX ./check-cpu-temp.ps1
|
||||||
.DESCRIPTION checks the CPU temperature
|
.DESCRIPTION checks the CPU temperature
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-dns-resolution.ps1
|
.SYNTAX ./check-dns-resolution.ps1
|
||||||
.DESCRIPTION checks the DNS resolution with frequently used domain names
|
.DESCRIPTION checks the DNS resolution with frequently used domain names
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
Set-StrictMode -Version Latest
|
Set-StrictMode -Version Latest
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-drive-space.ps1 [<drive>] [<min-level>]
|
.SYNTAX ./check-drive-space.ps1 [<drive>] [<min-level>]
|
||||||
.DESCRIPTION checks the given drive for free space left
|
.DESCRIPTION checks the given drive for free space left
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Drive = "", [int]$MinLevel = 50) # minimum level in GB
|
param($Drive = "", [int]$MinLevel = 50) # minimum level in GB
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-health.ps1
|
.SYNTAX ./check-health.ps1
|
||||||
.DESCRIPTION checks the system health
|
.DESCRIPTION checks the system health
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$Hostname = $(hostname)
|
$Hostname = $(hostname)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-ipv4-address.ps1 [<address>]
|
.SYNTAX ./check-ipv4-address.ps1 [<address>]
|
||||||
.DESCRIPTION checks the given IPv4 address for validity
|
.DESCRIPTION checks the given IPv4 address for validity
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Address = "")
|
param($Address = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-ipv6-address.ps1 [<address>]
|
.SYNTAX ./check-ipv6-address.ps1 [<address>]
|
||||||
.DESCRIPTION checks the given IPv6 address for validity
|
.DESCRIPTION checks the given IPv6 address for validity
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Address = "")
|
param($Address = "")
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-mac-address.ps1 [<MAC>]
|
.SYNTAX ./check-mac-address.ps1 [<MAC>]
|
||||||
.DESCRIPTION checks the given MAC address for validity
|
.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
|
MAC address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($MAC = "")
|
param($MAC = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-swap-space.ps1 [<min-level>]
|
.SYNTAX ./check-swap-space.ps1 [<min-level>]
|
||||||
.DESCRIPTION checks the free swap space
|
.DESCRIPTION checks the free swap space
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([int]$MinLevel = 50) # minimum level in GB
|
param([int]$MinLevel = 50) # minimum level in GB
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-symlinks.ps1 [<dir-tree>]
|
.SYNTAX ./check-symlinks.ps1 [<dir-tree>]
|
||||||
.DESCRIPTION checks every symlink in the given directory tree
|
.DESCRIPTION checks every symlink in the given directory tree
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($DirTree = "")
|
param($DirTree = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-windows-system-files.ps1
|
.SYNTAX ./check-windows-system-files.ps1
|
||||||
.DESCRIPTION checks the validity of the Windows system files (requires admin rights)
|
.DESCRIPTION checks the validity of the Windows system files (requires admin rights)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./check-xml-file [<file>]
|
.SYNTAX ./check-xml-file [<file>]
|
||||||
.DESCRIPTION checks the given XML file for validity
|
.DESCRIPTION checks the given XML file for validity
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($File = "")
|
param($File = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./clean-branch.ps1 [<repo-dir>]
|
.SYNTAX ./clean-branch.ps1 [<repo-dir>]
|
||||||
.DESCRIPTION cleans the current/given Git repository from generated files (including submodules, e.g. for a fresh build)
|
.DESCRIPTION cleans the current/given Git repository from generated files (including submodules, e.g. for a fresh build)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD")
|
param($RepoDir = "$PWD")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./clone-repos.ps1 [<target-dir>]
|
.SYNTAX ./clone-repos.ps1 [<target-dir>]
|
||||||
.DESCRIPTION clones well-known Git repositories into the current/given directory.
|
.DESCRIPTION clones well-known Git repositories into the current/given directory.
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($TargetDir = "$PWD")
|
param($TargetDir = "$PWD")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-calculator.ps1
|
.SYNTAX ./close-calculator.ps1
|
||||||
.DESCRIPTION closes the calculator program gracefully
|
.DESCRIPTION closes the calculator program gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Calculator" "Calculator" "calc"
|
./close-program "Calculator" "Calculator" "calc"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-chrome.ps1
|
.SYNTAX ./close-chrome.ps1
|
||||||
.DESCRIPTION closes Google Chrome gracefully
|
.DESCRIPTION closes Google Chrome gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Google Chrome" "chrome"
|
./close-program "Google Chrome" "chrome"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-cortana.ps1
|
.SYNTAX ./close-cortana.ps1
|
||||||
.DESCRIPTION closes Cortana gracefully
|
.DESCRIPTION closes Cortana gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Cortana" "Cortana"
|
./close-program "Cortana" "Cortana"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-edge.ps1
|
.SYNTAX ./close-edge.ps1
|
||||||
.DESCRIPTION closes Microsoft Edge gracefully
|
.DESCRIPTION closes Microsoft Edge gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Microsoft Edge" "msedge"
|
./close-program "Microsoft Edge" "msedge"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-file-explorer.ps1
|
.SYNTAX ./close-file-explorer.ps1
|
||||||
.DESCRIPTION closes Microsoft File Explorer gracefully
|
.DESCRIPTION closes Microsoft File Explorer gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "File Explorer" "explorer"
|
./close-program "File Explorer" "explorer"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-program.ps1 [<full-program-name>][<program-name>] [<program-alias-name>]
|
.SYNTAX ./close-program.ps1 [<full-program-name>][<program-name>] [<program-alias-name>]
|
||||||
.DESCRIPTION closes the processes of the given program gracefully
|
.DESCRIPTION closes the processes of the given program gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($FullProgramName = "", $ProgramName = "", $ProgramAliasName = "")
|
param($FullProgramName = "", $ProgramName = "", $ProgramAliasName = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-system-settings.ps1
|
.SYNTAX ./close-system-settings.ps1
|
||||||
.DESCRIPTION closes the System Settings gracefully
|
.DESCRIPTION closes the System Settings gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "System Settings" "SystemSettings"
|
./close-program "System Settings" "SystemSettings"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-thunderbird.ps1
|
.SYNTAX ./close-thunderbird.ps1
|
||||||
.DESCRIPTION closes Mozilla Thunderbird gracefully
|
.DESCRIPTION closes Mozilla Thunderbird gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Mozilla Thunderbird" "thunderbird"
|
./close-program "Mozilla Thunderbird" "thunderbird"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-vlc.ps1
|
.SYNTAX ./close-vlc.ps1
|
||||||
.DESCRIPTION closes the VLC media player gracefully
|
.DESCRIPTION closes the VLC media player gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "VLC media player" "vlc"
|
./close-program "VLC media player" "vlc"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./close-windows-terminal.ps1
|
.SYNTAX ./close-windows-terminal.ps1
|
||||||
.DESCRIPTION closes Windows Terminal gracefully
|
.DESCRIPTION closes Windows Terminal gracefully
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
./close-program "Windows Terminal" "WindowsTerminal"
|
./close-program "Windows Terminal" "WindowsTerminal"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
.SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
||||||
.DESCRIPTION sets up the Git user configuration
|
.DESCRIPTION sets up the Git user configuration
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($FullName = "", $EmailAddress = "", $FavoriteEditor = "")
|
param($FullName = "", $EmailAddress = "", $FavoriteEditor = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
|
.SYNTAX ./create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
|
||||||
.DESCRIPTION creates a new shortcut
|
.DESCRIPTION creates a new shortcut
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Shortcut = "", $Target = "", $Description)
|
param($Shortcut = "", $Target = "", $Description)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./create-symlink.ps1 [<symlink>] [<target>]
|
.SYNTAX ./create-symlink.ps1 [<symlink>] [<target>]
|
||||||
.DESCRIPTION creates a symbolic link
|
.DESCRIPTION creates a symbolic link
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Symlink = "", $Target = "")
|
param($Symlink = "", $Target = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./csv-to-text.ps1 [<csv-file>]
|
.SYNTAX ./csv-to-text.ps1 [<csv-file>]
|
||||||
.DESCRIPTION converts the given CSV file into a text list
|
.DESCRIPTION converts the given CSV file into a text list
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([String]$Path)
|
param([String]$Path)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./decrypt-file.ps1 [<path>] [<password>]
|
.SYNTAX ./decrypt-file.ps1 [<path>] [<password>]
|
||||||
.DESCRIPTION decrypts the given file
|
.DESCRIPTION decrypts the given file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$Path = "", [string]$Password = "")
|
param([string]$Path = "", [string]$Password = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./display-time.ps1 [<seconds>]
|
.SYNTAX ./display-time.ps1 [<seconds>]
|
||||||
.DESCRIPTION displays the current time for 10 seconds by default
|
.DESCRIPTION displays the current time for 10 seconds by default
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([int]$Seconds = 10)
|
param([int]$Seconds = 10)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./enable-crash-dumps.ps1
|
.SYNTAX ./enable-crash-dumps.ps1
|
||||||
.DESCRIPTION enables the writing of crash dumps
|
.DESCRIPTION enables the writing of crash dumps
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./encrypt-file.ps1 [<path>] [<password>]
|
.SYNTAX ./encrypt-file.ps1 [<path>] [<password>]
|
||||||
.DESCRIPTION encrypts the given file
|
.DESCRIPTION encrypts the given file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$Path = "", [string]$Password = "")
|
param($Path = "", $Password = "")
|
||||||
|
|
||||||
function EncryptFile {
|
function EncryptFile {
|
||||||
<#
|
<#
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./fetch-repo.ps1 [<repo-dir>]
|
.SYNTAX ./fetch-repo.ps1 [<repo-dir>]
|
||||||
.DESCRIPTION fetches updates for the current/given Git repository (including submodules)
|
.DESCRIPTION fetches updates for the current/given Git repository (including submodules)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD")
|
param($RepoDir = "$PWD")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./fetch-repos.ps1 [<parent-dir>]
|
.SYNTAX ./fetch-repos.ps1 [<parent-dir>]
|
||||||
.DESCRIPTION fetches updates for all Git repositories under the current/given directory (including submodules)
|
.DESCRIPTION fetches updates for all Git repositories under the current/given directory (including submodules)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($ParentDir = "$PWD")
|
param($ParentDir = "$PWD")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>]
|
.SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>]
|
||||||
.DESCRIPTION generates a QR code
|
.DESCRIPTION generates a QR code
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Text = "", $ImageSize = "")
|
param($Text = "", $ImageSize = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./go-downloads.ps1
|
.SYNTAX ./go-downloads.ps1
|
||||||
.DESCRIPTION go to the user's downloads folder
|
.DESCRIPTION go to the user's downloads folder
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./go-home.ps1
|
.SYNTAX ./go-home.ps1
|
||||||
.DESCRIPTION go to the user's home folder
|
.DESCRIPTION go to the user's home folder
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./go-music.ps1
|
.SYNTAX ./go-music.ps1
|
||||||
.DESCRIPTION go to the user's music folder
|
.DESCRIPTION go to the user's music folder
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./go-root.ps1
|
.SYNTAX ./go-root.ps1
|
||||||
.DESCRIPTION go to the root directory (C: on Windows)
|
.DESCRIPTION go to the root directory (C: on Windows)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./go-scripts.ps1
|
.SYNTAX ./go-scripts.ps1
|
||||||
.DESCRIPTION go to the PowerShell Scripts folder
|
.DESCRIPTION go to the PowerShell Scripts folder
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./hibernate.ps1
|
.SYNTAX ./hibernate.ps1
|
||||||
.DESCRIPTION enables hibernate mode for the local computer (requires admin rights)
|
.DESCRIPTION enables hibernate mode for the local computer (requires admin rights)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>]
|
.SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>]
|
||||||
.DESCRIPTION prints basic information of the given executable file
|
.DESCRIPTION prints basic information of the given executable file
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($PathToExe = "")
|
param($PathToExe = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-aliases.ps1
|
.SYNTAX ./list-aliases.ps1
|
||||||
.DESCRIPTION lists all PowerShell aliases
|
.DESCRIPTION lists all PowerShell aliases
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-anagrams.ps1 [<word>] [<columns>]
|
.SYNTAX ./list-anagrams.ps1 [<word>] [<columns>]
|
||||||
.DESCRIPTION lists all anagrams of the given word
|
.DESCRIPTION lists all anagrams of the given word
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Word = "", [int]$Columns = 8)
|
param($Word = "", [int]$Columns = 8)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-automatic-variables.ps1
|
.SYNTAX ./list-automatic-variables.ps1
|
||||||
.DESCRIPTION lists the automatic variables of PowerShell
|
.DESCRIPTION lists the automatic variables of PowerShell
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function AddItem { param([string]$Variable, [string]$Content)
|
function AddItem { param([string]$Variable, [string]$Content)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-branches.ps1 [<repo-dir>] [<pattern>]
|
.SYNTAX ./list-branches.ps1 [<repo-dir>] [<pattern>]
|
||||||
.DESCRIPTION lists all branches in the current/given Git repository
|
.DESCRIPTION lists all branches in the current/given Git repository
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD", $Pattern = "*")
|
param($RepoDir = "$PWD", $Pattern = "*")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-clipboard.ps1
|
.SYNTAX ./list-clipboard.ps1
|
||||||
.DESCRIPTION lists the contents of the clipboard
|
.DESCRIPTION lists the contents of the clipboard
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-cmdlets.ps1
|
.SYNTAX ./list-cmdlets.ps1
|
||||||
.DESCRIPTION lists all PowerShell cmdlets
|
.DESCRIPTION lists all PowerShell cmdlets
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-commits.ps1 [<repo-dir>] [<format>]
|
.SYNTAX ./list-commits.ps1 [<repo-dir>] [<format>]
|
||||||
.DESCRIPTION lists all commits in the current/given Git repository
|
.DESCRIPTION lists all commits in the current/given Git repository
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD", $Format = "compact")
|
param($RepoDir = "$PWD", $Format = "compact")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-current-timezone.ps1
|
.SYNTAX ./list-current-timezone.ps1
|
||||||
.DESCRIPTION lists the current time zone details
|
.DESCRIPTION lists the details of the current time zone
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-drives.ps1
|
.SYNTAX ./list-drives.ps1
|
||||||
.DESCRIPTION lists all drives
|
.DESCRIPTION lists all drives connected to the computer
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-earthquakes.ps1
|
.SYNTAX ./list-earthquakes.ps1
|
||||||
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days
|
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$Format="csv" # csv, geojson, kml, text, xml
|
$Format="csv" # csv, geojson, kml, text, xml
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-empty-dirs.ps1 [<dir-tree>]
|
.SYNTAX ./list-empty-dirs.ps1 [<dir-tree>]
|
||||||
.DESCRIPTION lists empty subfolders within the given directory tree
|
.DESCRIPTION lists empty subfolders within the given directory tree
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($DirTree = "")
|
param($DirTree = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-empty-files.ps1 [<dir-tree>]
|
.SYNTAX ./list-empty-files.ps1 [<dir-tree>]
|
||||||
.DESCRIPTION lists empty files within the given directory tree
|
.DESCRIPTION lists empty files within the given directory tree
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($DirTree = "")
|
param($DirTree = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-environment-variables.ps1
|
.SYNTAX ./list-environment-variables.ps1
|
||||||
.DESCRIPTION lists all environment variables
|
.DESCRIPTION lists all environment variables
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-files.ps1 [<folder>]
|
.SYNTAX ./list-files.ps1 [<folder>]
|
||||||
.DESCRIPTION lists all files in the given folder and also in every subfolder
|
.DESCRIPTION lists all files in the given folder and also in every subfolder
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Folder = "")
|
param($Folder = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-formatted.ps1 [<directory>]
|
.SYNTAX ./list-formatted.ps1 [<directory>]
|
||||||
.DESCRIPTION lists the current working directory formatted in columns
|
.DESCRIPTION lists the current working directory formatted in columns
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Dir = "")
|
param($Dir = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||||
.DESCRIPTION lists the phone calls of the FRITZ!Box device
|
.DESCRIPTION lists the phone calls of the FRITZ!Box device
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -Version 3
|
#Requires -Version 3
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||||
.DESCRIPTION lists FRITZ!Box's known devices
|
.DESCRIPTION lists FRITZ!Box's known devices
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -Version 3
|
#Requires -Version 3
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-hidden-files.ps1 [<dir-tree>]
|
.SYNTAX ./list-hidden-files.ps1 [<dir-tree>]
|
||||||
.DESCRIPTION lists hidden files within the given directory tree
|
.DESCRIPTION lists hidden files within the given directory tree
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($DirTree = "")
|
param($DirTree = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-installed-apps.ps1
|
.SYNTAX ./list-installed-apps.ps1
|
||||||
.DESCRIPTION lists the installed Windows Store apps
|
.DESCRIPTION lists the installed Windows Store apps
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-installed-software.ps1
|
.SYNTAX ./list-installed-software.ps1
|
||||||
.DESCRIPTION lists the installed software (except Windows Store apps)
|
.DESCRIPTION lists the installed software (except Windows Store apps)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-logbook.ps1
|
.SYNTAX ./list-logbook.ps1
|
||||||
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)
|
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$PathToRepo = "$PSScriptRoot/.."
|
$PathToRepo = "$PSScriptRoot/.."
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-modules.ps1
|
.SYNTAX ./list-modules.ps1
|
||||||
.DESCRIPTION lists all PowerShell modules
|
.DESCRIPTION lists all PowerShell modules
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-network-shares.ps1
|
.SYNTAX ./list-network-shares.ps1
|
||||||
.DESCRIPTION lists the network shares of the local computer
|
.DESCRIPTION lists the network shares of the local computer
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-news.ps1 [<RSS-URL>]
|
.SYNTAX ./list-news.ps1 [<RSS-URL>]
|
||||||
.DESCRIPTION lists the latest news
|
.DESCRIPTION lists the latest news
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RSS_URL = "https://yahoo.com/news/rss/world")
|
param($RSS_URL = "https://yahoo.com/news/rss/world")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-os-releases.ps1
|
.SYNTAX ./list-os-releases.ps1
|
||||||
.DESCRIPTION lists OS releases and download URL
|
.DESCRIPTION lists OS releases and download URL
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-printers.ps1
|
.SYNTAX ./list-printers.ps1
|
||||||
.DESCRIPTION lists all printer known to the computer
|
.DESCRIPTION lists all printer known to the computer
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-processes.ps1
|
.SYNTAX ./list-processes.ps1
|
||||||
.DESCRIPTION lists the local computer processes
|
.DESCRIPTION lists the local computer processes
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-profiles.ps1
|
.SYNTAX ./list-profiles.ps1
|
||||||
.DESCRIPTION lists your PowerShell profiles
|
.DESCRIPTION lists your PowerShell profiles
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function ShowProfile { param([int]$Level, [string]$Name, [string]$Filename)
|
function ShowProfile { param([int]$Level, [string]$Name, [string]$Filename)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-random-passwords.ps1
|
.SYNTAX ./list-random-passwords.ps1
|
||||||
.DESCRIPTION prints a list of random passwords
|
.DESCRIPTION prints a list of random passwords
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$PasswordLength = 15
|
$PasswordLength = 15
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>]
|
.SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>]
|
||||||
.DESCRIPTION prints a list of random PIN's
|
.DESCRIPTION prints a list of random PIN's
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([int]$PinLength = 5, [int]$Columns = 12, [int]$Rows = 24)
|
param([int]$PinLength = 5, [int]$Columns = 12, [int]$Rows = 24)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-scripts.ps1
|
.SYNTAX ./list-scripts.ps1
|
||||||
.DESCRIPTION lists all PowerShell scripts in this repository (sorted alphabetically)
|
.DESCRIPTION lists all PowerShell scripts in this repository (sorted alphabetically)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function ListScripts { param([string]$FilePath)
|
function ListScripts { param([string]$FilePath)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-tags.ps1 [<repo-dir>] [<pattern>]
|
.SYNTAX ./list-tags.ps1 [<repo-dir>] [<pattern>]
|
||||||
.DESCRIPTION lists all tags in the current/given Git repository
|
.DESCRIPTION lists all tags in the current/given Git repository
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD", $Pattern="*")
|
param($RepoDir = "$PWD", $Pattern="*")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-timezones.ps1
|
.SYNTAX ./list-timezones.ps1
|
||||||
.DESCRIPTION lists all time zones available
|
.DESCRIPTION lists all time zones available
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-unused-files.ps1 <dirtree> <days>
|
.SYNTAX ./list-unused-files.ps1 <dirtree> <days>
|
||||||
.DESCRIPTION lists files in the <directory tree> with last access time older than <days>
|
.DESCRIPTION lists files in the <directory tree> with last access time older than <days>
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($DirTree = "", [int]$NumberOfDaysUnused = 99)
|
param($DirTree = "", [int]$NumberOfDaysUnused = 99)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-user-groups.ps1
|
.SYNTAX ./list-user-groups.ps1
|
||||||
.DESCRIPTION lists the user groups on the local computer
|
.DESCRIPTION lists the user groups on the local computer
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./locate-city.ps1 [<city>]
|
.SYNTAX ./locate-city.ps1 [<city>]
|
||||||
.DESCRIPTION prints the geographic location of the given city
|
.DESCRIPTION prints the geographic location of the given city
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($City = "")
|
param($City = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./locate-ipaddress.ps1 [<IPaddress>]
|
.SYNTAX ./locate-ipaddress.ps1 [<IPaddress>]
|
||||||
.DESCRIPTION prints the geographic location of the given IP address
|
.DESCRIPTION prints the geographic location of the given IP address
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($IPaddr = "")
|
param($IPaddr = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>]
|
.SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>]
|
||||||
.DESCRIPTION prints the geographic location of the given zip-code
|
.DESCRIPTION prints the geographic location of the given zip-code
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($CountryCode = "", $ZipCode = "")
|
param($CountryCode = "", $ZipCode = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX make-install.ps1 <build-dir>
|
.SYNTAX make-install.ps1 <build-dir>
|
||||||
.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory.
|
.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory.
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
set SRC_DIR=%1
|
set SRC_DIR=%1
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./moon.ps1
|
.SYNTAX ./moon.ps1
|
||||||
.DESCRIPTION prints the current moon phase
|
.DESCRIPTION prints the current moon phase
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./mute-audio.ps1
|
.SYNTAX ./mute-audio.ps1
|
||||||
.DESCRIPTION mutes the audio
|
.DESCRIPTION mutes the audio
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./new-email.ps1 [<address>]
|
.SYNTAX ./new-email.ps1 [<address>]
|
||||||
.DESCRIPTION starts the default email client to write a new email
|
.DESCRIPTION starts the default email client to write a new email
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($EmailAddress = "")
|
param($EmailAddress = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./next-joke.ps1
|
.SYNTAX ./next-joke.ps1
|
||||||
.DESCRIPTION gets the next random Juck Norris joke
|
.DESCRIPTION gets the next random Juck Norris joke
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./open-browser.ps1 [<URL>]
|
.SYNTAX ./open-browser.ps1 [<URL>]
|
||||||
.DESCRIPTION starts the default Web browser, optional with given URL
|
.DESCRIPTION starts the default Web browser, optional with given URL
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($URL = "")
|
param($URL = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./open-calculator.ps1
|
.SYNTAX ./open-calculator.ps1
|
||||||
.DESCRIPTION starts the calculator program
|
.DESCRIPTION starts the calculator program
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./open-email-client.ps1
|
.SYNTAX ./open-email-client.ps1
|
||||||
.DESCRIPTION starts the default email client
|
.DESCRIPTION starts the default email client
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Start-Process "mailto:markus@fleschutz.de"
|
start-process "mailto:markus@fleschutz.de"
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-beep.ps1
|
.SYNTAX ./play-beep.ps1
|
||||||
.DESCRIPTION plays a beep sound
|
.DESCRIPTION plays a beep sound
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[console]::beep(500,300)
|
[console]::beep(500,300)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-m3u.ps1 [<playlist-file>]
|
.SYNTAX ./play-m3u.ps1 [<playlist-file>]
|
||||||
.DESCRIPTION plays the given playlist (M3U file format)
|
.DESCRIPTION plays the given playlist (M3U file format)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Filename = "")
|
param($Filename = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-mission-impossible.ps1
|
.SYNTAX ./play-mission-impossible.ps1
|
||||||
.DESCRIPTION plays the Mission Impossible theme
|
.DESCRIPTION plays the Mission Impossible theme
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[console]::beep(784,150)
|
[console]::beep(784,150)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-mp3.ps1 [<MP3-file>]
|
.SYNTAX ./play-mp3.ps1 [<MP3-file>]
|
||||||
.DESCRIPTION plays the given sound file (MP3 file format)
|
.DESCRIPTION plays the given sound file (MP3 file format)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Filename = "")
|
param($Filename = "")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-super-mario.ps1
|
.SYNTAX ./play-super-mario.ps1
|
||||||
.DESCRIPTION plays the Super Mario Intro
|
.DESCRIPTION plays the Super Mario Intro
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[console]::beep(659,250) ##E
|
[console]::beep(659,250) ##E
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./play-the-imperial-march.ps1
|
.SYNTAX ./play-the-imperial-march.ps1
|
||||||
.DESCRIPTION plays the Imperial March (Star Wars)
|
.DESCRIPTION plays the Imperial March (Star Wars)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[console]::beep(440, 500)
|
[console]::beep(440, 500)
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./poweroff.ps1
|
.SYNTAX ./poweroff.ps1
|
||||||
.DESCRIPTION halts the local computer, administrator rights are required
|
.DESCRIPTION halts the local computer, administrator rights are required
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Stop-Computer
|
stop-computer
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./pull-repo.ps1 [<repo-dir>]
|
.SYNTAX ./pull-repo.ps1 [<repo-dir>]
|
||||||
.DESCRIPTION pulls updates for the current/given Git repository (including submodules)
|
.DESCRIPTION pulls updates for the current/given Git repository (including submodules)
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($RepoDir = "$PWD")
|
param($RepoDir = "$PWD")
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user