/build/static/layout/Breadcrumb_cap_w.png
03/22/2019 819 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
Purple Belt