Reinstall all the Windows 10 Default Apps with Batch Script

Page 2 of 2 FirstFirst 12
  1. thewizardoz's Avatar
    Posts : 130
    Windows 10 Pro x64 Insider Preview Build 18875.1000 20H1
       #11

    This batch file does not work. Even copying the script and running it at an adminstrative command prompt does not work.
    It just closes the command prompt.
      My Computer

  2. FreeBooter's Avatar
    Posts : 3,997
    Windows 10 Pro 64-bit
    Thread Starter
       #12

    thewizardoz said:
    This batch file does not work. Even copying the script and running it at an adminstrative command prompt does not work.
    It just closes the command prompt.
    I have downloaded the attached batch script and it works i don't know why it will not work for you.

    I have made changes to batch script please download the attached batch script and try again to executed.
      My Computer

  3. Matthew Wai's Avatar
    Posts : 5,126
    Windows 10 Home 20H2
       #13

    FreeBooter said:
    Can you please give me example of how to do that.
    The following is PowerShell:
    Code:
    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Try to run the following in a .bat/.cmd file:
    Code:
    PowerShell Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register \"$($_.InstallLocation)\\AppXManifest.xml\"}
    I have not run it. I don't know whether it works.
      My Computer

  4. FreeBooter's Avatar
    Posts : 3,997
    Windows 10 Pro 64-bit
    Thread Starter
       #14

    Matthew Wai said:
    The following is PowerShell:
    Code:
    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Try to run the following in a .bat/.cmd file:
    Code:
    PowerShell Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register \"$($_.InstallLocation)\\AppXManifest.xml\"}
    I have not run it. I don't know whether it works.
    The problem is | piping causing the execution error.
      My Computer

  5. Matthew Wai's Avatar
    Posts : 5,126
    Windows 10 Home 20H2
       #15

    Try using ^ to fix the problem, i.e. to escape the pipe character.
    Code:
    PowerShell Get-AppXPackage ^| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register \"$($_.InstallLocation)\\AppXManifest.xml\"}
      My Computer

  6. Paul Black's Avatar
    Posts : 12,252
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #16

    FreeBooter said:
    This batch script have been updated.
    Did this ever get added to the Tutorial because I can't find it?
      My Computer

  7. FreeBooter's Avatar
    Posts : 3,997
    Windows 10 Pro 64-bit
    Thread Starter
       #17

    Paul Black said:
    Did this ever get added to the Tutorial because I can't find it?
    No script have not added to tutorial.
      My Computer

  8. Paul Black's Avatar
    Posts : 12,252
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #18

    Hello @Brink,

    Paul Black said:
    Did this ever get added to the Tutorial because I can't find it?
    FreeBooter said:
    No script have not added to tutorial.
    Do you think the batch script that @FreeBooter wrote would be a good addition to the Tutorial?

    Post #1 => Reinstall all the Windows 10 Default Apps with Batch Script
      My Computer

  9. Brink's Avatar
    Posts : 56,427
    64-bit Windows 10 Pro for Workstations build 21359
       #19

    Paul Black said:
    Hello @Brink,

    Do you think the batch script that @FreeBooter wrote would be a good addition to the Tutorial?

    Post #1 => Reinstall all the Windows 10 Default Apps with Batch Script
    Hello Paul,

    I'm not sure it's needed in the tutorial since option one already includes all apps.
      My Computers

  10. Paul Black's Avatar
    Posts : 12,252
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #20

    Brink said:
    Hello Paul,

    I'm not sure it's needed in the tutorial since option one already includes all apps.
    OK, thanks.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:08.
Find Us




Windows 10 Forums