Advertisement
FreeBooter

Reset_UWP_App_to_Default_in_Windows_11

Aug 19th, 2022
1,156
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 8.79 KB | Fixit | 1 0
  1. :: Reset Universal Windows Platform (UWP) Apps to Default in Windows 11
  2.  
  3. :: Created by FreeBooter
  4.  
  5. @Echo Off & Color 0E
  6.  
  7.  
  8.  
  9.  
  10.  
  11. (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
  12.  
  13.  
  14.  
  15. :Choice
  16. Cls
  17. Echo.
  18. Echo 1. Reset Calculator App
  19. Echo.
  20. Echo 2. Reset Calendar and Mail App
  21. Echo.
  22. Echo 3. Reset Camera App
  23. Echo.
  24. Echo 4. Reset Chat (Microsoft Teams) App
  25. Echo.
  26. Echo 5. Reset Clock App
  27. Echo.
  28. Echo 6. Reset Cortana App
  29. Echo.
  30. Echo 7. Reset Feedback Hub App
  31. Echo.
  32. Echo 8. Reset Get Help App
  33. Echo.
  34. Echo 9. Reset Get Started App
  35. Echo.
  36. Echo 10. Reset Groove Music App
  37. Echo.
  38. Echo 11. Reset Maps App
  39. Echo.
  40. Echo 12. Reset Microsoft Edge App
  41. Echo.
  42. Echo 13. Reset Microsoft News App
  43. Echo.
  44. Echo 14. Reset Microsoft Solitaire Collection App
  45. Echo.
  46. Echo 15. Reset Microsoft Store App
  47. Echo.
  48. Echo 16. Reset Microsoft To Do App
  49. Echo.
  50. Echo 17. Reset Movies ^& TV App
  51. Echo.
  52. Echo 18. Reset Notepad App
  53. Echo.
  54. Echo 19. Reset Paint App
  55. Echo.
  56. Echo 20. Reset People App
  57. Echo.
  58. Echo 21. Reset Photos App
  59. Echo.
  60. Echo 22. Reset Power Automate App
  61. Echo.
  62. Echo 23. Reset Settings App
  63. Echo.
  64. Echo 24. Reset Snipping Tool App
  65. Echo.
  66. Echo 25. Reset Sticky Notes App
  67. Echo.
  68. Echo 26. Reset Tips App
  69. Echo.
  70. Echo 27. Reset Voice Recorder App
  71. Echo.
  72. Echo 28. Reset Weather App
  73. Echo.
  74. Echo 29. Reset Windows Security App
  75. Echo.
  76. Echo 30. Reset Windows Terminal App
  77. Echo.
  78. Echo 31. Reset Xbox App
  79. Echo.
  80. Echo 32. Reset Xbox Game Bar App
  81. Echo.
  82. Echo 33. Reset Your Phone App
  83. Echo.
  84.  
  85.  
  86. Set /p input="Type a number:> "
  87.  
  88. If %input%==1 Goto :Calculator
  89. If %input%==2 Goto :Mail
  90. If %input%==3 Goto :Camera
  91. If %input%==4 Goto :Chat
  92. If %input%==5 Goto :Clock
  93. If %input%==6 Goto :Cortana
  94. If %input%==7 Goto :Feedback
  95. If %input%==8 Goto :Help
  96. If %input%==9 Goto :Started
  97. If %input%==10 Goto :Groove
  98. If %input%==11 Goto :Maps
  99. If %input%==12 Goto :Edge
  100. If %input%==13 Goto :News
  101. If %input%==14 Goto :Solitaire
  102. If %input%==15 Goto :Store
  103. If %input%==16 Goto :To-Do
  104. If %input%==17 Goto :Movies
  105. If %input%==18 Goto :Notepad
  106. If %input%==19 Goto :Paint
  107. If %input%==20 Goto :People
  108. If %input%==21 Goto :Photos
  109. If %input%==22 Goto :Power
  110. If %input%==23 Goto :Settings
  111. If %input%==24 Goto :Snip
  112. If %input%==25 Goto :Sticky
  113. If %input%==26 Goto :Tips
  114. If %input%==27 Goto :Voice
  115. If %input%==28 Goto :Weather
  116. If %input%==29 Goto :Security
  117. If %input%==30 Goto :Terminal
  118. If %input%==31 Goto :Xbox
  119. If %input%==32 Goto :XboxGameBar
  120. If %input%==33 Goto :Phone
  121.  
  122.  
  123.  
  124. Goto :EOF
  125.  
  126.  
  127.  
  128.  
  129. :Calculator
  130.  
  131. Cd %TMP%
  132.  
  133. Echo Get-AppxPackage *Microsoft.WindowsCalculator* ^| Reset-AppxPackage > All.ps1
  134.  
  135. Powershell -ExecutionPolicy ByPass -File All.ps1
  136.  
  137. Del All.ps1
  138.  
  139. Goto :Choice
  140.  
  141.  
  142.  
  143.  
  144. :Mail
  145.  
  146. Cd %TMP%
  147.  
  148. Echo Get-AppxPackage *microsoft.windowscommunicationsapps* ^| Reset-AppxPackage > All.ps1
  149.  
  150. Powershell -ExecutionPolicy ByPass -File All.ps1
  151.  
  152. Del All.ps1
  153.  
  154. Goto :Choice
  155.  
  156.  
  157.  
  158.  
  159. :Camera
  160.  
  161. Cd %TMP%
  162.  
  163. Echo Get-AppxPackage *Microsoft.WindowsCamera* ^| Reset-AppxPackage > All.ps1
  164.  
  165. Powershell -ExecutionPolicy ByPass -File All.ps1
  166.  
  167. Del All.ps1
  168.  
  169. Goto :Choice
  170.  
  171.  
  172.  
  173. :Chat
  174.  
  175. Cd %TMP%
  176.  
  177. Echo Get-AppxPackage *MicrosoftTeams* ^| Reset-AppxPackage > All.ps1
  178.  
  179. Powershell -ExecutionPolicy ByPass -File All.ps1
  180.  
  181. Del All.ps1
  182.  
  183. Goto :Choice
  184.  
  185.  
  186.  
  187.  
  188.  
  189. :Clock
  190.  
  191. Cd %TMP%
  192.  
  193. Echo Get-AppxPackage *Microsoft.WindowsAlarms* ^| Reset-AppxPackage > All.ps1
  194.  
  195. Powershell -ExecutionPolicy ByPass -File All.ps1
  196.  
  197. Del All.ps1
  198.  
  199. Goto :Choice
  200.  
  201.  
  202.  
  203. :Cortana
  204.  
  205. Cd %TMP%
  206.  
  207. Echo Get-AppxPackage *Microsoft.549981C3F5F10* ^| Reset-AppxPackage > All.ps1
  208.  
  209. Powershell -ExecutionPolicy ByPass -File All.ps1
  210.  
  211. Del All.ps1
  212.  
  213. Goto :Choice
  214.  
  215.  
  216.  
  217.  
  218.  
  219. :Feedback
  220.  
  221. Cd %TMP%
  222.  
  223. Echo Get-AppxPackage *Microsoft.WindowsFeedbackHub* ^| Reset-AppxPackage > All.ps1
  224.  
  225. Powershell -ExecutionPolicy ByPass -File All.ps1
  226.  
  227. Del All.ps1
  228.  
  229. Goto :Choice
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. :Help
  237.  
  238. Cd %TMP%
  239.  
  240. Echo Get-AppxPackage *Microsoft.GetHelp* ^| Reset-AppxPackage > All.ps1
  241.  
  242. Powershell -ExecutionPolicy ByPass -File All.ps1
  243.  
  244. Del All.ps1
  245.  
  246. Goto :Choice
  247.  
  248.  
  249.  
  250.  
  251.  
  252. :Started
  253.  
  254.  
  255. Cd %TMP%
  256.  
  257. Echo Get-AppxPackage *Microsoft.Getstarted* ^| Reset-AppxPackage > All.ps1
  258.  
  259. Powershell -ExecutionPolicy ByPass -File All.ps1
  260.  
  261. Del All.ps1
  262.  
  263.  
  264.  
  265. Goto :Choice
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272. :Groove
  273.  
  274. Cd %TMP%
  275.  
  276. Echo Get-AppxPackage *Microsoft.ZuneMusic* ^| Reset-AppxPackage > All.ps1
  277.  
  278. Powershell -ExecutionPolicy ByPass -File All.ps1
  279.  
  280. Del All.ps1
  281.  
  282. Goto :Choice
  283.  
  284.  
  285.  
  286.  
  287.  
  288. :Maps
  289.  
  290. Cd %TMP%
  291.  
  292. Echo Get-AppxPackage *Microsoft.WindowsMaps* ^| Reset-AppxPackage > All.ps1
  293.  
  294. Powershell -ExecutionPolicy ByPass -File All.ps1
  295.  
  296. Del All.ps1
  297.  
  298. Goto :Choice
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305. :Edge
  306.  
  307. Cd %TMP%
  308.  
  309. Echo Get-AppxPackage *Microsoft.MicrosoftEdge* ^| Reset-AppxPackage > All.ps1
  310.  
  311. Powershell -ExecutionPolicy ByPass -File All.ps1
  312.  
  313. Del All.ps1
  314.  
  315. Goto :Choice
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. :News
  325.  
  326. Cd %TMP%
  327.  
  328. Echo Get-AppxPackage *Microsoft.BingNews* ^| Reset-AppxPackage > All.ps1
  329.  
  330. Powershell -ExecutionPolicy ByPass -File All.ps1
  331.  
  332. Del All.ps1
  333.  
  334. Goto :Choice
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341. :Solitaire
  342.  
  343. Cd %TMP%
  344.  
  345. Echo Get-AppxPackage *Microsoft.MicrosoftSolitaireCollection* ^| Reset-AppxPackage > All.ps1
  346.  
  347. Powershell -ExecutionPolicy ByPass -File All.ps1
  348.  
  349. Del All.ps1
  350.  
  351. Goto :Choice
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358. :Store
  359.  
  360. Cd %TMP%
  361.  
  362. Echo Get-AppxPackage *Microsoft.WindowsStore* ^| Reset-AppxPackage > All.ps1
  363.  
  364. Powershell -ExecutionPolicy ByPass -File All.ps1
  365.  
  366. Del All.ps1
  367.  
  368. Goto :Choice
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376. :To-Do
  377.  
  378. Cd %TMP%
  379.  
  380. Echo Get-AppxPackage *Todos* ^| Reset-AppxPackage > All.ps1
  381.  
  382. Powershell -ExecutionPolicy ByPass -File All.ps1
  383.  
  384. Del All.ps1
  385.  
  386. Goto :Choice
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395. :Movies
  396.  
  397. Cd %TMP%
  398.  
  399. Echo Get-AppxPackage *Microsoft.ZuneVideo* ^| Reset-AppxPackage > All.ps1
  400.  
  401. Powershell -ExecutionPolicy ByPass -File All.ps1
  402.  
  403. Del All.ps1
  404.  
  405. Goto :Choice
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412. :Notepad
  413.  
  414. Cd %TMP%
  415.  
  416. Echo Get-AppxPackage *Microsoft.WindowsNotepad* ^| Reset-AppxPackage > All.ps1
  417.  
  418. Powershell -ExecutionPolicy ByPass -File All.ps1
  419.  
  420. Del All.ps1
  421.  
  422. Goto :Choice
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429. :Paint
  430.  
  431. Cd %TMP%
  432.  
  433. Echo Get-AppxPackage *Microsoft.MSPaint* ^| Reset-AppxPackage > All.ps1
  434.  
  435. Powershell -ExecutionPolicy ByPass -File All.ps1
  436.  
  437. Del All.ps1
  438.  
  439. Goto :Choice
  440.  
  441.  
  442.  
  443.  
  444.  
  445. :People
  446.  
  447. Cd %TMP%
  448.  
  449. Echo Get-AppxPackage *Microsoft.People* ^| Reset-AppxPackage > All.ps1
  450.  
  451. Powershell -ExecutionPolicy ByPass -File All.ps1
  452.  
  453. Del All.ps1
  454.  
  455. Goto :Choice
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. :Photos
  464.  
  465. Cd %TMP%
  466.  
  467. Echo Get-AppxPackage *Microsoft.Windows.Photos* ^| Reset-AppxPackage > All.ps1
  468.  
  469. Powershell -ExecutionPolicy ByPass -File All.ps1
  470.  
  471. Del All.ps1
  472.  
  473. Goto :Choice
  474.  
  475.  
  476.  
  477.  
  478.  
  479. :Power
  480.  
  481. Cd %TMP%
  482.  
  483. Echo Get-AppxPackage *Microsoft.PowerAutomateDesktop* ^| Reset-AppxPackage > All.ps1
  484.  
  485. Powershell -ExecutionPolicy ByPass -File All.ps1
  486.  
  487. Del All.ps1
  488.  
  489. Goto :Choice
  490.  
  491.  
  492.  
  493.  
  494. :Settings
  495.  
  496. Cd %TMP%
  497.  
  498. Echo Get-AppxPackage *windows.immersivecontrolpanel* ^| Reset-AppxPackage > All.ps1
  499.  
  500. Powershell -ExecutionPolicy ByPass -File All.ps1
  501.  
  502. Del All.ps1
  503.  
  504. Goto :Choice
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512. :Snip
  513.  
  514. Cd %TMP%
  515.  
  516. Echo Get-AppxPackage *Microsoft.ScreenSketch* ^| Reset-AppxPackage > All.ps1
  517.  
  518. Powershell -ExecutionPolicy ByPass -File All.ps1
  519.  
  520. Del All.ps1
  521.  
  522. Goto :Choice
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531. :Sticky
  532.  
  533. Cd %TMP%
  534.  
  535. Echo Get-AppxPackage *Microsoft.MicrosoftStickyNotes* ^| Reset-AppxPackage > All.ps1
  536.  
  537. Powershell -ExecutionPolicy ByPass -File All.ps1
  538.  
  539. Del All.ps1
  540.  
  541. Goto :Choice
  542.  
  543.  
  544.  
  545.  
  546.  
  547. :Tips
  548.  
  549. Cd %TMP%
  550.  
  551. Echo Get-AppxPackage *Microsoft.Getstarted* ^| Reset-AppxPackage > All.ps1
  552.  
  553. Powershell -ExecutionPolicy ByPass -File All.ps1
  554.  
  555. Del All.ps1
  556.  
  557. Goto :Choice
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566. :Voice
  567.  
  568. Cd %TMP%
  569.  
  570. Echo Get-AppxPackage *Microsoft.WindowsSoundRecorder* ^| Reset-AppxPackage > All.ps1
  571.  
  572. Powershell -ExecutionPolicy ByPass -File All.ps1
  573.  
  574. Del All.ps1
  575.  
  576. Goto :Choice
  577.  
  578.  
  579.  
  580.  
  581.  
  582. :Weather
  583.  
  584. Cd %TMP%
  585.  
  586. Echo Get-AppxPackage *Microsoft.BingWeather* ^| Reset-AppxPackage > All.ps1
  587.  
  588. Powershell -ExecutionPolicy ByPass -File All.ps1
  589.  
  590. Del All.ps1
  591.  
  592. Goto :Choice
  593.  
  594.  
  595.  
  596.  
  597. :Security
  598.  
  599. Cd %TMP%
  600.  
  601. Echo Get-AppxPackage *Microsoft.Windows.SecHealthUI* ^| Reset-AppxPackage > All.ps1
  602.  
  603. Powershell -ExecutionPolicy ByPass -File All.ps1
  604.  
  605. Del All.ps1
  606.  
  607. Goto :Choice
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614. :Terminal
  615.  
  616. Cd %TMP%
  617.  
  618. Echo Get-AppxPackage *Microsoft.WindowsTerminal* ^| Reset-AppxPackage > All.ps1
  619.  
  620. Powershell -ExecutionPolicy ByPass -File All.ps1
  621.  
  622. Del All.ps1
  623.  
  624. Goto :Choice
  625.  
  626.  
  627.  
  628.  
  629. :Xbox
  630.  
  631.  
  632. Cd %TMP%
  633.  
  634. Echo Get-AppxPackage *Microsoft.GamingApp* ^| Reset-AppxPackage > All.ps1
  635.  
  636. Powershell -ExecutionPolicy ByPass -File All.ps1
  637.  
  638. Del All.ps1
  639.  
  640. Goto :Choice
  641.  
  642.  
  643.  
  644.  
  645.  
  646. :XboxGameBar
  647.  
  648.  
  649. Cd %TMP%
  650.  
  651. Echo Get-AppxPackage *Microsoft.XboxGamingOverlay* ^| Reset-AppxPackage > All.ps1
  652.  
  653. Powershell -ExecutionPolicy ByPass -File All.ps1
  654.  
  655. Del All.ps1
  656.  
  657. Goto :Choice
  658.  
  659.  
  660.  
  661.  
  662.  
  663. :Phone
  664.  
  665. Cd %TMP%
  666.  
  667. Echo Get-AppxPackage *Microsoft.YourPhone* ^| Reset-AppxPackage > All.ps1
  668.  
  669. Powershell -ExecutionPolicy ByPass -File All.ps1
  670.  
  671. Del All.ps1
  672.  
  673. Goto :Choice
  674.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement