/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to uninstall Windows 10 apps for all users

03/22/2019 6235 views

We are doing a rollout of laptops and workstation using windows 10 pro and are driving me crazy by the default apps installed with windows.  i am checking what are you guys doing to remove the app from all users i see a lot of powershell scripts online just checking whats working for you. any help would be greatly appreciated.


Thanks!

Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

0

I get rid of mine as a post install task in the installation.

write list of apps needed for uninstall in a text file.....save as a PowerShell script  (PS1)

call it "RemoveApps.ps1" or whatever else you like.

It should have all the apps you want to remove listed as below for example

Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *CandyCrushSaga* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage


then create a bat file called "uninstall.bat" or any other name with the command...

powershell.exe -executionPolicy bypass -file RemoveAppsFinal.ps1


Zip these two up and upload to the k2  in a post install task.

(don't zip the folder they are in......just the two files)

In the "Full command line" box call the bat file..

uninstall.bat

cleans all the apps I don't need.


Answered 03/24/2019 by: akmagnum
Red Belt

All Answers

0
If you use the Enterprise Edition is easier... 

OR

Use GPO Policies to remove Apps, and\or prevent users from Accessing the Store.

OR

Build and Push a PowerShell Script to Remove apps:

https://www.itninja.com/question/windows-10-removal-of-extra-non-essential-applications-and-services
Answered 03/22/2019 by: Channeler
Red Belt

0

You need to get rid for All Users, you need to use -AllUsers

See below


Function RemMostApps {
        Write-Host "***Removing all apps and provisioned appx packages for this machine except Photos,Calculator...***"     
        Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*Microsoft.Net.Native*" -and $_.name -notlike "*Calculator*" -and $_.name -notlike "*sticky*" -and $_.name -notlike "*Windows.Photos*" -and $_.name -notlike "*SoundRecorder*" -and $_.name -notlike "*MSPaint*"} | Remove-AppxPackage -erroraction silentlycontinue
        Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*Microsoft.Net.Native*" -and $_.name -notlike "*Microsoft.VCLibs*" -and $_.name -notlike "*Calculator*" -and $_.name -notlike "*sticky*" -and $_.name -notlike "*Windows.Photos*" -and $_.name -notlike "*SoundRecorder*" -and $_.name -notlike "*MSPaint*"} | Remove-AppxPackage -erroraction silentlycontinue
        Get-AppxProvisionedPackage -online | where-object {$_.displayname -notlike "*Microsoft.Net.Native*" -and $_.displayname -notlike "*Microsoft.VCLibs*" -and $_.displayname -notlike "*Calculator*" -and $_.displayname -notlike "*sticky*" -and $_.displayname -notlike "*Windows.Photos*" -and $_.displayname -notlike "*SoundRecorder*" -and $_.displayname -notlike "*Netflix*" -and $_.displayname -notlike "*MSPaint*"} | Remove-AppxProvisionedPackage -online -erroraction silentlycontinue      
}   

RemMostApps


This gets rid of everything apart from Netflix I think.  I do not recommend getting rid of the store though.

Once it runs, when you login as the New User it will have cleaned up all the apps.

Answered 03/26/2019 by: Ziggi
Blue Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ