Update the comment header

This commit is contained in:
Markus Fleschutz 2022-01-29 12:47:46 +01:00
parent 757eba69d9
commit c112524c6f
256 changed files with 728 additions and 731 deletions

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Adds firewall rules for executables (needs admin rights) Adds firewall rules for executables (needs admin rights)
.DESCRIPTION .DESCRIPTION
This script adds firewall rules for the given executable. Administrator rights are required. This PowerShell script adds firewall rules for the given executable. Administrator rights are required.
.PARAMETER PathToExecutables .PARAMETER PathToExecutables
Specifies the path to the executables Specifies the path to the executables
.EXAMPLE .EXAMPLE
@ -13,7 +13,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -1,8 +1,8 @@
<# <#
.SYNOPSIS .SYNOPSIS
Adds a memo text to $HOME/Memos.csv Adds a memo text
.DESCRIPTION .DESCRIPTION
This script adds the given memo text to $HOME/Memos.csv. This PowerShell script adds the given memo text to $HOME/Memos.csv.
.PARAMETER text .PARAMETER text
Specifies the text to memorize Specifies the text to memorize
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$text = "") param([string]$text = "")

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Handles and escalates an alert Handles and escalates an alert
.DESCRIPTION .DESCRIPTION
This script handles and escalates the given alert message. This PowerShell script handles and escalates the given alert message.
.PARAMETER message .PARAMETER message
Specifies the alert message Specifies the alert message
.EXAMPLE .EXAMPLE
@ -10,7 +10,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Message = "") param([string]$Message = "")

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Builds a Git repository Builds a Git repository
.DESCRIPTION .DESCRIPTION
This scripts supports building with cmake, configure, autogen, Imakefile and Makefile. This PowerShell script supports building with cmake, configure, autogen, Imakefile and Makefile.
.PARAMETER RepoDir .PARAMETER RepoDir
Specifies the path to the Git repository Specifies the path to the Git repository
.EXAMPLE .EXAMPLE
PS> ./build-repo C:\MyRepo PS> ./build-repo C:\MyRepo
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$RepoDir = "$PWD") param([string]$RepoDir = "$PWD")

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Builds all Git repositories in a folder Builds all Git repositories in a folder
.DESCRIPTION .DESCRIPTION
This script builds all Git repositories in a given folder. This PowerShell script builds all Git repositories in a given folder.
.PARAMETER ParentDir .PARAMETER ParentDir
Specifies the path to the folder containing the Git repositories Specifies the path to the folder containing the Git repositories
.EXAMPLE .EXAMPLE
PS> ./build-repos C:\MyRepos PS> ./build-repos C:\MyRepos
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$ParentDir = "$PWD") param([string]$ParentDir = "$PWD")

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's autostart folder Sets the working directory to the user's autostart folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's autostart folder. This PowerShell script changes the working directory to the user's autostart folder.
.EXAMPLE .EXAMPLE
PS> ./cd-autostart PS> ./cd-autostart
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's desktop folder Sets the working directory to the user's desktop folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's desktop folder. This PowerShell script changes the working directory to the user's desktop folder.
.EXAMPLE .EXAMPLE
PS> ./cd-desktop PS> ./cd-desktop
📂/home/markus/Desktop 📂/home/markus/Desktop
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's documents folder Sets the working directory to the user's documents folder
.DESCRIPTION .DESCRIPTION
This scripts changes the working directory to the user's documents folder. This PowerShell script changes the working directory to the user's documents folder.
.EXAMPLE .EXAMPLE
PS> ./cd-docs PS> ./cd-docs
📂/home/markus/Documents 📂/home/markus/Documents
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's downloads folder Sets the working directory to the user's downloads folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's downloads folder. This PowerShell script changes the working directory to the user's downloads folder.
.EXAMPLE .EXAMPLE
PS> ./cd-downloads PS> ./cd-downloads
📂/home/markus/Downloads 📂/home/markus/Downloads
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's Dropbox folder Sets the working directory to the user's Dropbox folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's Dropbox folder. This PowerShell script changes the working directory to the user's Dropbox folder.
.EXAMPLE .EXAMPLE
PS> ./cd-dropbox PS> ./cd-dropbox
📂/home/markus/Dropbox 📂/home/markus/Dropbox
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's home directory Sets the working directory to the user's home directory
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's home directory. This PowerShell script changes the working directory to the user's home directory.
.EXAMPLE .EXAMPLE
PS> ./cd-home PS> ./cd-home
📂/home/markus 📂/home/markus
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's music folder Sets the working directory to the user's music folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's music folder. This PowerShell script changes the working directory to the user's music folder.
.EXAMPLE .EXAMPLE
PS> ./cd-music PS> ./cd-music
📂/home/markus/Music 📂/home/markus/Music
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's OneDrive folder Sets the working directory to the user's OneDrive folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's OneDrive folder. This PowerShell script changes the working directory to the user's OneDrive folder.
.EXAMPLE .EXAMPLE
PS> ./cd-onedrive PS> ./cd-onedrive
📂/home/markus/OneDrive 📂/home/markus/OneDrive
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's pictures folder Sets the working directory to the user's pictures folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's pictures folder. This PowerShell script changes the working directory to the user's pictures folder.
.EXAMPLE .EXAMPLE
PS> ./cd-pics PS> ./cd-pics
📂/home/markus/Pictures 📂/home/markus/Pictures
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's recycle bin folder Sets the working directory to the user's recycle bin folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's recycle bin folder. This PowerShell script changes the working directory to the user's recycle bin folder.
.EXAMPLE .EXAMPLE
PS> ./cd-recycle-bin PS> ./cd-recycle-bin
📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
function Get-CurrentUserSID { [CmdletBinding()] param() function Get-CurrentUserSID { [CmdletBinding()] param()

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's Git repositories folder Sets the working directory to the user's Git repositories folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's Git repositories folder. This PowerShell script changes the working directory to the user's Git repositories folder.
.EXAMPLE .EXAMPLE
PS> ./cd-repos PS> ./cd-repos
📂/home/markus/Repos 📂/home/markus/Repos
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -1,15 +1,15 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the root directory (C:\ on Windows) Sets the working directory to the root directory
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the root directory (C:\ on Windows). This PowerShell script changes the working directory to the root directory (C:\ on Windows).
.EXAMPLE .EXAMPLE
PS> ./cd-root PS> ./cd-root
📂C:\ 📂C:\
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the PowerShell scripts folder Sets the working directory to the PowerShell scripts folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the PowerShell scripts folder. This PowerShell script changes the working directory to the PowerShell scripts folder.
.EXAMPLE .EXAMPLE
PS> ./cd-scripts PS> ./cd-scripts
📂/home/markus/PowerShell/Scripts 📂/home/markus/PowerShell/Scripts
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's SSH folder Sets the working directory to the user's SSH folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's SSH folder. This PowerShell script changes the working directory to the user's SSH folder.
.EXAMPLE .EXAMPLE
PS> ./cd-ssh PS> ./cd-ssh
📂/home/markus/.ssh 📂/home/markus/.ssh
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the temporary folder Sets the working directory to the temporary folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the temporary folder. This PowerShell script changes the working directory to the temporary folder.
.EXAMPLE .EXAMPLE
PS> ./cd-temp PS> ./cd-temp
📂C:\Users\markus\AppData\Local\Temp 📂C:\Users\markus\AppData\Local\Temp
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
function GetTempDir { function GetTempDir {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to one level up Sets the working directory to one level up
.DESCRIPTION .DESCRIPTION
This script changes the working directory to one directory level up. This PowerShell script changes the working directory to one directory level up.
.EXAMPLE .EXAMPLE
PS> .\cd-up PS> .\cd-up
(one level up)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to two directory levels up Sets the working directory to two directory levels up
.DESCRIPTION .DESCRIPTION
This script changes the working directory to two directory level up. This PowerShell script changes the working directory to two directory level up.
.EXAMPLE .EXAMPLE
PS> ./cd-up2 PS> ./cd-up2
(two levels up)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to three directory levels up Sets the working directory to three directory levels up
.DESCRIPTION .DESCRIPTION
This script changes the working directory to three directory levels up. This PowerShell script changes the working directory to three directory levels up.
.EXAMPLE .EXAMPLE
PS> ./cd-up3 PS> ./cd-up3
(three levels up)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to four directory levels up Sets the working directory to four directory levels up
.DESCRIPTION .DESCRIPTION
This script changes the working directory to four directory levels up. This PowerShell script changes the working directory to four directory levels up.
.EXAMPLE .EXAMPLE
PS> ./cd-up4 PS> ./cd-up4
(four levels up)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's videos folder Sets the working directory to the user's videos folder
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the user's videos folder. This PowerShell script changes the working directory to the user's videos folder.
.EXAMPLE .EXAMPLE
PS> ./cd-videos PS> ./cd-videos
📂/home/markus/Videos 📂/home/markus/Videos
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Windows directory Sets the working directory to the Windows directory
.DESCRIPTION .DESCRIPTION
This script changes the working directory to the Windows directory. This PowerShell script changes the working directory to the Windows directory.
.EXAMPLE .EXAMPLE
PS> ./cd-windows PS> ./cd-windows
📂C:\Windows 📂C:\Windows
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Changes the wallpaper Changes the wallpaper
.DESCRIPTION .DESCRIPTION
This script downloads a random photo from Unsplash and sets it as desktop background. This PowerShell script downloads a random photo from Unsplash and sets it as desktop background.
.PARAMETER Category .PARAMETER Category
Specifies the photo category (beach, city, ...) Specifies the photo category (beach, city, ...)
.EXAMPLE .EXAMPLE
PS> ./change-wallpaper PS> ./change-wallpaper
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
#> #>

View File

@ -1,15 +1,15 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the CPU Checks the CPU temperature
.DESCRIPTION .DESCRIPTION
This script checks the CPU temperature. This PowerShell script checks the CPU temperature.
.EXAMPLE .EXAMPLE
PS> ./check-cpu PS> ./check-cpu
CPU has 30.3 °C CPU has 30.3 °C
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,12 +2,12 @@
.SYNOPSIS .SYNOPSIS
Determines the current date Determines the current date
.DESCRIPTION .DESCRIPTION
This script determines and speaks the current date by text-to-speech (TTS). This PowerShell script determines and speaks the current date by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-date PS> ./check-date
It's Sunday, October 17, 2021 It's Sunday, October 17, 2021
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
#> #>

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Determines the current day Determines the current day
.DESCRIPTION .DESCRIPTION
This script determines and speaks the current day by text-to-speech (TTS). This PowerShell script determines and speaks the current day by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-day PS> ./check-day
It's Sunday. It's Sunday.
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Checks the DNS resolution Checks the DNS resolution
.DESCRIPTION .DESCRIPTION
This script checks the DNS resolution with frequently used domain names. This PowerShell script checks the DNS resolution with frequently used domain names.
.EXAMPLE .EXAMPLE
PS> ./check-dns PS> ./check-dns
DNS resolution is 11.8 domains per second DNS resolution is 11.8 domains per second
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -1,8 +1,8 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a drive for free space left (20 GB by default) Checks a drive for free space left
.DESCRIPTION .DESCRIPTION
This script checks a drive for free space left (20 GB by default). This PowerShell script checks a drive for free space left (20 GB by default).
.PARAMETER Drive .PARAMETER Drive
Specifies the drive to check Specifies the drive to check
.PARAMETER MinLevel .PARAMETER MinLevel
@ -13,7 +13,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB param([string]$Drive = "", [int]$MinLevel = 20) # minimum level in GB

View File

@ -1,8 +1,8 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks all drives for free space left (20 GB by default) Checks all drives for free space left
.DESCRIPTION .DESCRIPTION
This script checks all drives for free space left (20 GB by default). This PowerShell script checks all drives for free space left (20 GB by default).
.PARAMETER MinLevel .PARAMETER MinLevel
Specifies the minimum level in Gigabyte Specifies the minimum level in Gigabyte
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([int]$MinLevel = 20) # minimum level in GB param([int]$MinLevel = 20) # minimum level in GB

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the time of dusk Checks the time of dusk
.DESCRIPTION .DESCRIPTION
This script queries the time of dusk and answers by text-to-speech (TTS). This PowerShell script queries the time of dusk and answers by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-dusk PS> ./check-dusk
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
function TimeSpanToString { param([TimeSpan]$Delta) function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the time until Easter Sunday Checks the time until Easter Sunday
.DESCRIPTION .DESCRIPTION
This script checks the time until Easter Sunday and replies by text-to-speech (TTS). This PowerShell script checks the time until Easter Sunday and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-easter-sunday PS> ./check-easter-sunday
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the file system of a drive (needs admin rights) Checks the file system of a drive (needs admin rights)
.DESCRIPTION .DESCRIPTION
This script checks the file system of a drive. It needs admin rights. This PowerShell script checks the file system of a drive. It needs admin rights.
.PARAMETER Drive .PARAMETER Drive
Specifies the drive to check Specifies the drive to check
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -8,11 +8,11 @@
.PARAMETER MaxCount .PARAMETER MaxCount
Specifies the number of news to list Specifies the number of news to list
.EXAMPLE .EXAMPLE
PS> ./list-news PS> ./check-headlines
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxCount = 8) param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxCount = 8)

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the computer health Checks the computer health
.DESCRIPTION .DESCRIPTION
This script checks the health of the local computer. This PowerShell script checks the health of the local computer.
.EXAMPLE .EXAMPLE
PS> ./check-health PS> ./check-health
1213 GB left for swap space (67 of 1280 GB used) 1213 GB left for swap space (67 of 1280 GB used)

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the time until Independence Day Checks the time until Independence Day
.DESCRIPTION .DESCRIPTION
This script checks the time until Indepence Day and replies by text-to-speech (TTS). This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-independence-day PS> ./check-independence-day
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks an IPv4 address for validity Checks an IPv4 address for validity
.DESCRIPTION .DESCRIPTION
This script checks the given IPv4 address for validity. This PowerShell script checks the given IPv4 address for validity.
.PARAMETER Address .PARAMETER Address
Specifies the IPv4 address to check Specifies the IPv4 address to check
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Address = "") param([string]$Address = "")

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks an IPv6 address for validity Checks an IPv6 address for validity
.DESCRIPTION .DESCRIPTION
This script checks the given IPv6 address for validity This PowerShell script checks the given IPv6 address for validity
.PARAMETER Address .PARAMETER Address
Specifies the IPv6 address to check Specifies the IPv6 address to check
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Address = "") param([string]$Address = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the ISS position Checks the ISS position
.DESCRIPTION .DESCRIPTION
This script queries the position of the International Space Station (ISS) and replies by text-to-speech (TTS). This PowerShell script queries the position of the International Space Station (ISS) and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-iss-position PS> ./check-iss-position
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the given MAC address for validity Checks the given MAC address for validity
.DESCRIPTION .DESCRIPTION
This script checks the given MAC address for validity This PowerShell script checks the given MAC address for validity
Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000. Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000.
.PARAMETER MAC .PARAMETER MAC
Specifies the MAC address to check Specifies the MAC address to check
@ -12,7 +12,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$MAC = "") param([string]$MAC = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks for Midnight Checks for Midnight
.DESCRIPTION .DESCRIPTION
This script checks the time until Midnight and replies by text-to-speech (TTS). This PowerShell script checks the time until Midnight and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-midnight PS> ./check-midnight
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
function TimeSpanToString { param([TimeSpan]$Delta) function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Gets the current month name Gets the current month name
.DESCRIPTION .DESCRIPTION
This script determines and speaks the current month name by text-to-speech (TTS). This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-month PS> ./check-month
It's December. It's December.
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the Moon phase Checks the Moon phase
.DESCRIPTION .DESCRIPTION
This script determines the Moon phase and answers by text-to-speech (TTS). This PowerShell script determines the Moon phase and answers by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-moon-phase PS> ./check-moon-phase
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the time until New Year Checks the time until New Year
.DESCRIPTION .DESCRIPTION
This script checks the time until New Year and replies by text-to-speech (TTS). This PowerShell script checks the time until New Year and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-new-year PS> ./check-new-year
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks for Noon Checks for Noon
.DESCRIPTION .DESCRIPTION
This script checks the time until Noon and replies by text-to-speech (TTS). This PowerShell script checks the time until Noon and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-noon PS> ./check-noon
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
function TimeSpanToString { param([TimeSpan]$Delta) function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Determines the exact OS version Determines the exact OS version
.DESCRIPTION .DESCRIPTION
This script determines and says the exact operating system version by text-to-speech (TTS). This PowerShell script determines and says the exact operating system version by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-operating-system PS> ./check-operating-system
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the ping latency from the local computer to selected Internet hosts Checks the ping latency from the local computer to selected Internet hosts
.DESCRIPTION .DESCRIPTION
This script checks the ping latency from the local computer to selected Internet hosts. This PowerShell script checks the ping latency from the local computer to selected Internet hosts.
The hosts by default are: amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com The hosts by default are: amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com
.PARAMETER hosts .PARAMETER hosts
Specifies the hosts to check (separated by comma) Specifies the hosts to check (separated by comma)
@ -12,7 +12,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$hosts = "amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com") param([string]$hosts = "amazon.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the time until Saint Nicholas Day Checks the time until Saint Nicholas Day
.DESCRIPTION .DESCRIPTION
This script checks the time until Saint Nicholas Day and replies by text-to-speech (TTS). This PowerShell script checks the time until Saint Nicholas Day and replies by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-santa PS> ./check-santa
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,17 +2,17 @@
.SYNOPSIS .SYNOPSIS
Performs a selftest on your S.M.A.R.T. HDD/SSD devices. Performs a selftest on your S.M.A.R.T. HDD/SSD devices.
.DESCRIPTION .DESCRIPTION
This script performs a selftest on your S.M.A.R.T. HDD/SSD devices. This PowerShell script performs a selftest on your S.M.A.R.T. HDD/SSD devices.
It requires smartctl (smartmontools package) and admin rights. It requires smartctl (smartmontools package) and admin rights.
.PARAMETER type .PARAMETER type
Specifies the type of selftest: either short (default) or long Specifies the type of selftest: either short (default) or long
.EXAMPLE .EXAMPLE
PS> ./check-smart-devices PS> ./check-smart-devices
short selftest started on S.M.A.R.T. device /dev/sda short selftest started on S.M.A.R.T. device /dev/sda
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the given subnet mask for validity Checks the given subnet mask for validity
.DESCRIPTION .DESCRIPTION
This script checks the given subnet mask for validity. This PowerShell script checks the given subnet mask for validity.
.PARAMETER address .PARAMETER address
Specifies the subnet mask to check Specifies the subnet mask to check
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$address = "") param([string]$address = "")

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the swap space Checks the swap space
.DESCRIPTION .DESCRIPTION
This script checks the free swap space. This PowerShell script checks the free swap space.
.PARAMETER MinLevel .PARAMETER MinLevel
Specifies the minimum level (50 GB by default) Specifies the minimum level (50 GB by default)
.EXAMPLE .EXAMPLE
@ -11,7 +11,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([int]$MinLevel = 50) # minimum level in GB param([int]$MinLevel = 50) # minimum level in GB

View File

@ -1,8 +1,8 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks every symlink in a folder (including subfolders) Checks every symlink in a folder
.DESCRIPTION .DESCRIPTION
This script checks every symlink in a folder (including subfolders). This PowerShell script checks every symlink in a folder (including subfolders).
Returns the number of broken symlinks as exit value. Returns the number of broken symlinks as exit value.
.PARAMETER folder .PARAMETER folder
Specifies the path to the directory tree Specifies the path to the directory tree
@ -12,7 +12,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$folder = "") param([string]$folder = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Determines the time zone Determines the time zone
.DESCRIPTION .DESCRIPTION
This script determines and returns the current time zone. This PowerShell script determines and returns the current time zone.
.EXAMPLE .EXAMPLE
PS> ./check-time-zone PS> ./check-time-zone
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Determines the current time Determines the current time
.DESCRIPTION .DESCRIPTION
This script determines and speaks the current time by text-to-speech (TTS). This PowerShell script determines and speaks the current time by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-time PS> ./check-time
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Determines the uptime Determines the uptime
.DESCRIPTION .DESCRIPTION
This script determines and says the uptime by text-to-speech (TTS). This PowerShell script determines and says the uptime by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-uptime PS> ./check-uptime
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Checks the VPN connections Checks the VPN connections
.DESCRIPTION .DESCRIPTION
This script checks the status of all available VPN connections. This PowerShell script checks the status of all available VPN connections.
.EXAMPLE .EXAMPLE
PS> ./check-vpn PS> ./check-vpn
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the weather Checks the weather
.DESCRIPTION .DESCRIPTION
Checks the current weather report. This PowerShell script checks the current weather report.
.PARAMETER location .PARAMETER location
Specifies the location to use (determined automatically per default) Specifies the location to use (determined automatically per default)
.EXAMPLE .EXAMPLE
@ -10,7 +10,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$location = "") # empty means determine automatically param([string]$location = "") # empty means determine automatically

View File

@ -2,12 +2,12 @@
.SYNOPSIS .SYNOPSIS
Determines the week number Determines the week number
.DESCRIPTION .DESCRIPTION
This script determines and speaks the current week number by text-to-speech (TTS). This PowerShell script determines and speaks the current week number by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-week PS> ./check-week
It's week #4. It's week #4.
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
#> #>

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Checks the wind conditions Checks the wind conditions
.DESCRIPTION .DESCRIPTION
Determines the current wind conditions and replies by text-to-speech (TTS). This PowerShell script determines the current wind conditions and replies by text-to-speech (TTS).
.PARAMETER location .PARAMETER location
Specifies the location to use (determined automatically per default) Specifies the location to use (determined automatically per default)
.EXAMPLE .EXAMPLE
@ -10,7 +10,7 @@
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
param([string]$location = "") # empty means determine automatically param([string]$location = "") # empty means determine automatically

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Checks the validity of the Windows system files (requires admin rights) Checks the validity of the Windows system files (requires admin rights)
.DESCRIPTION .DESCRIPTION
This script checks the validity of the Windows system files. It requires admin rights. This PowerShell script checks the validity of the Windows system files. It requires admin rights.
.EXAMPLE .EXAMPLE
PS> ./check-windows-system-files PS> ./check-windows-system-files
checked Windows system files checked Windows system files
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -2,16 +2,16 @@
.SYNOPSIS .SYNOPSIS
Checks the given XML file for validity Checks the given XML file for validity
.DESCRIPTION .DESCRIPTION
This script checks the given XML file for validity. This PowerShell script checks the given XML file for validity.
.PARAMETER file .PARAMETER file
Specifies the path to the XML file to check Specifies the path to the XML file to check
.EXAMPLE .EXAMPLE
PS> ./check-xml-file myfile.xml PS> ./check-xml-file myfile.xml
XML file is valid XML file is valid
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$file = "") param([string]$file = "")

View File

@ -2,17 +2,17 @@
.SYNOPSIS .SYNOPSIS
Cleans a Git repository from untracked files (including submodules) Cleans a Git repository from untracked files (including submodules)
.DESCRIPTION .DESCRIPTION
This script cleans a Git repository from untracked files (including submodules). This PowerShell script cleans a Git repository from untracked files (including submodules).
.PARAMETER RepoDir .PARAMETER RepoDir
Specifies the path to the Git repository Specifies the path to the Git repository
.EXAMPLE .EXAMPLE
PS> ./clean-repo C:\MyRepo PS> ./clean-repo C:\MyRepo
🧹 Cleaning from untracked files... 🧹 Cleaning from untracked files...
cleaned Git repository 📂C:\MyRepo in 0 sec cleaned Git repository 📂C:\MyRepo in 0 sec
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$RepoDir = "$PWD") param([string]$RepoDir = "$PWD")

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Cleans all Git repositories in a folder from untracked files Cleans all Git repositories in a folder from untracked files
.DESCRIPTION .DESCRIPTION
This script cleans all Git repositories in a folder from untracked files (including submodules). This PowerShell script cleans all Git repositories in a folder from untracked files (including submodules).
.PARAMETER ParentDir .PARAMETER ParentDir
Specifies the path to the parent folder Specifies the path to the parent folder
.EXAMPLE .EXAMPLE
PS> ./clean-repos C:\MyRepos PS> ./clean-repos C:\MyRepos
.NOTES
Author: Markus Fleschutz / License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$ParentDir = "$PWD") param([string]$ParentDir = "$PWD")

View File

@ -2,14 +2,14 @@
.SYNOPSIS .SYNOPSIS
Clears the recycle bin folder Clears the recycle bin folder
.DESCRIPTION .DESCRIPTION
This script removes the content of the recycle bin folder permanently. This PowerShell script removes the content of the recycle bin folder permanently.
NOTE: this cannot be undo! IMPORTANT NOTE: this cannot be undo!
.EXAMPLE .EXAMPLE
PS> ./clear-recycle-bin PS> ./clear-recycle-bin
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Clones well-known Git repositories into a folder Clones well-known Git repositories into a folder
.DESCRIPTION .DESCRIPTION
This script clones well-known Git repositories into a folder. This PowerShell script clones well-known Git repositories into a folder.
.PARAMETER folder .PARAMETER folder
Specifies the target folder Specifies the target folder
.EXAMPLE .EXAMPLE
PS> ./clone-repos C:\Repos PS> ./clone-repos C:\Repos
.NOTES
Author: Markus Fleschutz / License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$FolderPath = "$PWD") param([string]$FolderPath = "$PWD")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the calculator application Closes the calculator application
.DESCRIPTION .DESCRIPTION
This script closes the calculator application gracefully. This PowerShell script closes the calculator application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-calculator PS> ./close-calculator
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im Calculator.exe /f /t TaskKill /im Calculator.exe /f /t

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Chrome browser Closes the Chrome browser
.DESCRIPTION .DESCRIPTION
This script closes the Google Chrome Web browser gracefully. This PowerShell script closes the Google Chrome Web browser gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-chrome PS> ./close-chrome
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome" & "$PSScriptRoot/close-program.ps1" "Google Chrome" "chrome" "chrome"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes Microsoft's Cortana application Closes Microsoft's Cortana application
.DESCRIPTION .DESCRIPTION
This script closes Microsoft's Cortana application gracefully. This PowerShell script closes Microsoft's Cortana application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-cortana PS> ./close-cortana
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana" & "$PSScriptRoot/close-program.ps1" "Cortana" "Cortana" "Cortana"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Edge browser Closes the Edge browser
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft Edge Web browser gracefully. This PowerShell script closes the Microsoft Edge Web browser gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-edge PS> ./close-edge
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im msedge.exe /f /t TaskKill /im msedge.exe /f /t

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the File Explorer Closes the File Explorer
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft File Explorer application gracefully. This PowerShell script closes the Microsoft File Explorer application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-file-explorer PS> ./close-file-explorer
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
(New-Object -ComObject Shell.Application).Windows() | %{$_.quit()} (New-Object -ComObject Shell.Application).Windows() | %{$_.quit()}

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Firefox browser Closes the Firefox browser
.DESCRIPTION .DESCRIPTION
This script closes the Mozilla Firefox Web browser gracefully. This PowerShell script closes the Mozilla Firefox Web browser gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-firefox PS> ./close-firefox
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox" & "$PSScriptRoot/close-program.ps1" "Mozilla Firefox" "firefox" "firefox"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Git Extensions app Closes the Git Extensions app
.DESCRIPTION .DESCRIPTION
This script closes the Git Extensions application gracefully. This PowerShell script closes the Git Extensions application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-git-extensions PS> ./close-git-extensions
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im GitExtensions.exe TaskKill /im GitExtensions.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Magnifier Closes the Magnifier
.DESCRIPTION .DESCRIPTION
This script closes the Windows Screen Magnifier application gracefully. This PowerShell script closes the Windows Screen Magnifier application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-magnifier PS> ./close-magnifier
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
tskill magnify tskill magnify

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Microsoft Paint app Closes the Microsoft Paint app
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft Paint application gracefully. This PowerShell script closes the Microsoft Paint application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-microsoft-paint PS> ./close-microsoft-paint
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im mspaint.exe TaskKill /im mspaint.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Microsoft Store app Closes the Microsoft Store app
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft Store application gracefully. This PowerShell script closes the Microsoft Store application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-microsoft-store PS> ./close-microsoft-store
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im WinStore.App.exe /f /t TaskKill /im WinStore.App.exe /f /t

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Netflix app Closes the Netflix app
.DESCRIPTION .DESCRIPTION
This script closes the Netflix application gracefully. This PowerShell script closes the Netflix application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-netflix PS> ./close-netflix
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker" & "$PSScriptRoot/close-program.ps1" "Netflix" "ApplicationFrameHost" "RuntimeBroker"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Notepad app Closes the Notepad app
.DESCRIPTION .DESCRIPTION
This script closes the Notepad application gracefully. This PowerShell script closes the Notepad application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-note-pad PS> ./close-note-pad
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Notepad" "notepad" "notepad" & "$PSScriptRoot/close-program.ps1" "Notepad" "notepad" "notepad"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes OBS Studio Closes OBS Studio
.DESCRIPTION .DESCRIPTION
This script closes the OBS Studio application gracefully. This PowerShell script closes the OBS Studio application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-obs-studio PS> ./close-obs-studio
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im obs64.exe TaskKill /im obs64.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the OneCalendar app Closes the OneCalendar app
.DESCRIPTION .DESCRIPTION
This script closes the OneCalendar application gracefully. This PowerShell script closes the OneCalendar application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-one-calendar PS> ./close-one-calendar
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /f /im CalendarApp.Gui.Win10.exe TaskKill /f /im CalendarApp.Gui.Win10.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Microsoft Outlook app Closes the Microsoft Outlook app
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft Outlook email application gracefully. This PowerShell script closes the Microsoft Outlook email application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-outlook PS> ./close-outlook
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im outlook.exe TaskKill /im outlook.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Paint 3D app Closes the Paint 3D app
.DESCRIPTION .DESCRIPTION
This script closes the Paint 3D application gracefully. This PowerShell script closes the Paint 3D application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-paint-3d PS> ./close-paint-3d
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im PaintStudio.View.exe /f TaskKill /im PaintStudio.View.exe /f

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Closes a program's processes Closes a program's processes
.DESCRIPTION .DESCRIPTION
This script closes a program's processes gracefully. This PowerShell script closes a program's processes gracefully.
.PARAMETER FullProgramName .PARAMETER FullProgramName
Specifies the full program name Specifies the full program name
.PARAMETER ProgramName .PARAMETER ProgramName
@ -11,10 +11,10 @@
Specifies the program alias name Specifies the program alias name
.EXAMPLE .EXAMPLE
PS> ./close-program "Google Chrome" "chrome.exe" PS> ./close-program "Google Chrome" "chrome.exe"
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$FullProgramName = "", [string]$ProgramName = "", [string]$ProgramAliasName = "") param([string]$FullProgramName = "", [string]$ProgramName = "", [string]$ProgramAliasName = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Serenade.ai application Closes the Serenade.ai application
.DESCRIPTION .DESCRIPTION
This script closes the Serenade.ai application gracefully. This PowerShell script closes the Serenade.ai application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-serenade PS> ./close-serenade
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Serenade.ai" "serenade" "" & "$PSScriptRoot/close-program.ps1" "Serenade.ai" "serenade" ""

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Snipping Tool Closes the Snipping Tool
.DESCRIPTION .DESCRIPTION
This script closes the Snipping Tool application gracefully. This PowerShell script closes the Snipping Tool application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-snipping-tool PS> ./close-snipping-tool
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Snipping Tool" "SnippingTool.exe" "" & "$PSScriptRoot/close-program.ps1" "Snipping Tool" "SnippingTool.exe" ""

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Spotify app Closes the Spotify app
.DESCRIPTION .DESCRIPTION
This script closes the Spotify application gracefully. This PowerShell script closes the Spotify application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-spotify PS> ./close-spotify
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Spotify" "spotify" "" & "$PSScriptRoot/close-program.ps1" "Spotify" "spotify" ""

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Task Manager Closes the Task Manager
.DESCRIPTION .DESCRIPTION
This script closes the Task Manager application gracefully. This PowerShell script closes the Task Manager application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-task-manager PS> ./close-task-manager
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
tskill taskmgr tskill taskmgr

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the 3D-Viewer app Closes the 3D-Viewer app
.DESCRIPTION .DESCRIPTION
This script closes the 3D-Viewer application gracefully. This PowerShell script closes the 3D-Viewer application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-three-d-viewer PS> ./close-three-d-viewer
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im 3DViewer.exe /f TaskKill /im 3DViewer.exe /f

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Thunderbird app Closes the Thunderbird app
.DESCRIPTION .DESCRIPTION
This script closes the Mozilla Thunderbird email application gracefully. This PowerShell script closes the Mozilla Thunderbird email application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-thunderbird PS> ./close-thunderbird
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im thunderbird.exe TaskKill /im thunderbird.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Visual Studio app Closes the Visual Studio app
.DESCRIPTION .DESCRIPTION
This script closes the Microsoft Visual Studio application gracefully. This PowerShell script closes the Microsoft Visual Studio application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-visual-studio PS> ./close-visual-studio
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
TaskKill /im devenv.exe TaskKill /im devenv.exe

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the VLC media player application Closes the VLC media player application
.DESCRIPTION .DESCRIPTION
This script closes the VLC media player application gracefully. This PowerShell script closes the VLC media player application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-vlc PS> ./close-vlc
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc" & "$PSScriptRoot/close-program.ps1" "VLC media player" "vlc" "vlc"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Closes the Windows Terminal app Closes the Windows Terminal app
.DESCRIPTION .DESCRIPTION
This script closes the Windows Terminal application gracefully. This PowerShell script closes the Windows Terminal application gracefully.
.EXAMPLE .EXAMPLE
PS> ./close-windows-terminal PS> ./close-windows-terminal
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
& "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal" & "$PSScriptRoot/close-program.ps1" "Windows Terminal" "WindowsTerminal" "WindowsTerminal"

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Replies to "Come on" Replies to "Come on"
.DESCRIPTION .DESCRIPTION
This script replies to 'Come on' by text-to-speech (TTS). This PowerShell script replies to 'Come on' by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./come-on PS> ./come-on
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
$Reply = "I'm sorry.", "I'm so sorry.", "Mea culpa!" | Get-Random $Reply = "I'm sorry.", "I'm so sorry.", "Mea culpa!" | Get-Random

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Configures the user settings for Git Configures the user settings for Git
.DESCRIPTION .DESCRIPTION
This script configures the user settings for Git. This PowerShell script configures the user settings for Git.
.PARAMETER FullName .PARAMETER FullName
Specifies the user's full name Specifies the user's full name
.PARAMETER EmailAddress .PARAMETER EmailAddress
@ -11,10 +11,10 @@
Specifies the user's favorite text editor Specifies the user's favorite text editor
.EXAMPLE .EXAMPLE
PS> ./configure-git PS> ./configure-git
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$FullName = "", [string]$EmailAddress = "", [string]$FavoriteEditor = "") param([string]$FullName = "", [string]$EmailAddress = "", [string]$FavoriteEditor = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS .SYNOPSIS
Connects to the VPN Connects to the VPN
.DESCRIPTION .DESCRIPTION
This script tries to connect to the VPN. This PowerShell script tries to connect to the VPN.
.EXAMPLE .EXAMPLE
PS> ./connect-vpn PS> ./connect-vpn
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz · License: CC0 Author: Markus Fleschutz / License: CC0
#> #>
try { try {

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Converts a .CSV file into a text file Converts a .CSV file into a text file
.DESCRIPTION .DESCRIPTION
This script converts a .CSV file into a text file. This PowerShell script converts a .CSV file into a text file.
.PARAMETER Path .PARAMETER Path
Specifies the path to the .CSV file Specifies the path to the .CSV file
.EXAMPLE .EXAMPLE
PS> ./convert-csv2txt salaries.csv PS> ./convert-csv2txt salaries.csv
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Path = "") param([string]$Path = "")

View File

@ -2,7 +2,7 @@
.SYNOPSIS .SYNOPSIS
Convert a MySQL database table to a .CSV file Convert a MySQL database table to a .CSV file
.DESCRIPTION .DESCRIPTION
This script converts a MySQL database table to a .CSV file. This PowerShell script converts a MySQL database table to a .CSV file.
.PARAMETER server .PARAMETER server
Specifies the server's hostname or IP address Specifies the server's hostname or IP address
.PARAMETER database .PARAMETER database
@ -15,10 +15,10 @@
Specifies the SQL query Specifies the SQL query
.EXAMPLE .EXAMPLE
PS> ./convert-mysql2csv PS> ./convert-mysql2csv
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>

View File

@ -2,15 +2,15 @@
.SYNOPSIS .SYNOPSIS
Converts PowerShell scripts to batch files Converts PowerShell scripts to batch files
.DESCRIPTION .DESCRIPTION
This script converts one or more PowerShell scripts to .bat batch files. This PowerShell script converts one or more PowerShell scripts to .bat batch files.
.PARAMETER Filepattern .PARAMETER Filepattern
Specifies the file pattern Specifies the file pattern
.EXAMPLE .EXAMPLE
PS> ./convert-ps2bat *.ps1 PS> ./convert-ps2bat *.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#> #>
param([string]$Filepattern = "") param([string]$Filepattern = "")

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