mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-15 09:26:43 +02:00
Change to UTF-8 BOM encoding
This commit is contained in:
parent
a75cb369f1
commit
daf4684c5c
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Converts a .CSV file into a text file
|
Converts a .CSV file into a text file
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Disconnect VPN
|
Disconnects the VPN
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script disconnects the active VPN connection.
|
This PowerShell script disconnects the active VPN connection.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Audacity installed successfully."
|
"Audacity installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Chocolatey (needs admin rights)
|
Installs Chocolatey (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -18,6 +18,6 @@ try {
|
|||||||
iwr https://community.chocolatey.org/install.ps1 -UseBasicParsing | iex
|
iwr https://community.chocolatey.org/install.ps1 -UseBasicParsing | iex
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Chrome
|
Installs Chrome
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Google Chrome installed successfully."
|
"Google Chrome installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs CrystalDiskInfo
|
Installs CrystalDiskInfo
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"CrystalDiskInfo installed successfully."
|
"CrystalDiskInfo installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs CrystalDiskMark
|
Installs CrystalDiskMark
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"CrystalDiskMark installed successfully."
|
"CrystalDiskMark installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Discord
|
Installs Discord
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Discord installed successfully."
|
"Discord installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Microsoft Edge
|
Installs Microsoft Edge
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Microsoft Edge installed successfully."
|
"Microsoft Edge installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Mozilla Firefox
|
Installs Mozilla Firefox
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Firefox installed successfully."
|
"Firefox installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Git Extensions
|
Installs Git Extensions
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Git Extensions installed successfully."
|
"Git Extensions installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Git for Windows installed successfully."
|
"Git for Windows installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs IrfanView
|
Installs IrfanView
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"IrfanView installed successfully."
|
"IrfanView installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Microsoft Teams
|
Installs Microsoft Teams
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Microsoft Teams installed successfully."
|
"Microsoft Teams installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Netflix
|
Installs Netflix
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Netflix installed successfully."
|
"Netflix installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"9 Zip installed successfuly."
|
"9 Zip installed successfuly."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs One Calendar
|
Installs One Calendar
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"One Calendar installed successfully."
|
"One Calendar installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Opera Browser
|
Installs Opera Browser
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Opera Browser installed successfully."
|
"Opera Browser installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Opera GX installed successfully."
|
"Opera GX installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Paint 3D
|
Installs Paint 3D
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Paint 3D installed successfully."
|
"Paint 3D installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Microsoft Powertoys
|
Installs Microsoft Powertoys
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Microsoft Powertoys installed successfully."
|
"Microsoft Powertoys installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Rufus
|
Installs Rufus
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Rufus installed successfully."
|
"Rufus installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Skype installed successfully."
|
"Skype installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Spotify installed successfully."
|
"Spotify installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Visual Studio Code installed successfully."
|
"Visual Studio Code installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Vivaldi
|
Installs Vivaldi
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Vivaldi installed successfully."
|
"Vivaldi installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs VLC
|
Installs VLC
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"VLC media player installed successfully."
|
"VLC media player installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Windows Terminal
|
Installs Windows Terminal
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Windows Terminal installed successfully."
|
"Windows Terminal installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Zoom
|
Installs Zoom
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Zoom installed successfully."
|
"Zoom installed successfully."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Lists the Fibonacci numbers
|
Lists the Fibonacci numbers
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Locks the desktop
|
Locks the desktop
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Minimizes all windows
|
Minimizes all windows
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Opens the VPN settings
|
Opens the VPN settings
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Sets the volume
|
Sets the volume
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Suspends the computer
|
Suspends the computer
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls CrystalDiskInfo
|
Uninstalls CrystalDiskInfo
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"CrystalDiskInfo is uninstalled now."
|
"CrystalDiskInfo is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls CrystalDiskMark
|
Uninstalls CrystalDiskMark
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"CrystalDiskMark is uninstalled now."
|
"CrystalDiskMark is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Discord
|
Uninstalls Discord
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Discord is uninstalled now."
|
"Discord is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Microsoft Edge
|
Uninstalls Microsoft Edge
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Microsoft Edge is uninstalled now."
|
"Microsoft Edge is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Mozilla Firefox
|
Uninstalls Mozilla Firefox
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Mozilla Firefox is uninstalled now."
|
"Mozilla Firefox is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Git Extensions
|
Uninstalls Git Extensions
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Git Extensions is uninstalled now."
|
"Git Extensions is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls IrfanView
|
Uninstalls IrfanView
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"IrfanView is uninstalled now."
|
"IrfanView is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Microsoft Teams
|
Uninstalls Microsoft Teams
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Microsoft Teams is uninstalled now."
|
"Microsoft Teams is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Netflix
|
Uninstalls Netflix
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Netflix is uninstalled now."
|
"Netflix is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls 9 ZIP
|
Uninstalls 9 ZIP
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,14 +12,14 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
& "$PSScriptRoot/_reply.ps1" "Uninstalling 9 ZIP, please wait..."
|
"Uninstalling 9 ZIP, please wait..."
|
||||||
|
|
||||||
& winget uninstall "9 ZIP - open rar, zip, 7zip, gzip"
|
& winget uninstall "9 ZIP - open rar, zip, 7zip, gzip"
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall 9 ZIP, is it installed?" }
|
if ($lastExitCode -ne "0") { throw "Can't uninstall 9 ZIP, is it installed?" }
|
||||||
|
|
||||||
& "$PSScriptRoot/_reply.ps1" "9 ZIP is uninstalled now."
|
"9 ZIP is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
& "$PSScriptRoot/_reply.ps1" "Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
c<#
|
c<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls One Calendar
|
Uninstalls One Calendar
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"One Calendar is uninstalled now."
|
"One Calendar is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Opera Browser
|
Uninstalls Opera Browser
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Opera Browser is uninstalled now."
|
"Opera Browser is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Opera GX
|
Uninstalls Opera GX
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Opera GX is uninstalled now."
|
"Opera GX is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Paint 3D
|
Uninstalls Paint 3D
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Paint 3D is uninstalled now."
|
"Paint 3D is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Rufus
|
Uninstalls Rufus
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Rufus is uninstalled now."
|
"Rufus is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Skype
|
Uninstalls Skype
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Skype is uninstalled now."
|
"Skype is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Uninstalls Spotify
|
Uninstalls Spotify
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -20,6 +20,6 @@ try {
|
|||||||
"Spotify is uninstalled now."
|
"Spotify is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Twitter is uninstalled now."
|
"Twitter is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ try {
|
|||||||
"Visual Studio Code is uninstalled now."
|
"Visual Studio Code is uninstalled now."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"Sorry: $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
@ -1,12 +1,12 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Writes the message of the day
|
Writes the message of the day
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script writes the message of the day (MOTD).
|
This PowerShell script writes the message of the day (MOTD).
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./write-motd
|
PS> ./write-motd
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz | License: CC0
|
Author: Markus Fleschutz | License: CC0
|
||||||
#>
|
#>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user