I use remove, to remove several windows components before I place the install.wim on my OPSI server. This way you can remove certain features, so they will never be available, and do not take up space in the winsxs folder.
An other option is to change unattended.xml, and you make the beginning of the file look like this:
Code: Alles auswählen
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="configure">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="InboxGames" state="false" />
<selection name="Chess" state="false" />
<selection name="FreeCell" state="false" />
<selection name="Hearts" state="false" />
<selection name="Internet Games" state="false" />
<selection name="Minesweeper" state="false" />
<selection name="More Games" state="false" />
<selection name="PurblePlace" state="false" />
<selection name="Shanghai" state="false" />
<selection name="Solitaire" state="false" />
<selection name="SpiderSolitaire" state="false" />
<selection name="Indexing-Service-Package" state="false" />
<selection name="Internet-Explorer-Optional-amd64" state="false" />
<selection name="NetFx3" state="false" />
<selection name="Printing-Foundation-Features" state="false" />
<selection name="MSRDC-Infrastructure" state="false" />
<selection name="TabletPCOC" state="false" />
<selection name="TelnetClient" state="false" />
<selection name="TelnetServer" state="false" />
<selection name="TIFFIFilter" state="false" />
<selection name="WindowsGadgetPlatform" state="false" />
<selection name="Xps-Foundation-Xps-Viewer" state="false" />
<selection name="Printing-XPSServices-Features" state="false" />
<selection name="SearchEngine-Client-Package" state="false" />
</package>
</servicing>
I think the servicing part of the xml can not be in a different position. I'm not sure, but why bother. Of course you would have to edit the assemblyIdentity line to your own version.
Also an option is to use 'group policies', and a registry scanner. This way you can find a lot of the registry settings for different policies. For example:
Code: Alles auswählen
; Disable Location and location sensors
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors]
set "DisableLocation" = REG_DWORD:00000001
set "DisableSensors" = REG_DWORD:00000001