What is the correct command in task sequence to remove old version of microsoft store

Salanje Banda 20 Reputation points
2023-09-18T20:55:50.2933333+00:00

I have these commands am using to remove the old versions of microsoft store app.If i run manually on the computer it is working but through sccm task sequence it failing.Is this command line correct in task sequence.

User's image

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,436 Reputation points Microsoft External Staff
    2023-09-19T02:40:39.3766667+00:00

    Hi, @Salanje Banda

    Thank you for posting in Microsoft Q&A forum.

    There is no specific command mentioned to remove the old version of Microsoft Store in a task sequence. It is recommended to use System Center Configuration Manager to manage Microsoft Store apps rather than removing them.

    If you need to remove specific provisioned Microsoft Store apps, you can use the DISM command to remove them, but it may cause issues with the sysprep operation.

    https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/cannot-remove-uninstall-or-reinstall-microsoft-store-app


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    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.