mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 01:48:20 +02:00
Update manuals in Docs/
This commit is contained in:
parent
fa7823858f
commit
a8ce6ede69
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *add-firewall-rules.ps1*
|
## The *add-firewall-rules.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *add-memo.ps1*
|
## The *add-memo.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script adds the given memo text to $HOME/Memos.csv.
|
This PowerShell script adds the given memo text to $HOME/Memos.csv.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *alert.ps1*
|
## The *alert.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script handles and escalates the given alert message.
|
This PowerShell script handles and escalates the given alert message.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *build-repo.ps1*
|
## The *build-repo.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script supports building with cmake, configure, autogen, Imakefile and Makefile.
|
This PowerShell script supports building with cmake, configure, autogen, Imakefile and Makefile.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *build-repos.ps1*
|
## The *build-repos.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script builds all Git repositories in a folder.
|
This PowerShell script builds all Git repositories in a folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-autostart.ps1*
|
## The *cd-autostart.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's autostart folder.
|
This PowerShell script changes the working directory to the user's autostart folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-desktop.ps1*
|
## The *cd-desktop.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's desktop folder.
|
This PowerShell script changes the working directory to the user's desktop folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-docs.ps1*
|
## The *cd-docs.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the documents folder.
|
This PowerShell script changes the working directory to the documents folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-downloads.ps1*
|
## The *cd-downloads.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's downloads folder.
|
This PowerShell script changes the working directory to the user's downloads folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-dropbox.ps1*
|
## The *cd-dropbox.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's Dropbox folder.
|
This PowerShell script changes the working directory to the user's Dropbox folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-fonts.ps1*
|
## The *cd-fonts.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the fonts folder.
|
This PowerShell script changes the working directory to the fonts folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-home.ps1*
|
## The *cd-home.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's home directory.
|
This PowerShell script changes the working directory to the user's home directory.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-music.ps1*
|
## The *cd-music.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's music folder.
|
This PowerShell script changes the working directory to the user's music folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-onedrive.ps1*
|
## The *cd-onedrive.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's OneDrive folder.
|
This PowerShell script changes the working directory to the user's OneDrive folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-pics.ps1*
|
## The *cd-pics.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's pictures folder.
|
This PowerShell script changes the working directory to the user's pictures folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-recycle-bin.ps1*
|
## The *cd-recycle-bin.ps1* PowerShell Script
|
||||||
|
|
||||||
cd-recycle-bin.ps1
|
cd-recycle-bin.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-repos.ps1*
|
## The *cd-repos.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-root.ps1*
|
## The *cd-root.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
|
This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-screenshots.ps1*
|
## The *cd-screenshots.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's screenshots folder.
|
This PowerShell script changes the working directory to the user's screenshots folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-scripts.ps1*
|
## The *cd-scripts.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-ssh.ps1*
|
## The *cd-ssh.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's SSH folder.
|
This PowerShell script changes the working directory to the user's SSH folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-temp.ps1*
|
## The *cd-temp.ps1* PowerShell Script
|
||||||
|
|
||||||
cd-temp.ps1
|
cd-temp.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-up.ps1*
|
## The *cd-up.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to one directory level up.
|
This PowerShell script changes the working directory to one directory level up.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-up2.ps1*
|
## The *cd-up2.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to two directory level up.
|
This PowerShell script changes the working directory to two directory level up.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-up3.ps1*
|
## The *cd-up3.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to three directory levels up.
|
This PowerShell script changes the working directory to three directory levels up.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-up4.ps1*
|
## The *cd-up4.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to four directory levels up.
|
This PowerShell script changes the working directory to four directory levels up.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-users.ps1*
|
## The *cd-users.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the users directory.
|
This PowerShell script changes the working directory to the users directory.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-videos.ps1*
|
## The *cd-videos.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the user's videos folder.
|
This PowerShell script changes the working directory to the user's videos folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *cd-windows.ps1*
|
## The *cd-windows.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script changes the working directory to the Windows directory.
|
This PowerShell script changes the working directory to the Windows directory.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *change-wallpaper.ps1*
|
## The *change-wallpaper.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ function GetTempDir {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Just a second..."
|
& "$PSScriptRoot/speak-english.ps1" "Just a second..."
|
||||||
|
|
||||||
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
$Path = "$(GetTempDir)/next_wallpaper.jpg"
|
||||||
& wget -O $Path "https://source.unsplash.com/3840x2160?$Category"
|
& wget -O $Path "https://source.unsplash.com/3840x2160?$Category"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-bios.ps1*
|
## The *check-bios.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script queries BIOS details and prints it.
|
This PowerShell script queries BIOS details and prints it.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-cpu.ps1*
|
## The *check-cpu.ps1* PowerShell Script
|
||||||
|
|
||||||
check-cpu.ps1
|
check-cpu.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-day.ps1*
|
## The *check-day.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
try {
|
try {
|
||||||
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
|
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
|
||||||
$Weekday = (Get-Date -format "dddd")
|
$Weekday = (Get-Date -format "dddd")
|
||||||
& "$PSScriptRoot/give-reply.ps1" "It's $Weekday."
|
& "$PSScriptRoot/speak-english.ps1" "It's $Weekday."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-dns-server.ps1*
|
## The *check-dns-server.ps1* PowerShell Script
|
||||||
|
|
||||||
check-dns-server.ps1
|
check-dns-server.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-dns.ps1*
|
## The *check-dns.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script measures and prints the DNS resolution speed by using 200 frequently used domain names.
|
This PowerShell script measures and prints the DNS resolution speed by using 200 frequently used domain names.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-drive-space.ps1*
|
## The *check-drive-space.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ try {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Drive $Drive has $Free GB left ($Total GB total)"
|
& "$PSScriptRoot/speak-english.ps1" "Drive $Drive has $Free GB left ($Total GB total)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-drives.ps1*
|
## The *check-drives.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks all drives for free space left.
|
This PowerShell script checks all drives for free space left.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-dusk.ps1*
|
## The *check-dusk.ps1* PowerShell Script
|
||||||
|
|
||||||
check-dusk.ps1
|
check-dusk.ps1
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ try {
|
|||||||
$TimeSpan = TimeSpanToString($Now - $Dusk)
|
$TimeSpan = TimeSpanToString($Now - $Dusk)
|
||||||
$Reply = "Dusk was $TimeSpan ago at $($Dusk.ToShortTimeString())."
|
$Reply = "Dusk was $TimeSpan ago at $($Dusk.ToShortTimeString())."
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-easter-sunday.ps1*
|
## The *check-easter-sunday.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -43,10 +43,10 @@ try {
|
|||||||
$Easter = [Datetime]("04/17/2022")
|
$Easter = [Datetime]("04/17/2022")
|
||||||
if ($Now -lt $Easter) {
|
if ($Now -lt $Easter) {
|
||||||
$Diff = $Easter – $Now
|
$Diff = $Easter – $Now
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Easter Sunday on April 17 is in $($Diff.Days) days."
|
& "$PSScriptRoot/speak-english.ps1" "Easter Sunday on April 17 is in $($Diff.Days) days."
|
||||||
} else {
|
} else {
|
||||||
$Diff = $Now - $Easter
|
$Diff = $Now - $Easter
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Easter Sunday on April 17 was $($Diff.Days) days ago."
|
& "$PSScriptRoot/speak-english.ps1" "Easter Sunday on April 17 was $($Diff.Days) days ago."
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-file-system.ps1*
|
## The *check-file-system.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ try {
|
|||||||
$Result = repair-volume -driveLetter $Drive -scan
|
$Result = repair-volume -driveLetter $Drive -scan
|
||||||
if ($Result -ne "NoErrorsFound") { throw "'repair-volume' failed" }
|
if ($Result -ne "NoErrorsFound") { throw "'repair-volume' failed" }
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "File system on drive $Drive is clean."
|
& "$PSScriptRoot/speak-english.ps1" "File system on drive $Drive is clean."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-gpu.ps1*
|
## The *check-gpu.ps1* PowerShell Script
|
||||||
|
|
||||||
check-gpu.ps1
|
check-gpu.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-health.ps1*
|
## The *check-health.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks some health parameter of the local computer.
|
This PowerShell script checks some health parameter of the local computer.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-independence-day.ps1*
|
## The *check-independence-day.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -43,10 +43,10 @@ try {
|
|||||||
$IndependenceDay = [Datetime]("07/04/" + $Now.Year)
|
$IndependenceDay = [Datetime]("07/04/" + $Now.Year)
|
||||||
if ($Now -lt $IndependenceDay) {
|
if ($Now -lt $IndependenceDay) {
|
||||||
$Diff = $IndependenceDay – $Now
|
$Diff = $IndependenceDay – $Now
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Independence Day on July 4th is in $($Diff.Days) days."
|
& "$PSScriptRoot/speak-english.ps1" "Independence Day on July 4th is in $($Diff.Days) days."
|
||||||
} else {
|
} else {
|
||||||
$Diff = $Now - $IndependenceDay
|
$Diff = $Now - $IndependenceDay
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Independence Day on July 4th was $($Diff.Days) days ago."
|
& "$PSScriptRoot/speak-english.ps1" "Independence Day on July 4th was $($Diff.Days) days ago."
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-ipv4-address.ps1*
|
## The *check-ipv4-address.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the given IPv4 address for validity.
|
This PowerShell script checks the given IPv4 address for validity.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-ipv6-address.ps1*
|
## The *check-ipv6-address.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the given IPv6 address for validity
|
This PowerShell script checks the given IPv6 address for validity
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-iss-position.ps1*
|
## The *check-iss-position.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
try {
|
try {
|
||||||
$ISS = (Invoke-WebRequest "http://api.open-notify.org/iss-now.json" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
$ISS = (Invoke-WebRequest "http://api.open-notify.org/iss-now.json" -userAgent "curl" -useBasicParsing).Content | ConvertFrom-Json
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "The International Space Station is currently at $($ISS.iss_position.longitude)° longitude and $($ISS.iss_position.latitude)° latitude."
|
& "$PSScriptRoot/speak-english.ps1" "The International Space Station is currently at $($ISS.iss_position.longitude)° longitude and $($ISS.iss_position.latitude)° latitude."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-mac-address.ps1*
|
## The *check-mac-address.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-midnight.ps1*
|
## The *check-midnight.ps1* PowerShell Script
|
||||||
|
|
||||||
check-midnight.ps1
|
check-midnight.ps1
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ try {
|
|||||||
$TimeSpan = TimeSpanToString($Midnight - $Now)
|
$TimeSpan = TimeSpanToString($Midnight - $Now)
|
||||||
$Reply = "Midnight is in $TimeSpan."
|
$Reply = "Midnight is in $TimeSpan."
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-month.ps1*
|
## The *check-month.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
try {
|
try {
|
||||||
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
|
[system.threading.thread]::currentthread.currentculture=[system.globalization.cultureinfo]"en-US"
|
||||||
$MonthName = (Get-Date -UFormat %B)
|
$MonthName = (Get-Date -UFormat %B)
|
||||||
& "$PSScriptRoot/give-reply.ps1" "It's $MonthName."
|
& "$PSScriptRoot/speak-english.ps1" "It's $MonthName."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-moon-phase.ps1*
|
## The *check-moon-phase.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ try {
|
|||||||
} else { $Reply += ", last new moon was $MoonAge days ago"
|
} else { $Reply += ", last new moon was $MoonAge days ago"
|
||||||
}
|
}
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-new-year.ps1*
|
## The *check-new-year.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -43,9 +43,9 @@ try {
|
|||||||
$NewYear = [Datetime]("12/31/" + $Now.Year)
|
$NewYear = [Datetime]("12/31/" + $Now.Year)
|
||||||
$Days = ($NewYear – $Now).Days + 1
|
$Days = ($NewYear – $Now).Days + 1
|
||||||
if ($Days -gt 1) {
|
if ($Days -gt 1) {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "New Year is in $Days days."
|
& "$PSScriptRoot/speak-english.ps1" "New Year is in $Days days."
|
||||||
} elseif ($Days -eq 1) {
|
} elseif ($Days -eq 1) {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "New Year is tomorrow."
|
& "$PSScriptRoot/speak-english.ps1" "New Year is tomorrow."
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-noon.ps1*
|
## The *check-noon.ps1* PowerShell Script
|
||||||
|
|
||||||
check-noon.ps1
|
check-noon.ps1
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ try {
|
|||||||
$TimeSpan = TimeSpanToString($Now - $Noon)
|
$TimeSpan = TimeSpanToString($Now - $Noon)
|
||||||
$Reply = "Noon was $TimeSpan ago."
|
$Reply = "Noon was $TimeSpan ago."
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$Reply"
|
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-operating-system.ps1*
|
## The *check-operating-system.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script queries and lists operating system details.
|
This PowerShell script queries and lists operating system details.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-outlook.ps1*
|
## The *check-outlook.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the inbox of Outlook for new/unread mails.
|
This PowerShell script checks the inbox of Outlook for new/unread mails.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-pending-reboot.ps1*
|
## The *check-pending-reboot.ps1* PowerShell Script
|
||||||
|
|
||||||
check-pending-reboot.ps1
|
check-pending-reboot.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-ping.ps1*
|
## The *check-ping.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the ping latency from the local computer to some Internet hosts.
|
This PowerShell script checks the ping latency from the local computer to some Internet hosts.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-ram.ps1*
|
## The *check-ram.ps1* PowerShell Script
|
||||||
|
|
||||||
check-ram.ps1
|
check-ram.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-repo.ps1*
|
## The *check-repo.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script verifies the integrity of a local Git repository.
|
This PowerShell script verifies the integrity of a local Git repository.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-santa.ps1*
|
## The *check-santa.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ try {
|
|||||||
$Now = [DateTime]::Now
|
$Now = [DateTime]::Now
|
||||||
$Diff = [Datetime]("12/06/" + $Now.Year) – $Now
|
$Diff = [Datetime]("12/06/" + $Now.Year) – $Now
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Saint Nicholas Day is in $($Diff.Days) days."
|
& "$PSScriptRoot/speak-english.ps1" "Saint Nicholas Day is in $($Diff.Days) days."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-smart-devices.ps1*
|
## The *check-smart-devices.ps1* PowerShell Script
|
||||||
|
|
||||||
check-smart-devices.ps1
|
check-smart-devices.ps1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-subnet-mask.ps1*
|
## The *check-subnet-mask.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the given subnet mask for validity.
|
This PowerShell script checks the given subnet mask for validity.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-swap-space.ps1*
|
## The *check-swap-space.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the free swap space.
|
This PowerShell script checks the free swap space.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-symlinks.ps1*
|
## The *check-symlinks.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks every symbolic link in a folder (including subfolders).
|
This PowerShell script checks every symbolic link in a folder (including subfolders).
|
||||||
It returns the number of broken symlinks as exit value.
|
It returns the number of broken symlinks as exit value.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-time-zone.ps1*
|
## The *check-time-zone.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script determines and prints the current time zone.
|
This PowerShell script determines and prints the current time zone.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-uptime.ps1*
|
## The *check-uptime.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script queries and prints the uptime.
|
This PowerShell script queries and prints the uptime.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-vpn.ps1*
|
## The *check-vpn.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script queries and prints the status of any VPN connection.
|
This PowerShell script queries and prints the status of any VPN connection.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-weather.ps1*
|
## The *check-weather.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the current weather report.
|
This PowerShell script checks the current weather report.
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ try {
|
|||||||
$Area = $Weather.nearest_area.areaName.value
|
$Area = $Weather.nearest_area.areaName.value
|
||||||
$Region = $Weather.nearest_area.region.value
|
$Region = $Weather.nearest_area.region.value
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$($Temp)°C, $($Precip)mm rain, $($Humidity)% humidity, $($WindSpeed)km/h wind from $WindDir with $($Clouds)% clouds and $($Visib)km visibility at $Area ($Region)."
|
& "$PSScriptRoot/speak-english.ps1" "$($Temp)°C, $($Precip)mm rain, $($Humidity)% humidity, $($WindSpeed)km/h wind from $WindDir with $($Clouds)% clouds and $($Visib)km visibility at $Area ($Region)."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-week.ps1*
|
## The *check-week.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
@ -14,7 +14,6 @@ check-week.ps1 [<CommonParameters>]
|
|||||||
## Example
|
## Example
|
||||||
```powershell
|
```powershell
|
||||||
PS> ./check-week
|
PS> ./check-week
|
||||||
✔️ It's week #4.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -33,7 +32,6 @@ https://github.com/fleschutz/PowerShell
|
|||||||
This PowerShell 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.
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -41,8 +39,8 @@ https://github.com/fleschutz/PowerShell
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$WeekNo = (get-date -UFormat %V)
|
$WeekNo = (Get-Date -UFormat %V)
|
||||||
& "$PSScriptRoot/give-reply.ps1" "It's week #$WeekNo."
|
& "$PSScriptRoot/speak-english.ps1" "It's week #$WeekNo."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-wind.ps1*
|
## The *check-wind.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script 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).
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ try {
|
|||||||
$Area = $Weather.nearest_area.areaName.value
|
$Area = $Weather.nearest_area.areaName.value
|
||||||
$Region = $Weather.nearest_area.region.value
|
$Region = $Weather.nearest_area.region.value
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$($WindSpeed)km/h wind from $WindDir at $Area ($Region)."
|
& "$PSScriptRoot/speak-english.ps1" "$($WindSpeed)km/h wind from $WindDir at $Area ($Region)."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-windows-system-files.ps1*
|
## The *check-windows-system-files.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *check-xml-file.ps1*
|
## The *check-xml-file.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script checks the given XML file for validity.
|
This PowerShell script checks the given XML file for validity.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *clean-repo.ps1*
|
## The *clean-repo.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script deletes all untracked files and folders in a Git repository (including submodules).
|
This PowerShell script deletes all untracked files and folders in a Git repository (including submodules).
|
||||||
NOTE: To be used with care! This cannot be undone!
|
NOTE: To be used with care! This cannot be undone!
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *clean-repos.ps1*
|
## The *clean-repos.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell 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).
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *clear-dns-cache.ps1*
|
## The *clear-dns-cache.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script clears the DNS client cache of the local computer.
|
This PowerShell script clears the DNS client cache of the local computer.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *clear-recycle-bin.ps1*
|
## The *clear-recycle-bin.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script removes the content of the recycle bin folder permanently.
|
This PowerShell script removes the content of the recycle bin folder permanently.
|
||||||
IMPORTANT NOTE: this cannot be undo!
|
IMPORTANT NOTE: this cannot be undo!
|
||||||
@ -44,7 +44,7 @@ try {
|
|||||||
Clear-RecycleBin -Confirm:$false
|
Clear-RecycleBin -Confirm:$false
|
||||||
if ($lastExitCode -ne "0") { throw "'Clear-RecycleBin' failed" }
|
if ($lastExitCode -ne "0") { throw "'Clear-RecycleBin' failed" }
|
||||||
|
|
||||||
& "$PSScriptRoot/give-reply.ps1" "It's clean now."
|
& "$PSScriptRoot/speak-english.ps1" "It's clean now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *clone-repos.ps1*
|
## The *clone-repos.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script clones well-known Git repositories into a folder.
|
This PowerShell script clones well-known Git repositories into a folder.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-calculator.ps1*
|
## The *close-calculator.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the calculator application gracefully.
|
This PowerShell script closes the calculator application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im Calculator.exe /f /t
|
TaskKill /im Calculator.exe /f /t
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, calculator isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, calculator isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-chrome.ps1*
|
## The *close-chrome.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Google Chrome Web browser gracefully.
|
This PowerShell script closes the Google Chrome Web browser gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-cortana.ps1*
|
## The *close-cortana.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes Microsoft's Cortana application gracefully.
|
This PowerShell script closes Microsoft's Cortana application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-edge.ps1*
|
## The *close-edge.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft Edge Web browser gracefully.
|
This PowerShell script closes the Microsoft Edge Web browser gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im msedge.exe /f /t
|
TaskKill /im msedge.exe /f /t
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Microsoft Edge isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Microsoft Edge isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-file-explorer.ps1*
|
## The *close-file-explorer.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft File Explorer application gracefully.
|
This PowerShell script closes the Microsoft File Explorer application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-firefox.ps1*
|
## The *close-firefox.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Mozilla Firefox Web browser gracefully.
|
This PowerShell script closes the Mozilla Firefox Web browser gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-git-extensions.ps1*
|
## The *close-git-extensions.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Git Extensions application gracefully.
|
This PowerShell script closes the Git Extensions application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im GitExtensions.exe
|
TaskKill /im GitExtensions.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Git Extensions isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Git Extensions isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-magnifier.ps1*
|
## The *close-magnifier.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Windows Screen Magnifier application gracefully.
|
This PowerShell script closes the Windows Screen Magnifier application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-microsoft-paint.ps1*
|
## The *close-microsoft-paint.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft Paint application gracefully.
|
This PowerShell script closes the Microsoft Paint application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im mspaint.exe
|
TaskKill /im mspaint.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Microsoft Paint isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Microsoft Paint isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-microsoft-store.ps1*
|
## The *close-microsoft-store.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft Store application gracefully.
|
This PowerShell script closes the Microsoft Store application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im WinStore.App.exe /f /t
|
TaskKill /im WinStore.App.exe /f /t
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Microsoft Store isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Microsoft Store isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-netflix.ps1*
|
## The *close-netflix.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Netflix application gracefully.
|
This PowerShell script closes the Netflix application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-note-pad.ps1*
|
## The *close-note-pad.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Notepad application gracefully.
|
This PowerShell script closes the Notepad application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-obs-studio.ps1*
|
## The *close-obs-studio.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the OBS Studio application gracefully.
|
This PowerShell script closes the OBS Studio application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im obs64.exe
|
TaskKill /im obs64.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, OBS Studio isn't running"
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, OBS Studio isn't running"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-one-calendar.ps1*
|
## The *close-one-calendar.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the OneCalendar application gracefully.
|
This PowerShell script closes the OneCalendar application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /f /im CalendarApp.Gui.Win10.exe
|
TaskKill /f /im CalendarApp.Gui.Win10.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, OneCalendar isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, OneCalendar isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-outlook.ps1*
|
## The *close-outlook.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft Outlook email application gracefully.
|
This PowerShell script closes the Microsoft Outlook email application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im outlook.exe
|
TaskKill /im outlook.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Microsoft Outlook isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Microsoft Outlook isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-paint-three-d.ps1*
|
## The *close-paint-three-d.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Paint 3D application gracefully.
|
This PowerShell script closes the Paint 3D application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im PaintStudio.View.exe /f
|
TaskKill /im PaintStudio.View.exe /f
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Paint 3D isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Paint 3D isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-program.ps1*
|
## The *close-program.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes a program's processes gracefully.
|
This PowerShell script closes a program's processes gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-serenade.ps1*
|
## The *close-serenade.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Serenade.ai application gracefully.
|
This PowerShell script closes the Serenade.ai application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-snipping-tool.ps1*
|
## The *close-snipping-tool.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Snipping Tool application gracefully.
|
This PowerShell script closes the Snipping Tool application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-spotify.ps1*
|
## The *close-spotify.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Spotify application gracefully.
|
This PowerShell script closes the Spotify application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-task-manager.ps1*
|
## The *close-task-manager.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Task Manager application gracefully.
|
This PowerShell script closes the Task Manager application gracefully.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-three-d-viewer.ps1*
|
## The *close-three-d-viewer.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the 3D-Viewer application gracefully.
|
This PowerShell script closes the 3D-Viewer application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im 3DViewer.exe /f
|
TaskKill /im 3DViewer.exe /f
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, 3D Viewer isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, 3D Viewer isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-thunderbird.ps1*
|
## The *close-thunderbird.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Mozilla Thunderbird email application gracefully.
|
This PowerShell script closes the Mozilla Thunderbird email application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im thunderbird.exe
|
TaskKill /im thunderbird.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Mozilla Thunderbird isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Mozilla Thunderbird isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## The PowerShell Script *close-visual-studio.ps1*
|
## The *close-visual-studio.ps1* PowerShell Script
|
||||||
|
|
||||||
This PowerShell script closes the Microsoft Visual Studio application gracefully.
|
This PowerShell script closes the Microsoft Visual Studio application gracefully.
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ https://github.com/fleschutz/PowerShell
|
|||||||
|
|
||||||
TaskKill /im devenv.exe
|
TaskKill /im devenv.exe
|
||||||
if ($lastExitCode -ne "0") {
|
if ($lastExitCode -ne "0") {
|
||||||
& "$PSScriptRoot/give-reply.ps1" "Sorry, Visual Studio isn't running."
|
& "$PSScriptRoot/speak-english.ps1" "Sorry, Visual Studio isn't running."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user