mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-22 19:26:49 +01:00
Added uninstall-new-outlook.ps1
This commit is contained in:
parent
8b2de68df7
commit
be9a93de82
24
scripts/uninstall-new-outlook.ps1
Normal file
24
scripts/uninstall-new-outlook.ps1
Normal file
@ -0,0 +1,24 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Uninstalls the new Outlook
|
||||
.DESCRIPTION
|
||||
This PowerShell script uninstalls the new Outlook application.
|
||||
.EXAMPLE
|
||||
PS> ./uninstall-new-outlook.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
"⏳ Uninstalling new Outlook..."
|
||||
|
||||
Remove-AppxProvisionedPackage -AllUsers -Online -PackageName (Get-AppxPackage Microsoft.OutlookForWindows).PackageFullName
|
||||
|
||||
"✅ New Outlook has been removed."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user