Quantcast
Channel: Symantec Connect - ブログエントリ
Viewing all articles
Browse latest Browse all 5094

Windows 10 - Remove Provisioned Apps

$
0
0

So you patched your Windows 10 install.wim with the latest updates, how about removing the built in "provisioned" applications that come with Windows 10 but that you don't want in an enterprise environment. So, after you mount the image as per this post:

https://www-secure.symantec.com/connect/blogs/scri...

but before you unmount it you can run the following:

REM Run on DS - dism Remove-Prov...Appx... from mounted copied Install WIM

set os=win10x64
set Winos=WinOS009
set wim=.\deploy\%winos%\sources\sources\install.wim 
set mount=d:\mount
set dism=.\Drivers\Win10x64\Microsoft\DISM

FOR %%A IN (Microsoft.3DBuilder_10.9.50.0_neutral_~_8wekyb3d8bbwe,
Microsoft.Appconnector_2015.707.550.0_neutral_~_8wekyb3d8bbwe,
Microsoft.BingFinance_4.6.169.0_neutral_~_8wekyb3d8bbwe,
Microsoft.BingNews_4.6.169.0_neutral_~_8wekyb3d8bbwe,
Microsoft.BingSports_4.6.169.0_neutral_~_8wekyb3d8bbwe,
Microsoft.BingWeather_4.6.169.0_neutral_~_8wekyb3d8bbwe,
Microsoft.Messaging_1.10.22012.0_neutral_~_8wekyb3d8bbwe,
Microsoft.MicrosoftOfficeHub_2015.6306.23501.0_neutral_~_8wekyb3d8bbwe,
Microsoft.MicrosoftSolitaireCollection_3.3.9211.0_neutral_~_8wekyb3d8bbwe,
Microsoft.Office.OneNote_2015.6131.10051.0_neutral_~_8wekyb3d8bbwe,
Microsoft.Office.Sway_2015.6216.20251.0_neutral_~_8wekyb3d8bbwe,
Microsoft.People_2015.1012.106.0_neutral_~_8wekyb3d8bbwe,
Microsoft.SkypeApp_3.2.1.0_neutral_~_kzf8qxf38zg5c,
Microsoft.XboxApp_2015.930.526.0_neutral_~_8wekyb3d8bbwe,
Microsoft.ZuneMusic_2019.6.13251.0_neutral_~_8wekyb3d8bbwe,
Microsoft.ZuneVideo_2019.6.13251.0_neutral_~_8wekyb3d8bbwe) DO (%dism%\dism.exe /Image:%mount% /Remove-ProvisionedAppxPackage /PackageName:%%A)

You can get a list of provisioned apps by running 

Get-AppxProvisionedPackage -Online

in powershell. You can remove the provisioned Appx packages using powershell commands but they use DISM anyway so I prefer to remove that extra layer; here's the link translating DISM command into the equivalent powershell cmdlet command, you need the dism powershell cmdlet installed too; it's in the Windows Administrative Install Kit (AIK):

https://technet.microsoft.com/en-us/library/hh8250...

Note the extra 's' here: Dism.exe /Image:<...> /Get-ProvisionedAppxPackages Powershell: Get-AppxProvisionedPackage

You can also find scripts online to run the Get-AppxProvisionedPackage and pipe the output into the Remove-ProvisionedAppxPackage command but I prefer to keep control of the list removed.

This approach should prevent sysprep errors caused by user accounts that have logged in pre sysprep having apps provisioned to them and Apps being updated from the internet between imaging, provisioning to a user and sysprep running.


Viewing all articles
Browse latest Browse all 5094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>