Windows 7 Deployment disable Windows Features

Hi All,

I'm working on a Windows 7 Ent. deployment with SCCM 2007 R2 SP2. I've build a reference image without any problems. After deploying the image I found out there are a lot of unwanted features, like Media Center and DVD Maker. I've been searching how to futher customize my image. But I can't find a clear anwser. My SCCM deployment is not integrated with MDT 2010. Is there a simple way to exclude features in my reference image??

Any help is welcome.

Regards,

Coen

June 11th, 2010 12:24pm

Use WSIM (Windows System Image Manager; part of WAIK that's installed with ConfigMgr) to create a unattend.xml file. Use that in your tasksequence.
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2010 12:53pm

Okay, I did know you can use WSIM to create a unattended.xml file which can be used in SCCM. I did ask this question, because a lot of people seems to have similar problems like my. I just tried it myself, but unfortunately I also did not succeed.

I did create the following answer file:

<?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.7600.16385" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="" />
            <selection name="MediaCenter" state="false" />
            <selection name="TelnetClient" state="true" />
        </package>
    </servicing>
    <cpi:offlineImage cpi:source="wim://srv-cm01/source/os/windows%207%20ent%20x86/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

I created a Setting Package and copied too my distributionpoint. After that I edit my Task Sequence so that it will use my Settings Package. After deploying the, I still got Media Center installed. :-(
I think SCCM will not apply any settings in the Package Section. Some people did succeed to apply locale setting, but I want to disable some of the Windows Features.

Anymore tips??

June 11th, 2010 3:03pm

you can hide Media center with this unattend.xml key

<settings pass="specialize">
  <component name="Microsoft-Windows-Shell-Setup" language="neutral" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" xmlns:wcm="
http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<WindowsFeatures>
    <ShowMediaCenter>false</ShowMediaCenter>
</WindowsFeatures>

removing the DVD maker features you can do whit this command ran from a TS step

dism /online /disable-feature /featureName:OpticalMediaDisc

for Media center its

dism /online /disable-feature /featureName:MediaCenter

It will not remove the features, only disable them.. And remember that you need to run the dism command from the TS when it is in the full OS, not Winpe.. (dism is a build in feature of Win7)

 

Michael Petersen

 

Free Windows Admin Tool Kit Click here and download it now
June 11th, 2010 4:53pm

I think following links are what you what you needed:

Enable or Disable Windows Features Online
http://technet.microsoft.com/en-us/library/dd744582(WS.10).aspx

WindowsFeatures
http://technet.microsoft.com/en-us/library/cc749548(WS.10).aspx

Hope it helps.

June 14th, 2010 9:51am

Hi,

If ShowMediaCenter is set to false but the reference image has it installed, does it install when deployed?

I have been trying to get the DISM command to run from my task sequence (mdt 2012 sp1) but it hangs the deployment.

i have the command in my custom tasks area running as a command line with that string:

dism /online /disable-feature /featureName:MediaCenter

does this string need to run with elevated privlidges to work?  if so, how would i do that?

Thanks.

Free Windows Admin Tool Kit Click here and download it now
December 10th, 2013 12:13am

You need to add /quiet to your command.

dism.exe /online /disable-feature /featurename:MediaCenter /quiet /norestart

February 12th, 2015 8:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics