Batch Script to Reset Universal Windows Platform (UWP) Apps to Default in Windows 11


FreeBooter

Well-known member
Pro User
VIP
Local time
1:45 AM
Posts
3,923
OS
Windows 11
Hi everyone,

Using this batch script, the Universal Windows Platform (UWP) Apps can be reset to default state.

Batch:
:: Reset Universal Windows Platform (UWP) Apps to Default in Windows 11
 
:: Created by FreeBooter

@Echo Off & Color 0E





(Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)



:Choice
Cls
Echo.
Echo 1. Reset Calculator App
Echo.
Echo 2. Reset Calendar and Mail App
Echo.
Echo 3. Reset Camera App
Echo.
Echo 4. Reset Chat (Microsoft Teams) App
Echo.
Echo 5. Reset Clock App
Echo.
Echo 6. Reset Cortana App
Echo.
Echo 7. Reset Feedback Hub App
Echo.
Echo 8. Reset Get Help App
Echo.
Echo 9. Reset Get Started App
Echo.
Echo 10. Reset Groove Music App
Echo.
Echo 11. Reset Maps App
Echo.
Echo 12. Reset Microsoft Edge App
Echo.
Echo 13. Reset Microsoft News App
Echo.
Echo 14. Reset Microsoft Solitaire Collection App
Echo.
Echo 15. Reset Microsoft Store App
Echo.
Echo 16. Reset Microsoft To Do App
Echo.
Echo 17. Reset Movies ^& TV App
Echo.
Echo 18. Reset Notepad App
Echo.
Echo 19. Reset Paint App
Echo.
Echo 20. Reset People App
Echo.
Echo 21. Reset Photos App
Echo.
Echo 22. Reset Power Automate App
Echo.
Echo 23. Reset Settings App
Echo.
Echo 24. Reset Snipping Tool App
Echo.
Echo 25. Reset Sticky Notes App
Echo.
Echo 26. Reset Tips App
Echo.
Echo 27. Reset Voice Recorder App
Echo.
Echo 28. Reset Weather App
Echo.
Echo 29. Reset Windows Security App
Echo.
Echo 30. Reset Windows Terminal App
Echo.
Echo 31. Reset Xbox App
Echo.
Echo 32. Reset Xbox Game Bar App
Echo.
Echo 33. Reset Your Phone App
Echo.


Set /p input="Type a number:> "

If %input%==1 Goto :Calculator
If %input%==2 Goto :Mail
If %input%==3 Goto :Camera
If %input%==4 Goto :Chat
If %input%==5 Goto :Clock
If %input%==6 Goto :Cortana
If %input%==7 Goto :Feedback
If %input%==8 Goto :Help
If %input%==9 Goto :Started
If %input%==10 Goto :Groove
If %input%==11 Goto :Maps
If %input%==12 Goto :Edge
If %input%==13 Goto :News
If %input%==14 Goto :Solitaire
If %input%==15 Goto :Store
If %input%==16 Goto :To-Do
If %input%==17 Goto :Movies
If %input%==18 Goto :Notepad
If %input%==19 Goto :Paint
If %input%==20 Goto :People
If %input%==21 Goto :Photos
If %input%==22 Goto :Power
If %input%==23 Goto :Settings
If %input%==24 Goto :Snip
If %input%==25 Goto :Sticky
If %input%==26 Goto :Tips
If %input%==27 Goto :Voice
If %input%==28 Goto :Weather
If %input%==29 Goto :Security
If %input%==30 Goto :Terminal
If %input%==31 Goto :Xbox
If %input%==32 Goto :XboxGameBar
If %input%==33 Goto :Phone



Goto :EOF




:Calculator

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsCalculator* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice




:Mail

Cd %TMP%

Echo Get-AppxPackage *microsoft.windowscommunicationsapps* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice




:Camera

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsCamera* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice



:Chat

Cd %TMP%

Echo Get-AppxPackage *MicrosoftTeams* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Clock

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsAlarms* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice



:Cortana

Cd %TMP%

Echo Get-AppxPackage *Microsoft.549981C3F5F10* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Feedback

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsFeedbackHub* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Help

Cd %TMP%

Echo Get-AppxPackage *Microsoft.GetHelp* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Started


Cd %TMP%

Echo Get-AppxPackage *Microsoft.Getstarted* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1



Goto :Choice






:Groove

Cd %TMP%

Echo Get-AppxPackage *Microsoft.ZuneMusic* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Maps

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsMaps* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Edge

Cd %TMP%

Echo Get-AppxPackage *Microsoft.MicrosoftEdge* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice








:News

Cd %TMP%

Echo Get-AppxPackage *Microsoft.BingNews* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Solitaire

Cd %TMP%

Echo Get-AppxPackage *Microsoft.MicrosoftSolitaireCollection* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Store

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsStore* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice







:To-Do

Cd %TMP%

Echo Get-AppxPackage *Todos* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice








:Movies

Cd %TMP%

Echo Get-AppxPackage *Microsoft.ZuneVideo* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Notepad

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsNotepad* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Paint

Cd %TMP%

Echo Get-AppxPackage *Microsoft.MSPaint* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:People

Cd %TMP%

Echo Get-AppxPackage *Microsoft.People* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice







:Photos

Cd %TMP%

Echo Get-AppxPackage *Microsoft.Windows.Photos* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Power

Cd %TMP%

Echo Get-AppxPackage *Microsoft.PowerAutomateDesktop* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice




:Settings

Cd %TMP%

Echo Get-AppxPackage *windows.immersivecontrolpanel* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice







:Snip

Cd %TMP%

Echo Get-AppxPackage *Microsoft.ScreenSketch* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice








:Sticky

Cd %TMP%

Echo Get-AppxPackage *Microsoft.MicrosoftStickyNotes* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Tips

Cd %TMP%

Echo Get-AppxPackage *Microsoft.Getstarted* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice








:Voice

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsSoundRecorder* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Weather

Cd %TMP%

Echo Get-AppxPackage *Microsoft.BingWeather* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice




:Security

Cd %TMP%

Echo Get-AppxPackage *SecHealthUI* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice






:Terminal

Cd %TMP%

Echo Get-AppxPackage *Microsoft.WindowsTerminal* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice




:Xbox


Cd %TMP%

Echo Get-AppxPackage *Microsoft.GamingApp* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:XboxGameBar


Cd %TMP%

Echo Get-AppxPackage *Microsoft.XboxGamingOverlay* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice





:Phone

Cd %TMP%

Echo Get-AppxPackage *Microsoft.YourPhone* ^| Reset-AppxPackage > All.ps1

Powershell -ExecutionPolicy ByPass -File All.ps1

Del All.ps1

Goto :Choice
 

Attachments

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

Latest Support Threads

Back
Top Bottom