Page 1 of 3 123 LastLast
  1.    2 Weeks Ago #1
    Join Date : Jul 2015
    Posts : 87
    Windows 10

    Updating .bat File, Removing Default Apps


    I haven't reinstalled Windows 10 or updated it in about a year. When I did, there were several new apps that are completely junk. I have a .bat file that I use to clean stuff up but it's a little outdated and I had to go into the Start menu and uninstall a few apps by hand.

    Here is what I got.

    @rem Remove Apps

    PowerShell -Command "Get-appxpackage -allusers *3dbuilder* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowsalarms* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *Appconnector* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowscalculator* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowscommunicationsapps* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowscamera* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *CandyCrushSaga* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *CandyCrushSodaSaga* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *officehub* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *skypeapp* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *getstarted* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *zunemusic* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowsmaps* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *Messaging* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *solitairecollection* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *bingfinance* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *zunevideo* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *bingnews* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *onenote* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *CommsPhone* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowsphone* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *photos* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *WindowsScan* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *bingsports* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *windowsstore* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *Office.Sway* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *Twitter* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *soundrecorder* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *bingweather* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *xboxapp* | Remove-AppxPackage"
    PowerShell -Command "Get-appxpackage -allusers *XboxOneSmartGlass* | Remove-AppxPackage"
    I was hoping we could add a few things such as Connect, Get Help, Paint 3D, Sticky Notes, etc. Does anyone have an updated .bat file they can hook me up with?
      My ComputerSystem Spec
  2.    2 Weeks Ago #2
    Join Date : Oct 2016
    Caledon, Ontario, Canada
    Posts : 4,088
    Windows 10 Pro Build 1703

    Hi SightUp.

    Don't have a bat file but step 4 in Option 2 will give you complete list and you can mod yours.

    Uninstall Apps in Windows 10


    Ken
      My ComputerSystem Spec
  3.    2 Weeks Ago #3
    Join Date : Jul 2015
    Posts : 87
    Windows 10
    Thread Starter

    Awesome. Two questions.

    First, does "@rem Remove Apps" need to be on top? Or was that something extra that was added when I downloaded the original .bat?

    Second, in the guide, it says "(To only remove XXX app from new accounts created afterwards)" Does this mean that it removes the package folder so it would actually end up saving space?
      My ComputerSystem Spec
  4.    2 Weeks Ago #4
    Join Date : Aug 2016
    S/E England
    Posts : 4,524
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by SightUp View Post
    does "@rem Remove Apps" need to be on top? Or was that something extra that was added when I downloaded the original .bat?
    By default, commands in a .bat file are echoed to the screen as they are executed. The @ sign in a .bat file says 'don't echo the command on this line'. The REM command is a 'remark' (all text that follows is a comment and not an executable command line). That line is therefore not shown on screen when you run the .bat and is just there to tell you what the purpose of the .bat file is.
      My ComputersSystem Spec
  5.    2 Weeks Ago #5
    Join Date : Jul 2015
    Posts : 87
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    By default, commands in a .bat file are echoed to the screen as they are executed. The @ sign in a .bat file says 'don't echo the command on this line'. The REM command is a 'remark' (all text that follows is a comment and not an executable command line). That line is therefore not shown on screen when you run the .bat and is just there to tell you what the purpose of the .bat file is.
    So it's OK to delete it then?
      My ComputerSystem Spec
  6.    2 Weeks Ago #6
    Join Date : Aug 2016
    S/E England
    Posts : 4,524
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by SightUp View Post
    So it's OK to delete it then?
    Yes. It does nothing.

    REM lines are useful though, you could add some of your own to say the date when you wrote the file, the version of windows it applies to, give it a revision number, or anything else you like to remind yourself of in the future.
      My ComputersSystem Spec
  7.    2 Weeks Ago #7
    Join Date : Jul 2015
    Posts : 87
    Windows 10
    Thread Starter

    Awesome. So I just need an answer to question number two!
      My ComputerSystem Spec
  8.    2 Weeks Ago #8
    Join Date : Aug 2016
    S/E England
    Posts : 4,524
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by SightUp View Post
    Second, in the guide, it says "(To only remove XXX app from new accounts created afterwards)" Does this mean that it removes the package folder so it would actually end up saving space?
    You are asking about Option Three in the tutorial Uninstall Apps in Windows 10 ?

    For each app the first line of code uninstalls the app for current users. The second line where it says...
    (To only remove XXX app from new accounts created afterwards)
    ...includes a 'remove-appxprovisionedpackage' command which will indeed remove the install package and gain some space (not a lot, apps are not generally very large).
      My ComputersSystem Spec
  9.    2 Weeks Ago #9
    Join Date : Jul 2015
    Posts : 87
    Windows 10
    Thread Starter

    At line:1 char:67
    + ... ovisionedpackage Żonline | where-object {$_.packagename Żlike *solita ...
    + ~~~~~
    Unexpected token 'Żlike' in expression or statement.
    + CategoryInfo : ParserError: ( [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken
    I am getting that error due to the following command.

    PowerShell -Command "Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*solitairecollection*"} | remove-appxprovisionedpackage –online"
    Can this not be done via .bat file?
      My ComputerSystem Spec
  10.    2 Weeks Ago #10
    Join Date : Aug 2016
    S/E England
    Posts : 4,524
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by SightUp View Post
    I am getting that error due to the following command.
    Can this not be done via .bat file?
    The tutorial says to run the commands in an elevated powershell. You'll probably need to run the .bat as an administrator, say from within an elevated command prompt.
      My ComputersSystem Spec

 
Page 1 of 3 123 LastLast


Similar Threads
Thread Forum
Solved Updating .reg File, Removing Folder From "This PC
What I have already is this: This works perfectly. Microsoft, in their good wisdom, decided to add a new folder however. I need some help. I found a website that tells me exactly how to remove it. I did it manually but going forward, I'd...
Customization
>.NBF file in Default apps
Is it possible to remove the .NBF from the list. 113119
General Support
File associations revert to Windows default apps on every boot
Every time I reboot, the file associations for images (jpg/png), media (mp3/wav/mp4/mkv) revert back to the default Microsoft apps. I prefer to use VLC for videos, Winamp for audio and Irfanview for images, and it's getting really annoying having to...
Software and Apps
Solved Removing default user
I have obtained a 'legacy' computer with W10 on it. There is a single user in the configuration, and the computer is 'named' after that user, meaning that when I look at my router, or see the computer in my network neighborhood, I see this user's...
User Accounts and Family Safety
store apps keep updating same runtime file
When I go to the store and update my apps it also downloads and installs Microsoft Native runtime pack 1.123101.0. It keeps doing this every time and always the same file. Anyone know of a solution to this Thanks
Software and Apps
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 15:42.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums