SCCM : Windows 7 deployments & unattended.xml
February 2, 2010 at 10:32 am in ConfigMgr, ConfigMgr 2007, ConfigMgr SP2, configmgr2007, OSD, sccm, SCCM 2007, SCCM 2007 R2, SCCM 2007 SP2, sccm2007 by Kenny Buntinx [MVP]
How can I customize my Windows 7 deployment , such as the regional settings, Firewall , internet explorer , keyboard settings? Even if you are using SCCM & task sequences you still want to customize your windows 7 image thru a unattend.xml file .
As I had trouble to find some examples to start with , I will post mine for Windows 7 x86 and x64 .
Now you can add or customise many more changes to your Unattend.xml file and use them to apply changes to Windows 7 during your task sequence installation. Of course SCCM will modify the Unattend.xml file to add the values you have specified during the task sequence such as your product key , user & company name , local admin pasword , etc .
Here you will see my custom Unattend.xml file for x86 :
-*-*-*-*-*-*-CODE SNIPPET-*-*-*-*-*-*-
<?xml version="1.0" encoding="utf-8"?>
<!–
Unattended installation file for Windows 7 x86. Place in the root directory of a USB drive.
Important! Before using, change the Product Key and Administrator’s password.
Make sure the partition number and physical disk number are correct for your system.
–>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnableLUA>false</EnableLUA>
</component>
<component name="Networking-MPSSVC-Svc" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
<PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
<PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<HelpCustomized>false</HelpCustomized>
</OEMInformation>
<RegisteredOwner></RegisteredOwner>
</component>
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAccelerators>true</DisableAccelerators>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
<Home_Page>about:home</Home_Page>
<QuickLinkList>
<QuickLinkItem wcm:action="add">
<QuickLinkName>Bing</QuickLinkName>
<QuickLinkUrl>http://www.bing.com</QuickLinkUrl>
<QLID>1</QLID>
</QuickLinkItem>
</QuickLinkList>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>%OSDInputLocale%</InputLocale>
<SystemLocale>%OSDSystemLocale%</SystemLocale>
<UILanguage>%OSDUILanguage%</UILanguage>
<UserLocale>%OSDUserLocale%</UserLocale>
</component>
</settings>
</unattend>
-*-*-*-*-*-*-CODE SNIPPET-*-*-*-*-*-*-
Here you will see my custom Unattend.xml file for x64 :
-*-*-*-*-*-*-CODE SNIPPET-*-*-*-*-*-*-
<?xml version="1.0" encoding="utf-8"?>
<!–
Unattended installation file for Windows 7 x64. Place in the root directory of a USB drive.
Important! Before using, change the Product Key and Administrator’s password.
Make sure the partition number and physical disk number are correct for your system.
–>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnableLUA>false</EnableLUA>
</component>
<component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
<PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
<PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OEMInformation>
<HelpCustomized>false</HelpCustomized>
</OEMInformation>
<RegisteredOwner></RegisteredOwner>
</component>
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAccelerators>true</DisableAccelerators>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
<Home_Page>about:home</Home_Page>
<QuickLinkList>
<QuickLinkItem wcm:action="add">
<QuickLinkName>Bing</QuickLinkName>
<QuickLinkUrl>http://www.bing.com</QuickLinkUrl>
<QLID>1</QLID>
</QuickLinkItem>
</QuickLinkList>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>%OSDInputLocale%</InputLocale>
<SystemLocale>%OSDSystemLocale%</SystemLocale>
<UILanguage>%OSDUILanguage%</UILanguage>
<UserLocale>%OSDUserLocale%</UserLocale>
</component>
</settings>
</unattend>
-*-*-*-*-*-*-CODE SNIPPET-*-*-*-*-*-*-
You can add your unattended.xml files now into a package and use them in your SCCM task sequence as shown below .
In order to use the unattended.xml that where containing the variables for the regional , keyboard , etc settings as shown below we need to assign some variables to our collection first.
On your collection , you add collection variables as shown in the picture below. This gives you the flexibility to create multiple collections with different keyboard layouts , if you for example are a international company.
Hope it Helps ,
Kenny Buntinx
Stellair said on September 15, 2010
Nice xml’s! Did you find how to disable features (like Media Center) in Windows 7 through this XML?
alexpearce said on June 21, 2011
I’m having issue’s using the variables for the regional options, do they have to be directly on the collection that’s being advertised to, or just the one that the computer is in, my layout is as below:
OS Install
|
– Windows 7 Enterprise x64 (advertisement here)
|
— UK (computers at this level with variables here)
— SA
— FR
However this doesn’t seem to work, I don’t want to have an advertisement per collection really, just on the top one, am I missing something else?
Mercy said on October 8, 2013
Hi!
Where is the unattend.xml file stored?
I would use the same options for multilanguage Operating system (Win7) but i can not find the unattend.xml crated by TS. The other point, i created a package that contains the language files (de, jp, etc.) and copied a small language.xml file in this folder. The langauge.xml includes only:
%OSDInputLocale%
%OSDSystemLocale%
%OSDUILanguage%
%OSDUILanguageFallback%
%OSDUserLocale%
but this language.xml is not used.
Do you know how i can use this unattend.xml file to set up language etc.?
Thanks for Info!
Regards Mercy