mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-28 01:28:50 +01:00
Removed obsolete scripts
This commit is contained in:
parent
87a63a0e29
commit
69bb7d8a3d
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls the Chrome browser
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls the Google Chrome browser from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-chrome.ps1
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"⏳ Uninstalling Google Chrome..."
|
|
||||||
|
|
||||||
& winget uninstall --id Google.Chrome
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Google Chrome, is it installed?" }
|
|
||||||
|
|
||||||
"✔️ Google Chrome is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls CrystalDiskInfo
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls CrystalDiskInfo from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-crystal-disk-info
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling CrystalDiskInfo, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "CrystalDiskInfo"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall CrystalDiskInfo, is it installed?" }
|
|
||||||
|
|
||||||
"CrystalDiskInfo is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls CrystalDiskMark
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls CrystalDiskMark from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-crystal-disk-mark
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling CrystalDiskMark, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "CrystalDiskMark Shizuku Edition"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall CrystalDiskMark, is it installed?" }
|
|
||||||
|
|
||||||
"CrystalDiskMark is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Discord
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Discord from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-discord
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Discord, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Discord"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Discord, is it installed?" }
|
|
||||||
|
|
||||||
"Discord is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Microsoft Edge
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Microsoft Edge from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-edge
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Microsoft Edge, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Microsoft Edge Browser"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Edge, is it installed?" }
|
|
||||||
|
|
||||||
"Microsoft Edge is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Mozilla Firefox
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Mozilla Firefox from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-firefox
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Mozilla Firefox, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Mozilla Firefox"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Firefox, is it installed?" }
|
|
||||||
|
|
||||||
"Mozilla Firefox is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Git Extensions
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Git Extensions from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-git-extensions
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Git Extensions, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall --id GitExtensionsTeam.GitExtensions
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Git Extensions, is it installed?" }
|
|
||||||
|
|
||||||
"Git Extensions is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls GitHub CLI
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls the GitHub CLI from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-github-cli.ps1
|
|
||||||
⏳ Uninstalling GitHub CLI...
|
|
||||||
✔️ Removal of GitHub CLI took 7 sec
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"⏳ Uninstalling GitHub CLI..."
|
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
|
||||||
|
|
||||||
if ($IsMacOS) {
|
|
||||||
& brew uninstall gh
|
|
||||||
} elseif ($IsLinux) {
|
|
||||||
& sudo apt remote gh
|
|
||||||
} else {
|
|
||||||
& winget uninstall --id GitHub.cli
|
|
||||||
}
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall GitHub CLI, is it installed?" }
|
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
||||||
"✔️ Removal of GitHub CLI took $Elapsed sec"
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"Sorry: $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls IrfanView
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls IrfanView from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-irfanview
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling IrfanView, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "IrfanView64"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall IrfanView, is it installed?" }
|
|
||||||
|
|
||||||
"IrfanView is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Microsoft Teams
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Microsoft Teams from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-microsoft-teams
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Microsoft Teams, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall --id Microsoft.Teams
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Microsoft Teams, is it installed?" }
|
|
||||||
|
|
||||||
"Microsoft Teams is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Netflix
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Netflix from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-netflix
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Netflix, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Netflix"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Netflix, is it installed?" }
|
|
||||||
|
|
||||||
"Netflix is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls 9 ZIP
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls 9 ZIP from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-nine-zip
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/talk2windows
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"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?" }
|
|
||||||
|
|
||||||
"9 ZIP is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls One Calendar
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls One Calendar from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-one-calendar.ps1
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"⏳ Uninstalling One Calendar ..."
|
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
|
||||||
|
|
||||||
& winget uninstall "One Calendar"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall One Calendar, is it installed?" }
|
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
||||||
"✔️ Removal of One Calendar tool $Elapsed sec"
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Opera Browser
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Opera Browser from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-opera-browser
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Opera Browser, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Opera Browser"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Opera Browser, is it installed?" }
|
|
||||||
|
|
||||||
"Opera Browser is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Opera GX
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Opera GX from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-opera-gx
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Opera GX, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Opera GX"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Opera Browser, is it installed?" }
|
|
||||||
|
|
||||||
"Opera GX is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Paint 3D
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Paint 3D from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-paint-3d
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Paint 3D, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Paint 3D"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Paint 3D, is it installed?" }
|
|
||||||
|
|
||||||
"Paint 3D is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Rufus
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Rufus from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-rufus
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Rufus, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Rufus"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Rufus, is it installed?" }
|
|
||||||
|
|
||||||
"Rufus is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Skype
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Skype from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-skype
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Skype, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Skype"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Skype, is it installed?" }
|
|
||||||
|
|
||||||
"Skype is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Spotify
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Spotify from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-spotify
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Spotify, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Spotify - Music and Podcasts"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Spotify, is it installed?" }
|
|
||||||
|
|
||||||
"Spotify is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Twitter
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Twitter from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-twitter
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Twitter, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Twitter"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Twitter, is it installed?" }
|
|
||||||
|
|
||||||
"Twitter is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Visual Studio Code
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Visual Studio Code from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-visual-studio-code
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Visual Studio Code, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall "Visual Studio Code"
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Visual Studio Code, is it installed?" }
|
|
||||||
|
|
||||||
"Visual Studio Code is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,29 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls VLC
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls the VLC media player from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-vlc.ps1
|
|
||||||
⏳ Uninstalling VLC media player...
|
|
||||||
✔️ Removal of VLC media player took 7 sec
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"⏳ Uninstalling VLC media player..."
|
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
|
||||||
|
|
||||||
& winget uninstall --id XPDM1ZW6815MQM
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall VLC media player, is it installed?" }
|
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
||||||
"✔️ Removal of VLC media player took $Elapsed sec"
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"Sorry: $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Uninstalls Windows Terminal
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script uninstalls Windows Terminal from the local computer.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./uninstall-windows-terminal
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
"Uninstalling Windows Terminal, please wait..."
|
|
||||||
|
|
||||||
& winget uninstall --id Microsoft.WindowsTerminal
|
|
||||||
if ($lastExitCode -ne "0") { throw "Can't uninstall Windows Terminal, is it installed?" }
|
|
||||||
|
|
||||||
"Windows Terminal is uninstalled now."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"Sorry: $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user