When Removing Outlook for Windows Using PowerShell and then deleting profile it strips all apps
Amy Menon
0
Reputation points
I needed to remove Outlook for Windows from our image. I ran the following scripts:
Get-AppxPackage -AllUsers |
Where-Object PackageFullName -eq 'Microsoft.OutlookForWindows_1.2025.801.400_x64__8wekyb3d8bbwe' |
Remove-AppxPackage
Get-AppxProvisionedPackage -Online |
Where-Object DisplayName -eq 'Microsoft.OutlookForWindows' |
Remove-AppxProvisionedPackage -Online
When I login as a domain user for the first time for testing it works. But when I go to remove the profile to capture the image it strips other AppxPackages that we need. I can't go through and manually add all of them.
Windows for business | Windows 365 Enterprise
Sign in to answer