Win10 Enterprise Sysprep
I have been working on an image for Win 10 Enterprise as we used to use LTSB but found out that some of the new computers we have do not want to to have some drivers installed such as graphics drivers under LTSB. I now have made the decision to move to Win 10 Enterprise. With that said,
I have syspreped the image on a machine and removed all the bloatware that i did not want to have installed on my golden image, and i have captured this image and when I do a test run on deploying all the bloatware is back on the computer with all users i log in under.
Any assistance would be appreciated on this
" Get-AppxPackage -allusers *3dbuilder* | Remove-AppxPackage
Get-AppxPackage -allusers *windowsalarms* | Remove-AppxPackage
Get-AppxPackage -allusers *Appconnector* | Remove-AppxPackage
Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage -allusers *windowscamera* | Remove-AppxPackage
Get-AppxPackage -allusers *CandyCrushSaga* | Remove-AppxPackage
Get-AppxPackage -allusers *officehub* | Remove-AppxPackage
Get-AppxPackage -allusers *skypeapp* | Remove-AppxPackage
Get-AppxPackage -allusers *getstarted* | Remove-AppxPackage
Get-AppxPackage -allusers *zunemusic* | Remove-AppxPackage
Get-AppxPackage -allusers *windowsmaps* | Remove-AppxPackage
Get-AppxPackage -allusers *Messaging* | Remove-AppxPackage
Get-AppxPackage -allusers *solitairecollection* | Remove-AppxPackage
Get-AppxPackage -allusers *ConnectivityStore* | Remove-AppxPackage
Get-AppxPackage -allusers *bingfinance* | Remove-AppxPackage
Get-AppxPackage -allusers *zunevideo* | Remove-AppxPackage
Get-AppxPackage -allusers *bingnews* | Remove-AppxPackage
Get-AppxPackage -allusers *onenote* | Remove-AppxPackage
Get-AppxPackage -allusers *CommsPhone* | Remove-AppxPackage
Get-AppxPackage -allusers *windowsphone* | Remove-AppxPackage
Get-AppxPackage -allusers *WindowsScan* | Remove-AppxPackage
Get-AppxPackage -allusers *bingsports* | Remove-AppxPackage
Get-AppxPackage -allusers *windowsstore* | Remove-AppxPackage
Get-AppxPackage -allusers *Office.Sway* | Remove-AppxPackage
Get-AppxPackage -allusers *Twitter* | Remove-AppxPackage
Get-AppxPackage -allusers *soundrecorder* | Remove-AppxPackage
Get-AppxPackage -allusers *bingweather* | Remove-AppxPackage
Get-AppxPackage -allusers *xboxapp* | Remove-AppxPackage
Get-AppxPackage -allusers *XboxOneSmartGlass* | Remove-AppxPackage
Get-AppxPackage -allusers *mira* | Remove-AppxPackage
Get-AppxPackage -allusers *LearnLanguagesforFree* | Remove-AppxPackage
Get-AppxPackage -allusers *FreshPaint* | Remove-AppxPackage
Get-AppxPackage -allusers *BingNews* | Remove-AppxPackage
Get-AppxPackage -allusers *Wallet* | Remove-AppxPackage
Get-AppxPackage -allusers *phone* | Remove-AppxPackage
Get-AppxPackage -allusers *Advertising* | Remove-AppxPackage
Get-AppxPackage -allusers *3dviewer* | Remove-AppxPackage
Get-AppxPackage -allusers *oneconnect* | Remove-AppxPackage
Get-AppxPackage -allusers *Print3D* | Remove-AppxPackage
Get-AppxPackage -allusers *Mixed* | Remove-AppxPackage
Get-AppxPackage -allusers *fit* | Remove-AppxPackage
Get-AppxPackage -allusers *feed* | Remove-AppxPackage
Get-AppxPackage -allusers *gethelp* | Remove-AppxPackage
Get-AppxPackage -allusers *video* | Remove-AppxPackage
Get-AppxPackage -allusers *photo* | Remove-AppxPackage
Get-AppxPackage -allusers *paint* | Remove-AppxPackage
Get-AppxPackage -allusers *purchase* | Remove-AppxPackage
get-appxpackage -allusers *SpeedTest * | Remove-appxpackage
get-appxpackage -allusers *game* | Remove-appxpackage
get-appxpackage -allusers *lens* | Remove-appxpackage
get-appxpackage -allusers *whiteboard* | Remove-appxpackage
get-appxpackage -allusers *Todos* | remove-appxpackage
get-appxpackage -allusers *XboxGamingOverlay* | remove-appxpackage
get-appxpackage -allusers *Microsoft.People* | Remove-appxpackage
Answers (3)
You are missing the -Online switch, see:
https://social.technet.microsoft.com/Forums/windows/en-US/3b3bfa03-95e1-4224-baad-00286079f9dc/sysprep-still-installs-provisioned-apps-after-removing-them?forum=win10itprosetup
and
https://docs.microsoft.com/en-us/powershell/module/dism/get-appxprovisionedpackage?view=win10-ps
Also that will not guarantee some apps will be installed for new users or pushed via Windows Updates, if that is a concern, microsoft recommends using GPO to enforce which apps can be installed or not:
Top Answer
If you go to LTSC and use the driver feed for your model(s) it works great. Have found every driver and works like a charm
but your problem is what Channeler stated. Here is my post task also to shut down other bloating also
start /wait cscript %SystemRoot%\System32\slmgr.vbs -ATO
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v BlockDomainPicturePassword /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon" /v SyncForegroundPolicy /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\BrowserEmulation" /v MSCompatibilityMode /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Internet Settings" /v ProvisionedHomePages /d "<www.tmcc.edu>" /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v PreventFirstRunPage /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" /v DisableFirstRunCustomize /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext" /v IgnoreFrameApprovalCheck /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext" /v DisableAddonLoadTimePerformanceNotifications /d 00000001 /t REG_DWORD /f
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Enviroment" /v LSFORCEHOST /d ms-vdf.tmccacad.tmcc.edu /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /d 00000000 /t REG_DWORD /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableFirstLogonAnimation /d 00000000 /t REG_DWORD /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /d 00000000 /t REG_DWORD /f
msiexec /qn /i "\\kbox\client_2\agent_provisioning\windows_platform\ampagent-9.0.167-x86.msi" HOST=kbox.tmcc.edu
c:\windows\w2d\ksleep 10
del C:\Users\Default\AppData\Local\Microsoft\Windows\webcache\*.* /f /q
del C:\Users\Default\AppData\Local\Microsoft\Windows\*.log1 /f /q /a:hs
del C:\Users\Default\AppData\Local\Microsoft\Windows\*.log2 /f /q /a:hs
del C:\Users\Default\AppData\Local\Microsoft\Windows\*.blf /f /q /a:hs
del C:\Users\Default\AppData\Local\Microsoft\Windows\*.regtrans-ms /f /q /a:hs
del C:\Users\Default\AppData\Local\Microsoft\Windows\Explorer\*.* /f /q
del c:\users\default\downloads\*.* /f /q /s
del "C:\Users\Default\AppData\Local\Apple Computer\iTunes\*.*" /f /q
del "C:\Users\Default\AppData\Local\Comms\UnistoreDB\*.*" /s /f /q
del "C:\Users\Default\AppData\Local\Google\Chrome\User Data\*.*" /s /f /q
del "C:\Users\Default\AppData\Local\Microsoft\Windows\Notifications\*.*" /f /q
del "C:\Users\Default\AppData\Local\NetBeans\Cache\8.1\*.*" /s /q /f
del "C:\Users\Default\AppData\Roaming\Apple Computer\Preferences\*.*" /s /q /f
del "C:\Users\Default\AppData\Roaming\GeoGebra\*.*" /s /q /f
del "C:\Users\Default\AppData\LocalLow\Google\GoogleEarth\*.*" /s /q /f
del "C:\Users\Default\AppData\Local\Mozilla\updates\*.*" /s /q /f
del "C:\Users\Default\AppData\Local\Mozilla\Firefox\Profiles\5hlsj9wb.default\*.*" /s /q /f
del "C:\Users\Default\AppData\Roaming\Mozilla\Firefox\Profiles\5hlsj9wb.default\*.sqlite" /q /f
del "C:\Users\Default\AppData\Local\ConnectedDevicesPlatform\L.Administrator\*.*" /q /f
del "C:\Users\Default\AppData\Local\Adobe\AcroCef\DC\Acrobat\Cache\Cache\*.*" /q /f
del "C:\Users\Default\AppData\Local\Intel\*.*" /s /q /f
del "C:\Users\Default\Documents\Premier AT\db\*.*" /q /f
del "C:\Users\Default\MicrosoftEdgeBackups\backups\*.*" /s /q /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /d 00000000 /t REG_DWORD /f
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v NotifyDownload /d 00000000 /t REG_DWORD /f
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /d 00000000 /t REG_DWORD /f
setx deployment.expiration.check.enabled false /m
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths /v "\\*\SYSVOL" /d "RequireMutualAuthentication=0" /t REG_SZ /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths /v "\\*\NETLOGON" /d "RequireMutualAuthentication=0" /t REG_SZ /f
reg add HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths /v "\\*\SYSVOL" /d "RequireMutualAuthentication=0" /t REG_SZ /f
reg add HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths /v "\\*\NETLOGON" /d "RequireMutualAuthentication=0" /t REG_SZ /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
:rem remove task put back
del /f /q C:\Windows\System32\Tasks\mssupdater.job
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\Application Experience\*.*"
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\CloudExperienceHost\*.*"
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\Customer Experience Improvement Program\*.*"
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\Feedback\*.*" /s
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\WindowsUpdate\*.*"
del /f /q "C:\Windows\System32\Tasks\Microsoft\Windows\Work Folders\*.*"
:rem remove active setups put back
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\>{22d6f312-b0f6-11d0-94ab-0080c74c7e95}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\>{22d6f312-b0f6-11d0-94ab-0080c74c7e95}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{3af36230-a269-11d1-b5bf-0000f8051515}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{3af36230-a269-11d1-b5bf-0000f8051515}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{44BBA855-CC51-11CF-AAFA-00AA00B6015F}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{44BBA855-CC51-11CF-AAFA-00AA00B6015F}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{45ea75a0-a269-11d1-b5bf-0000f8051515}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{45ea75a0-a269-11d1-b5bf-0000f8051515}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{5fd399c0-a70a-11d1-9948-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{5fd399c0-a70a-11d1-9948-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{630b1da0-b465-11d1-9948-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{630b1da0-b465-11d1-9948-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{6BF52A52-394A-11d3-B153-00C04F79FAA6}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{6BF52A52-394A-11d3-B153-00C04F79FAA6}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{6fab99d0-bab8-11d1-994a-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{6fab99d0-bab8-11d1-994a-00c04f98bbc9}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{7790769C-0471-11d2-AF11-00C04FA35D02}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{7790769C-0471-11d2-AF11-00C04FA35D02}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{C9E9A340-D1F1-11D0-821E-444553540600}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{C9E9A340-D1F1-11D0-821E-444553540600}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{CDD7975E-60F8-41d5-8149-19E51D6F71D0}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{CDD7975E-60F8-41d5-8149-19E51D6F71D0}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{17E568B5-10DA-3846-0F77-5E18F12AE949}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{17E568B5-10DA-3846-0F77-5E18F12AE949}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{22d6f312-b0f6-11d0-94ab-0080c74c7e95}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{22d6f312-b0f6-11d0-94ab-0080c74c7e95}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{452C39A5-D627-3DAB-9BA0-D0256425BE1C}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{452C39A5-D627-3DAB-9BA0-D0256425BE1C}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{ACD12E2E-AF43-EA75-4FCB-1A1A20EECF02}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{ACD12E2E-AF43-EA75-4FCB-1A1A20EECF02}" /f
reg delete "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{AD99243B-F007-0000-B1CC-22A4DDD4B96F}" /f
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components\{AD99243B-F007-0000-B1CC-22A4DDD4B96F}" /f
:rem kill store app updates
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /d 00000001 /t REG_DWORD /f
:rem kill windows telemetry runner
taskkill /f /im compattelrunner.exe /t
takeown /f c:\windows\system32\compattelrunner.exe /a
icacls c:\windows\system32\compattelrunner.exe /grant everyone:F /c
rename c:\windows\system32\compattelrunner.exe compattelrunners17.exe
:rem kill windows services
sc config sbamsvc start=demand
sc stop DiagTrack
sc stop dmwappushservice
sc delete DiagTrack
sc delete dmwappushservice
this was my last powershell cleanup for enterprise
get-appxpackage *BingWeather* | remove-appxpackage
get-appxpackage *Xbox* | remove-appxpackage
get-appxpackage *Messaging* | remove-appxpackage
get-appxpackage *OneNote* | remove-appxpackage
get-appxpackage *People* | remove-appxpackage
get-appxpackage *Photos* | remove-appxpackage
get-appxpackage *Alarms* | remove-appxpackage
get-appxpackage *Camera* | remove-appxpackage
get-appxpackage *Maps* | remove-appxpackage
get-appxpackage *Feedback* | remove-appxpackage
get-appxpackage *Zune* | remove-appxpackage
get-appxpackage *news* | remove-appxpackage
get-appxpackage *get* | remove-appxpackage
get-appxpackage *skype* | remove-appxpackage
get-appxpackage *oneconnect* | remove-appxpackage
get-appxpackage *office* | remove-appxpackage
get-appxpackage Microsoft.XboxGameCallableUI_1000.17134.1.0_neutral_neutral_cw5n1h2txyewy | remove-appxpackage
get-appxpackage *EclipseManager* | remove-appxpackage
get-appxpackage *ActiproSoftwareLLC* | remove-appxpackage
get-appxpackage *Duolingo* | remove-appxpackage
get-appxpackage *3DViewer* | remove-appxpackage
get-appxpackage *Print3D* | remove-appxpackage
get-appxpackage *Wallet* | remove-appxpackage
get-appxpackage *CBSPreview* | remove-appxpackage
get-appxpackage -allusers *get* | remove-appxpackage
get-appxpackage -allusers *skype* | remove-appxpackage
get-appxpackage -allusers *oneconnect* | remove-appxpackage
get-appxpackage -allusers *office* | remove-appxpackage
get-appxpackage -allusers *camera* | remove-appxpackage
get-appxpackage -allusers *Bingnews* | remove-appxpackage
get-appxpackage -allusers *Xbox* | remove-appxpackage
get-appxpackage -allusers *Messaging* | remove-appxpackage
get-appxpackage -allusers *OneNote* | remove-appxpackage
get-appxpackage -allusers *People* | remove-appxpackage
get-appxpackage -allusers *Photos* | remove-appxpackage
get-appxpackage -allusers *Alarms* | remove-appxpackage
get-appxpackage -allusers *Maps* | remove-appxpackage
get-appxpackage -allusers *Feedback* | remove-appxpackage
get-appxpackage -allusers *Zune* | remove-appxpackage
get-appxpackage -allusers Microsoft.XboxGameCallableUI_1000.17134.1.0_neutral_neutral_cw5n1h2txyewy | remove-appxpackage
get-appxpackage -allusers *EclipseManager* | remove-appxpackage
get-appxpackage -allusers *ActiproSoftwareLLC* | remove-appxpackage
get-appxpackage -allusers *Duolingo* | remove-appxpackage
get-appxpackage -allusers *3DViewer* | remove-appxpackage
get-appxpackage -allusers *Print3D* | remove-appxpackage
get-appxpackage -allusers *Wallet* | remove-appxpackage
get-appxpackage -allusers *CBSPreview* | remove-appxpackage
remove-appxprovisionedpackage -online -packagename Microsoft.BingWeather_4.24.11294.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.GetHelp_10.1706.10952.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Getstarted_6.10.10872.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Messaging_2018.222.2231.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Microsoft3DViewer_4.1804.19012.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.MicrosoftOfficeHub_2018.428.1013.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Office.OneNote_2015.9330.20531.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.OneConnect_4.1805.1291.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.People_2018.516.2011.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Print3D_2.0.10611.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.SkypeApp_12.1815.209.0_neutral_~_kzf8qxf38zg5c
remove-appxprovisionedpackage -online -packagename Microsoft.Wallet_2.1.18009.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WebMediaExtensions_1.0.10671.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Windows.Photos_2018.18041.15210.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsAlarms_2018.516.2059.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsCamera_2018.227.30.1000_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsFeedbackHub_2018.425.657.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsMaps_2018.216.2133.1000_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Xbox.TCUI_1.11.29001.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxApp_41.41.18005.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxGameOverlay_1.28.25001.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxGamingOverlay_1.15.1001.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxIdentityProvider_12.41.24002.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxSpeechToTextOverlay_1.21.13002.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.ZuneMusic_2019.18041.14611.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.ZuneVideo_2019.17122.16211.1000_neutral_~_8wekyb3d8bbwe
Comments:
-
No need to call get-appxpackage each time.
$apps = @(
'Microsoft.XboxApp'
'Microsoft.ZuneMusic'
'Microsoft.ZuneVideo'
'microsoft.windowscommunicationsapps'
'Microsoft.MinecraftUWP'
)
foreach ($app in $apps) {
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online
} - isudothings 5 years ago-
This will clean it up and remove it from all users, but i would still need to apply channeler's fixes correct?
I will update with a follow up tomorrow when I am in the office and finally able to take another run at this. - MiguelT 5 years ago-
yes you want to apply the reg key so they don't come back post sysprep
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /d 00000001 /t REG_DWORD /f - SMal.tmcc 5 years ago