App Packages .bat File Erroring Solved

Page 1 of 2 12 LastLast
  1.    #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 ComputerSystem Spec

  2. Brink's Avatar
    Posts : 36,979
    64-bit Windows 10 Pro build 18860
       #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 ComputersSystem Spec

  3.    #3

    As requested!
    Click image for larger version. 

Name:	Untitled.png 
Views:	1 
Size:	42.0 KB 
ID:	221670
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 36,979
    64-bit Windows 10 Pro build 18860
       #4

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

  5.    #5

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

  6. Brink's Avatar
    Posts : 36,979
    64-bit Windows 10 Pro build 18860
       #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 ComputersSystem Spec

  7.    #7

    So still the same problem.

    Click image for larger version. 

Name:	Untitled.png 
Views:	1 
Size:	45.9 KB 
ID:	221677

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

  8. Brink's Avatar
    Posts : 36,979
    64-bit Windows 10 Pro build 18860
       #8

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

  9.    #9

    Got another error.

    Click image for larger version. 

Name:	Untitled.png 
Views:	2 
Size:	54.0 KB 
ID:	221679
      My ComputerSystem Spec

  10. Brink's Avatar
    Posts : 36,979
    64-bit Windows 10 Pro build 18860
       #10

    Getting there.

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


 
Page 1 of 2 12 LastLast

Related Threads
Forgive me if I sound totally stupid for asking this but how do I use ICD to add apps such as MS Office 365, Chrome etc using Windows ICD because I can't find anything on search engines and the only option I can see allows .appx files and app...
I uninstalled some of the built in win 10 app packages and now wish to re-install one of them. Movies & TV. https://www.windowscentral.com/how-uninstall-remove-restore-built-apps-windows-10 This is the UNINSTALL cmd for Movies & TV. ...
Hi, Since the update, Microsoft is pushing strange Update Packages to me. Before the Update, everything was fine, now the Text says i.e.: for AMD64 based systems KB4051963 but what the heck, I do have a x64 based system (Intel). I don't...
Using Provisioning Packages in Installation and Upgrade
Hello Everyone, While reading about Provisioning Packages, I cannot figure out where and when to use them? I really appreciate if you could help find some use cases of PP. Why Microsoft came up with the idea of PP? Does they replace GPOs?...
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 05:06.
Find Us