Share via

When Removing Outlook for Windows Using PowerShell and then deleting profile it strips all apps

Amy Menon 0 Reputation points
2025-08-13T13:53:23.7466667+00:00

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
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.