App Packages .bat File Erroring

Page 1 of 2 12 LastLast

  1. Posts : 194
    Windows 10
       #1

    App Packages .bat File Erroring


    I am getting nothing but errors when I attempt to run my .bat file as an Admin. Can anyone tell me what's going on?

    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.3dbuilder*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*AdobeSystemsIncorporated.AdobePhotoshopExpress*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsAlarms*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Appconnector*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Asphalt8Airborne*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsCalculator*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*microsoft.windowscommunicationsapps*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsCamera*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*king.com.CandyCrushSodaSaga*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.DrawboardPDF*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Facebook*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*BethesdaSoftworks.FalloutShelter*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*FarmVille2CountryEscape*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsFeedbackHub*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.GetHelp*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Getstarted*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.ZuneMusic*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*microsoft.windowscommunicationsapps*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsMaps*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Messaging*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Wallet*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.MicrosoftSolitaireCollection*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Todos*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*ConnectivityStore*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*MinecraftUWP*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.OneConnect*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingfinance*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.ZuneVideo*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.BingNews*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.MicrosoftOfficeHub*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Netflix*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*onenote*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.MSPaint*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*PandoraMediaInc*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.People*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*CommsPhone*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowsphone*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Windows.Photos*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Print3D*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*flaregamesGmbH.RoyalRevolt2*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.ScreenSketch*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*AutodeskSketchBook*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.SkypeApp*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.ScreenSketch*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingsports*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.MicrosoftStickyNotes*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsStore*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Office.Sway*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.Getstarted*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Twitter*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft3DViewer*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.WindowsSoundRecorder*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.BingWeather*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.XboxApp*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.XboxGamingOverlay*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.XboxIdentityProvider*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*XboxOneSmartGlass*"} | remove-appxprovisionedpackage –online"
    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft.XboxSpeechToTextOverlay*"} | remove-appxprovisionedpackage –online"
    Pause
    app packages.bat
      My Computer


  2. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #2

    Hello,

    What error messages are you getting?

    Please go ahead and post a screenshot showing this to see if anything may stand out.
      My Computers


  3. Posts : 194
    Windows 10
    Thread Starter
       #3

    As requested!
    App Packages .bat File Erroring-untitled.png
      My Computer


  4. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #4

    It looks like the dashes before "-online" are not translating correctly in the command for some reason causing the error.
      My Computers


  5. Posts : 194
    Windows 10
    Thread Starter
       #5

    I think I had this problem once before!
    What is the correct dash and what is the wrong dash?
      My Computer


  6. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #6

    It looks correct in your first post, but for whatever reason, it's not translating correcting into the command prompt.

    Try the minus "-" key instead as a test.
      My Computers


  7. Posts : 194
    Windows 10
    Thread Starter
       #7

    So still the same problem.

    App Packages .bat File Erroring-untitled.png

    Can you potentially make the right one for me and zip it up?
      My Computer


  8. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #8

    It looks like you just missed using minus also on the "-online" at the end of the command.
      My Computers


  9. Posts : 194
    Windows 10
    Thread Starter
       #9

    Got another error.

    App Packages .bat File Erroring-untitled.png
      My Computer


  10. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #10

    Getting there.

    It looks like you need to use minus instead of dash for "-like" in the command as well.
      My Computers


 

  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 16:13.
Find Us




Windows 10 Forums