App Packages .bat File Erroring

Page 2 of 2 FirstFirst 12

  1. Posts : 194
    Windows 10
    Thread Starter
       #11

    App Packages .bat File Erroring-untitled.png

    What dash is wrong this time?
      My Computer


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

    It looks like you now need to substitute the quotation marks like in red below....

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Microsoft.WindowsAlarms*"} | remove-appxprovisionedpackage -online"

    ...with an apostrophe like in red below instead.

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Microsoft.WindowsAlarms*'} | remove-appxprovisionedpackage -online"
      My Computers


  3. Posts : 194
    Windows 10
    Thread Starter
       #13

    So it appeared to be working now up until the point of

    C:\Windows\system32>PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Microsoft.SkypeApp*'} | remove-appxprovisionedpackage -online"
    It just froze here.
      My Computer


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

    The command worked for me, but sometimes it may take for it to finish.

    App Packages .bat File Erroring-command.png
      My Computers


  5. Posts : 194
    Windows 10
    Thread Starter
       #15

    Finally! OK cool. We got this figured out.

    Recommendation: At the bottom of the page where I got all of the commands from, it would be cool if there were some already made .app files that we could download so this wouldn't be an issue!
      My Computer


  6. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
       #16
      My Computers


  7. Posts : 194
    Windows 10
    Thread Starter
       #17

    Right, I made my .bat based off that but there isn't an option to download a .bat file on that page made by you, unless I am missing it somewhere.
      My Computer


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

    I adjusted the commands in the tutorial to help so they will now work when using them in a .bat file instead of directly in PowerShell.
      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 02:22.
Find Us




Windows 10 Forums