Homer Posted August 2, 2017 Posted August 2, 2017 Morning all Wondering how people go about removing the built in crapps using a task sequence? I don't really want to go down the route of capturing images etc. I have found a few different scripts to de-crapp the install but these seem to depend on being run either as a user or while logged in (which the SCCM task sequences, are not) We're using SCCM CB so any help is well received Cheers
skell Posted August 2, 2017 Posted August 2, 2017 I'm working on this at the moment Download 1703 (Edu or ENT, doesn't matter) Extract Install.wim from it and stick it in a folder There is a powershell script on here called Invoke-RemoveBuiltinAppsOffline. This script removes any apps you specify in the script, then closes the wim up again. I've modified it slightly as I also wanted to edit some folders in the WIM, add fonts etc. Then you deploy that as part of your task sequence, then any apps on top of it. Taken me a while, but I'm almost at a place where I feel ready to deploy Windows 10, mainly thanks to this script.
Homer Posted August 2, 2017 Author Posted August 2, 2017 Cheers skell do you have a copy of the script to hand? I searched it and the only result was you asking a question referencing it. There's quite a few different things going around so if I could use yours (as you're happy with it!) I'd really appreciate it Cheers
ADMaster Posted August 2, 2017 Posted August 2, 2017 I remove apps during OSD and do not modify the win. It works great for me, I do all customization on the fly during OSD. No messing around with the wim, capture task etc. Here is the script I use to remove apps. I copied / cobbled it together back on windows 8 and just added to the $appslist for windows 10. You should just need to change the $applist to suit your preferences. remove-selectedw10.ps1 2
MdKnightR Posted September 7, 2017 Posted September 7, 2017 I remove apps during OSD and do not modify the win. It works great for me, I do all customization on the fly during OSD. No messing around with the wim, capture task etc. This is similar to the way I've been deploying Windows 10 to new devices, but I need a way to remove the default apps that get re-installed as a result of upgrading 1607 to 1703 on existing devices. Any ideas?
ADMaster Posted September 7, 2017 Posted September 7, 2017 I do not deploy the feature upgrades directly. I create an upgrade TS and have it run these steps during the upgrade. It allows me to keep all my branding, customization,remove apps and anything else that needs done. 1
sparkeh Posted September 7, 2017 Posted September 7, 2017 I just decided to suck it up for 1703 and reimage everything. From now on the apps won't get reinstalled during upgrades
nicholab Posted September 7, 2017 Posted September 7, 2017 I just decided to suck it up for 1703 and reimage everything. From now on the apps won't get reinstalled during upgrades So you mean you captured the image and then deployed it. This is how I did my images I used MDT for capture and SCCM to deploy the images. Well I did MDT with the copy profile and then captured and deployed this image with SCCM.
sparkeh Posted September 7, 2017 Posted September 7, 2017 So you mean you captured the image and then deployed it. This is how I did my images I used MDT for capture and SCCM to deploy the images. Well I did MDT with the copy profile and then captured and deployed this image with SCCM. Well I don't do image capture, just deploy from source.
MdKnightR Posted September 8, 2017 Posted September 8, 2017 I do not deploy the feature upgrades directly. I create an upgrade TS and have it run these steps during the upgrade. It allows me to keep all my branding, customization,remove apps and anything else that needs done. [ATTACH=CONFIG]45184[/ATTACH] We'll be using the Windows 10 Servicing feature of SCCM to upgrade our machines based on deployment rings. The only downside is the default apps issue. Otherwise, the upgrade doesn't change anything about our custom image.
MdKnightR Posted September 8, 2017 Posted September 8, 2017 I just decided to suck it up for 1703 and reimage everything. From now on the apps won't get reinstalled during upgrades I'm starting to feel this way too. There just doesn't seem to be a reliable way to remove the default apps on newly upgraded PCs using Windows 10 Servicing in SCCM. The closest I've come to a solution is to set a logon script in local group policy that strips out the apps from the logged on user, but even then, it won't work until the 2nd time a user logs in. It doesn't seem to recognize the initial profile creation as the first logon.
2097 Posted September 2, 2019 Posted September 2, 2019 I remove apps during OSD and do not modify the win. It works great for me, I do all customization on the fly during OSD. No messing around with the wim, capture task etc. Here is the script I use to remove apps. I copied / cobbled it together back on windows 8 and just added to the $appslist for windows 10. You should just need to change the $applist to suit your preferences. [ATTACH]44819[/ATTACH] [ATTACH=CONFIG]44820[/ATTACH] I really did struggle finding a script that worked ( which also logged everything ) that was deployable in a TS ( not a capture ) Yours worked fine thank you.. ( heres a slight update on programs to remove ) $AppsList = "microsoft.windowscommunicationsapps","Microsoft.WindowsAlarms","Microsoft.SkypeApp","Microsoft.ZuneVideo",` "Microsoft.ZuneMusic","Microsoft.YourPhone","Microsoft.XboxApp","Microsoft.WindowsSoundRecorder",` "Microsoft.Wallet","Microsoft.People","Microsoft.OneConnect","Microsoft.Office.OneNote",` "Microsoft.MixedReality.Portal","Microsoft.MicrosoftStickyNotes","Microsoft.MicrosoftSolitaireCollection","Microsoft.MicrosoftOfficeHub",` "Microsoft.Microsoft3DViewer","Microsoft.Messaging","Microsoft.Getstarted","Microsoft.GetHelp",` "Microsoft.WindowsFeedbackHub","Microsoft.WindowsMaps","Microsoft.BingWeather","Microsoft.XboxGameOverlay",` "Microsoft.XboxGamingOverlay","Microsoft.XboxIdentityProvider","Microsoft.XboxSpeechToTextOverlay","Microsoft.officehub" Now to remove onedrive
BOOT Posted September 3, 2019 Posted September 3, 2019 Don't remove Microsoft.MicrosoftSolitaireCollection. It will break app dependencies if you do.
2097 Posted September 5, 2019 Posted September 5, 2019 Whats strange is , the script worked fine first time around . Now i get this ( This is the PS log that it writes to the C:\ ) Logging to \remove-selectedw10.ps1.log Get-AppxPackage : The term 'Get-AppxPackage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\_SMSTaskSequence\Packages\CHA000D2\remove-selectedw10.ps1:52 char:17 This is the problem i was having with a lot of scripts i use . I have activated powershell in the bootimage In the task sequence its set as a powershell script with a package , and the script name is remove-selectedw10.ps1
Arthur Posted September 5, 2019 Posted September 5, 2019 The method described in the blog post below works perfectly for me with SCCM during OSD (even with v1903). Removing Windows 10 Built-in Apps Offline WinPE Quick Guide
2097 Posted September 6, 2019 Posted September 6, 2019 The method described in the blog post below works perfectly for me with SCCM during OSD (even with v1903). Removing Windows 10 Built-in Apps Offline WinPE Quick Guide Thanks for that , noticed one thing wrong on mine . I didnt have "Enhanced" storage set on the boot image. Giving it a test image now to see what happens !
2097 Posted September 6, 2019 Posted September 6, 2019 Ok first image went fine , going to run it again
Arthur Posted September 6, 2019 Posted September 6, 2019 That's good news. I had a feeling it might have been something to do with the boot image.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now