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
Adds firewall rules for executables (needs admin rights)
.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
Specifies the path to the executables
.EXAMPLE
@ -13,7 +13,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

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

View File

@ -2,15 +2,15 @@
.SYNOPSIS
Builds a Git repository
.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
Specifies the path to the Git repository
.EXAMPLE
PS> ./build-repo C:\MyRepo
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param([string]$RepoDir = "$PWD")

View File

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

View File

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

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's desktop folder
.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
PS> ./cd-desktop
📂/home/markus/Desktop
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's documents folder
.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
PS> ./cd-docs
📂/home/markus/Documents
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's downloads folder
.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
PS> ./cd-downloads
📂/home/markus/Downloads
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's Dropbox folder
.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
PS> ./cd-dropbox
📂/home/markus/Dropbox
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's home directory
.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
PS> ./cd-home
📂/home/markus
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's music folder
.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
PS> ./cd-music
📂/home/markus/Music
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's OneDrive folder
.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
PS> ./cd-onedrive
📂/home/markus/OneDrive
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

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

View File

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

View File

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

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the PowerShell scripts folder
.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
PS> ./cd-scripts
📂/home/markus/PowerShell/Scripts
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's SSH folder
.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
PS> ./cd-ssh
📂/home/markus/.ssh
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

@ -2,14 +2,13 @@
.SYNOPSIS
Sets the working directory to one level up
.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
PS> .\cd-up
(one level up)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS
Sets the working directory to two directory levels up
.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
PS> ./cd-up2
(two levels up)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS
Sets the working directory to three directory levels up
.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
PS> ./cd-up3
(three levels up)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,13 @@
.SYNOPSIS
Sets the working directory to four directory levels up
.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
PS> ./cd-up4
(four levels up)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Sets the working directory to the user's videos folder
.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
PS> ./cd-videos
📂/home/markus/Videos
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Changes the wallpaper
.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
Specifies the photo category (beach, city, ...)
.EXAMPLE
PS> ./change-wallpaper
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>

View File

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

View File

@ -2,12 +2,12 @@
.SYNOPSIS
Determines the current date
.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
PS> ./check-date
It's Sunday, October 17, 2021
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Determines the current day
.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
PS> ./check-day
It's Sunday.
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Checks the DNS resolution
.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
PS> ./check-dns
DNS resolution is 11.8 domains per second
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the time of dusk
.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
PS> ./check-dusk
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the time until Easter Sunday
.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
PS> ./check-easter-sunday
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the file system of a drive (needs admin rights)
.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
Specifies the drive to check
.EXAMPLE
@ -11,7 +11,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the time until Independence Day
.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
PS> ./check-independence-day
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the ISS position
.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
PS> ./check-iss-position
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the given MAC address for validity
.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.
.PARAMETER MAC
Specifies the MAC address to check
@ -12,7 +12,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
param([string]$MAC = "")

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks for Midnight
.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
PS> ./check-midnight
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Gets the current month name
.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
PS> ./check-month
It's December.
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the Moon phase
.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
PS> ./check-moon-phase
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the time until New Year
.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
PS> ./check-new-year
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks for Noon
.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
PS> ./check-noon
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
function TimeSpanToString { param([TimeSpan]$Delta)

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Determines the exact OS version
.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
PS> ./check-operating-system
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the ping latency from the local computer to selected Internet hosts
.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
.PARAMETER hosts
Specifies the hosts to check (separated by comma)
@ -12,7 +12,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.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")

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Checks the time until Saint Nicholas Day
.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
PS> ./check-santa
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,17 +2,17 @@
.SYNOPSIS
Performs a selftest on your S.M.A.R.T. HDD/SSD devices.
.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.
.PARAMETER type
Specifies the type of selftest: either short (default) or long
.EXAMPLE
PS> ./check-smart-devices
short selftest started on S.M.A.R.T. device /dev/sda
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

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

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
Checks every symlink in a folder (including subfolders)
Checks every symlink in a folder
.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.
.PARAMETER folder
Specifies the path to the directory tree
@ -12,7 +12,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
param([string]$folder = "")

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Determines the current time
.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
PS> ./check-time
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Determines the uptime
.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
PS> ./check-uptime
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
try {

View File

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

View File

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

View File

@ -2,12 +2,12 @@
.SYNOPSIS
Determines the week number
.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
PS> ./check-week
It's week #4.
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the wind conditions
.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
Specifies the location to use (determined automatically per default)
.EXAMPLE
@ -10,7 +10,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
param([string]$location = "") # empty means determine automatically

View File

@ -2,14 +2,14 @@
.SYNOPSIS
Checks the validity of the Windows system files (requires admin rights)
.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
PS> ./check-windows-system-files
checked Windows system files
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz · License: CC0
Author: Markus Fleschutz / License: CC0
#>
#Requires -RunAsAdministrator

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,13 +2,13 @@
.SYNOPSIS
Replies to "Come on"
.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
PS> ./come-on
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
$Reply = "I'm sorry.", "I'm so sorry.", "Mea culpa!" | Get-Random

View File

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

View File

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

View File

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

View File

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

View File

@ -2,15 +2,15 @@
.SYNOPSIS
Converts PowerShell scripts to batch files
.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
Specifies the file pattern
.EXAMPLE
PS> ./convert-ps2bat *.ps1
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
#>
param([string]$Filepattern = "")

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