Change to UTF-8 BOM encoding

This commit is contained in:
Markus Fleschutz 2022-09-11 11:57:15 +02:00
parent a75cb369f1
commit daf4684c5c
55 changed files with 139 additions and 139 deletions

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Converts a .CSV file into a text file
.DESCRIPTION

View File

@ -1,6 +1,6 @@
<#
<#
.SYNOPSIS
Disconnect VPN
Disconnects the VPN
.DESCRIPTION
This PowerShell script disconnects the active VPN connection.
.EXAMPLE

View File

@ -20,6 +20,6 @@ try {
"Audacity installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Chocolatey (needs admin rights)
.DESCRIPTION
@ -18,6 +18,6 @@ try {
iwr https://community.chocolatey.org/install.ps1 -UseBasicParsing | iex
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Chrome
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Google Chrome installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs CrystalDiskInfo
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"CrystalDiskInfo installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs CrystalDiskMark
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"CrystalDiskMark installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Discord
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Discord installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Microsoft Edge
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Microsoft Edge installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Mozilla Firefox
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Firefox installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Git Extensions
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Git Extensions installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Git for Windows installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs IrfanView
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"IrfanView installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Microsoft Teams
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Microsoft Teams installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Netflix
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Netflix installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"9 Zip installed successfuly."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs One Calendar
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"One Calendar installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Opera Browser
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Opera Browser installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Opera GX installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Paint 3D
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Paint 3D installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Microsoft Powertoys
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Microsoft Powertoys installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Rufus
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Rufus installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Skype installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Spotify installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Visual Studio Code installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Vivaldi
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Vivaldi installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs VLC
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"VLC media player installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Windows Terminal
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Windows Terminal installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Installs Zoom
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Zoom installed successfully."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Lists the Fibonacci numbers
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Locks the desktop
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Minimizes all windows
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Opens the VPN settings
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Sets the volume
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Suspends the computer
.DESCRIPTION

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls CrystalDiskInfo
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"CrystalDiskInfo is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls CrystalDiskMark
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"CrystalDiskMark is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Discord
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Discord is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Microsoft Edge
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Microsoft Edge is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Mozilla Firefox
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Mozilla Firefox is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Git Extensions
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Git Extensions is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls IrfanView
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"IrfanView is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Microsoft Teams
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Microsoft Teams is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Netflix
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Netflix is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls 9 ZIP
.DESCRIPTION
@ -12,14 +12,14 @@
#>
try {
& "$PSScriptRoot/_reply.ps1" "Uninstalling 9 ZIP, please wait..."
"Uninstalling 9 ZIP, please wait..."
& winget uninstall "9 ZIP - open rar, zip, 7zip, gzip"
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
} catch {
& "$PSScriptRoot/_reply.ps1" "Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
c<#
c<#
.SYNOPSIS
Uninstalls One Calendar
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"One Calendar is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Opera Browser
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Opera Browser is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Opera GX
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Opera GX is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Paint 3D
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Paint 3D is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Rufus
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Rufus is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Skype
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Skype is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Uninstalls Spotify
.DESCRIPTION
@ -20,6 +20,6 @@ try {
"Spotify is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Twitter is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -20,6 +20,6 @@ try {
"Visual Studio Code is uninstalled now."
exit 0 # success
} catch {
"Sorry: $($Error[0])"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,12 +1,12 @@
<#
<#
.SYNOPSIS
Writes the message of the day
Writes the message of the day
.DESCRIPTION
This PowerShell script writes the message of the day (MOTD).
This PowerShell script writes the message of the day (MOTD).
.EXAMPLE
PS> ./write-motd
PS> ./write-motd
.LINK
https://github.com/fleschutz/PowerShell
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>