Jump to content

Windows 2008 unattended setting to choose product?


Recommended Posts

Hi, I'm trying to automate a windows 2008 server deployment, and so far everything is working including computer name, admin password, even custom post-install commands. Major kudos to the Windows System Image Manager!

I'm only stuck on one thing, the media I have has installs for Datacenter, Enterprise, and Standard. So when setup gets to that point it pops up a dialog saying

Select the Operating System you want to install.

Windows 2008 server standard - full installation
Windows 2008 server enterprise - full installation
Windows 2008 server datacenter - full installation
Windows 2008 server standard - core installation
Windows 2008 server enterprise - core installation
Windows 2008 server datacenter - core installation

Does anyone know how to automate this OS selection?

[EDIT]

I checked out the answer in http://www.msfn.org/board/hide-Select-oper...og-t113208.html, but to no avail. My currnt setting is:

<cpi:offlineImage cpi:source="wim:c:/install.wim#Windows Longhorn SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

:'-(

Thanks!!

-Nad

Edited by NadlyJ
Link to comment
Share on other sites

  • 3 weeks later...

Hi, did you ever get a solution to this?

I am getting the same issue but getting a choice between

Windows Server 2008 Enterprise (Full Installation)

Windows Server 2008 Enterprise (Server Core Installation)

Have tried the above as well but to no avail.

Thanks for your help

Link to comment
Share on other sites

I got the "Windows Server 2008 Enterprise (Full Installation)" option to work unattended with this <InstallFrom> section added to my XML file:

<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows Longhorn SERVERENTERPRISE</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>

The "Windows Longhorn SERVERENTERPRISE" value is the same value WAIK created at the bottom of the unattended.xml file:

	<cpi:offlineImage cpi:source="wim:<path>/install.wim#Windows Longhorn SERVERENTERPRISE" xmln
s:cpi="urn:schemas-microsoft-com:cpi" />

Hope it helps.

Edited by newuzer
Link to comment
Share on other sites

  • 5 weeks later...
Hi thanks for the suggestion. Unfortunately it didnt work for me :(

Maybe its my media? I wouldnt have thought so but i'll try another distribution (msdn or vl)

The only way I've been able to get it to work is by ripping out all non-needed images from the install.wim image. To do that:

locate the image you want and get a list of available OS:

imagex /info path\to\install.wim

all the images will be indexed. In this case "Windows Longhorn

SERVERSTANDARD" was #1

to extract #1:

imagex /export C:\install.wim 1 \install2.wim "wtflol"

then replace \sources\install.wim with the newly created .wim file

Enjoy!

Link to comment
Share on other sites

  • 4 years later...

Apologies for resurrecting an old thread but.....

Following NadlyJ's steps helped us get to a point where now the only selection is the Windows 2008 R2 Standard OS. Which IS the OS we want, and it's the only one listed, but then WHY do we still get prompted for it? If it's the only choice, why doesn't it automatically choose it. If someone knows the step we're missing for the install to skip the OS selection screen because it sees only the 1 choice, it would be greatly appreciated.

Edited by epa80
Link to comment
Share on other sites

Apologies for resurrecting an old thread but.....

Following NadlyJ's steps helped us get to a point where now the only selection is the Windows 2008 R2 Standard OS. Which IS the OS we want, and it's the only one listed, but then WHY do we still get prompted for it? If it's the only choice, why doesn't it automatically choose it. If someone knows the step we're missing for the install to skip the OS selection screen because it sees only the 1 choice, it would be greatly appreciated.

Hi,

I actually did get this to work eventually without removing any of the images from the install.wim file. There are a few places where the windows version has to match what is in the install.wim file. Here is a copy of my autounattend.xml for a Windows Server 2008 R2 Datacenter deployment. It deployed with zero user intervention.

The xml also adds an additional admin user, enables automatic updates, enables ICMP and RDP through the firewall runs some custom commands suitable for our environment. Try it and let me know how it goes.

Cheers


<?xml version="1.0"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:cpi="urn:schemas-microsoft-com:cpi">
<servicing>
<package action="configure">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language=""/>
<selection name="IIS-WebServerRole" state="true"/>
<selection name="IIS-FTPServer" state="true"/>
<selection name="IIS-FTPSvc" state="true"/>
<selection name="IIS-ApplicationDevelopment" state="true"/>
<selection name="IIS-WebServer" state="true"/>
<selection name="IIS-CommonHttpFeatures" state="true"/>
<selection name="IIS-HealthAndDiagnostics" state="true"/>
<selection name="IIS-Performance" state="true"/>
<selection name="IIS-Security" state="true"/>
<selection name="IIS-ManagementConsole" state="true"/>
<selection name="IIS-ManagementScriptingTools" state="true"/>
<selection name="IIS-ManagementService" state="true"/>
<selection name="TelnetClient" state="true"/>
<selection name="TFTP" state="true"/>
<selection name="IIS-BasicAuthentication" state="true"/>
<selection name="IIS-CGI" state="true"/>
<selection name="WAS-ProcessModel" state="true"/>
<selection name="IIS-IIS6ManagementCompatibility" state="true"/>
<selection name="IIS-Metabase" state="true"/>
<selection name="IIS-WebServerManagementTools" state="true"/>
<selection name="WAS-WindowsActivationService" state="true"/>
<selection name="WAS-ConfigurationAPI" state="true"/>
<selection name="WAS-NetFxEnvironment" state="true"/>
<!-- <selection name="IAS NT Service" state="true" /> -->
<selection name="IIS-ISAPIExtensions" state="true"/>
<selection name="IIS-DefaultDocument" state="true"/>
<selection name="IIS-DirectoryBrowsing" state="true"/>
<selection name="IIS-HttpErrors" state="true"/>
<selection name="IIS-HttpRedirect" state="true"/>
<selection name="IIS-StaticContent" state="true"/>
<selection name="IIS-HttpLogging" state="true"/>
<selection name="IIS-HttpTracing" state="true"/>
<selection name="IIS-LoggingLibraries" state="true"/>
<selection name="IIS-RequestMonitor" state="true"/>
<selection name="IIS-HttpCompressionStatic" state="true"/>
<selection name="IIS-ClientCertificateMappingAuthentication" state="true"/>
<selection name="IIS-DigestAuthentication" state="true"/>
<selection name="IIS-IISCertificateMappingAuthentication" state="true"/>
<selection name="IIS-WMICompatibility" state="true"/>
<selection name="IIS-ASP" state="true"/>
<selection name="IIS-ASPNET" state="true"/>
<!-- <selection name="WebAccess" state="true" /> -->
<selection name="IIS-RequestFiltering" state="true"/>
<selection name="IIS-ISAPIFilter" state="true"/>
<selection name="IIS-NetFxExtensibility" state="true"/>
<selection name="IIS-WindowsAuthentication" state="true"/>
<selection name="IIS-ServerSideIncludes" state="true"/>
</package>
</servicing>
<settings pass="windowsPE">
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-us</UserLocale>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>2</Order>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>50000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Letter>D</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows SERVER 2008 R2 SERVERDATACENTER</Value>
</MetaData>
</InstallFrom>
</OSImage>
<DataImage wcm:action="add">
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallFrom>
<Path>Z:\wim\custom.wim</Path>
</InstallFrom>
<Order>1</Order>
</DataImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>fullname</FullName>
<Organization>SOME Corporation</Organization>
</UserData>
<DynamicUpdate>
<Enable>false</Enable>
<WillShowUI>Always</WillShowUI>
</DynamicUpdate>
<!--
<PageFile>
<Path>D:\PageFile.sys</Path>
<Size>5000</Size>
</PageFile>
-->
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DriverPaths>
<PathAndCredentials wcm:keyValue="883337a7" wcm:action="add">
<Path>Z:\r2drv\2850</Path>
</PathAndCredentials>
<PathAndCredentials wcm:keyValue="215fe243" wcm:action="add">
<Path>Z:\r2drv\s300</Path>
</PathAndCredentials>
<PathAndCredentials wcm:keyValue="cb69503f" wcm:action="add">
<Path>Z:\r2drv\r900</Path>
</PathAndCredentials>
<PathAndCredentials wcm:keyValue="cb69503g" wcm:action="add">
<Path>Z:\r2drv\h200</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
<settings pass="specialize">
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>NAME</ComputerName>
<TimeZone>Central Standard Time</TimeZone>
<ProductKey>XXXX-XXXX-XXXX-XXXX</ProductKey>
<RegisteredOrganization>SOME Corporation</RegisteredOrganization>
<RegisteredOwner>OWNER</RegisteredOwner>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-TCPIP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<Interfaces>
<Interface wcm:action="add">
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
</Ipv4Settings>
<UnicastIpAddresses>
<IpAddress wcm:action="add" wcm:keyValue="IpAddress">8.8.8.8</IpAddress>
</UnicastIpAddresses>
<Identifier>Local Area Connection</Identifier>
<Routes>
<Route wcm:action="add">
<NextHopAddress>8.8.8.1</NextHopAddress>
<Identifier>1</Identifier>
<Metric>10</Metric>
<Prefix>0.0.0.0/0</Prefix>
</Route>
</Routes>
</Interface>
</Interfaces>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-DNS-Client" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<Interfaces>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add" wcm:keyValue="1">1.1.1.1</IpAddress>
<IpAddress wcm:action="add" wcm:keyValue="2">2.2.2.2</IpAddress>
</DNSServerSearchOrder>
<Identifier>Local Area Connection</Identifier>
</Interface>
</Interfaces>
<DNSDomain>msfn.com</DNSDomain>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>10</Order>
<Path>cmd.exe /c </Path>
</RunSynchronousCommand>
<!-- <RunSynchronousCommand wcm:action="add">
<Order>15</Order>
<Path>cmd.exe /c C:\netinst\forefront\clientsetup.exe /nomom</Path>
</RunSynchronousCommand> -->
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>cmd.exe /c</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>30</Order>
<Path>cmd.exe /c</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>35</Order>
<Path>netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>40</Order>
<Path>netsh firewall set icmpsetting 8</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>45</Order>
<Path>cmd.exe /c</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>50</Order>
<Path>cmd.exe /c</Path>
<WillReboot>Always</WillReboot>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>55</Order>
<Path>reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v ShutdownWithoutLogon /t REG_DWORD /d 1 /f</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<SecurityLayer>0</SecurityLayer>
</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">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>cwB3AG8AcgBkAGYAaQBzAGgAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Description>test user</Description>
<DisplayName>Mark Minasi</DisplayName>
<Group>administrators;users</Group>
<Name>Mark</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
-->
<settings pass="auditUser">
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Description>network setup</Description>
<Order>10</Order>
<Path>cmd /c start /wait cmd /k pause</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="offlineServicing">
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
</component>
</settings>
<settings pass="oobeSystem">
<component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UserAccounts>
<AdministratorPassword>
<Value>12345</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount>
<Name>user1</Name>
<Group>Administrators</Group>
<DisplayName>Access</DisplayName>
<Password>
<Value>54321</Value>
<PlainText>true</PlainText>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>cmd.exe /c cscript %windir%\system32\slmgr.vbs -ato</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>cmd.exe /c C:\windows\system32\wuauclt /updatenow</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<OOBE>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:e:/x32-all-vers-stock-install.wim#Windows Longhorn SERVERENTERPRISE"/>
</unattend>

Link to comment
Share on other sites

Apologies for resurrecting an old thread but.....

Following NadlyJ's steps helped us get to a point where now the only selection is the Windows 2008 R2 Standard OS. Which IS the OS we want, and it's the only one listed, but then WHY do we still get prompted for it? If it's the only choice, why doesn't it automatically choose it. If someone knows the step we're missing for the install to skip the OS selection screen because it sees only the 1 choice, it would be greatly appreciated.

Hi,

I actually did get this to work eventually without removing any of the images from the install.wim file. There are a few places where the windows version has to match what is in the install.wim file. Here is a copy of my autounattend.xml for a Windows Server 2008 R2 Datacenter deployment. It deployed with zero user intervention.

The xml also adds an additional admin user, enables automatic updates, enables ICMP and RDP through the firewall runs some custom commands suitable for our environment. Try it and let me know how it goes.

Cheers

Thanks Nadly, we're going to give it a lookover and see what's what.

Link to comment
Share on other sites

Which IS the OS we want, and it's the only one listed, but then WHY do we still get prompted for it? If it's the only choice, why doesn't it automatically choose it. If someone knows the step we're missing for the install to skip the OS selection screen because it sees only the 1 choice, it would be greatly appreciated.

Its how it is programmed. MS obviously uses the same Setup launcher for all their products in the same family. So even if you have an install.wim with 1 or more install images inside it will give a prompt. Using an Autounattend.xml is the way to hide the selection screen. But in the XML you would actually have a setting to tell Setup what image to use, which in effect hides that page.

Link to comment
Share on other sites

This is out current XML.

<?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="SNMP" state="true" />
<selection name="WMISnmpProvider" state="true" />
</package>
</servicing>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" 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>0409:00000409</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UserLocale>en-US</UserLocale>
<UILanguage>en-US</UILanguage>
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
<WillShowUI>OnError</WillShowUI>
</SetupUILanguage>
</component>
<component name="Microsoft-Windows-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">
<EnableNetwork>true</EnableNetwork>
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Active>true</Active>
<Format>NTFS</Format>
<Letter>C</Letter>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows Longhorn SERVERSTANDARD</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>SOME NAME</FullName>
<Organization>SOME ORG</Organization>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>HMG6P-C7VGP-47GJ9-TWBD4-2YYCD</Key>
</ProductKey>
</UserData>
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Path>f:\lib\osoem\altiris\copydagent.cmd dagent_x64.msi</Path>
<Order>1</Order>
</RunAsynchronousCommand>
</RunAsynchronous>
</component>
</settings>
<settings pass="offlineServicing">
<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
<DriverPaths>
<PathAndCredentials wcm:keyValue="5f21940b" wcm:action="add">
<Path>f:\lib\osoem\proliant.zzz\w61.64\drivers</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="5f21940e">
<Path>f:\lib\osoem\cp014606</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
<settings pass="specialize">
<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>0409:00000409</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UserLocale>en-US</UserLocale>
<UILanguage>en-US</UILanguage>
</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">
<ComputerName>%#*"select right(replace([name],' ',''),15) from computer where computer_id={ID}"%</ComputerName>
<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXX</ProductKey>
</component>
<component name="Microsoft-Windows-UnattendedJoin" 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">
<Identification>
<JoinWorkgroup>SOME-WORKGROUP</JoinWorkgroup>
</Identification>
</component>
<component name="Microsoft-Windows-SNMP-Agent-Service" 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">
<ValidCommunities>
<ValidCommunity wcm:action="add" wcm:keyValue="public">4</ValidCommunity>
<ValidCommunity wcm:action="add" wcm:keyValue="private">8</ValidCommunity>
</ValidCommunities>
<RFC1156Agent>
<sysContact>SNMP Manager</sysContact>
<sysLocation>xxx</sysLocation>
</RFC1156Agent>
<TrapConfiguration>
<TrapConfigurationItems wcm:action="add">
<Community_Name>private</Community_Name>
<Traps>10.185.1.39</Traps>
</TrapConfigurationItems>
<TrapConfigurationItems wcm:action="add">
<Community_Name>public</Community_Name>
<Traps>10.160.1.9</Traps>
</TrapConfigurationItems>
</TrapConfiguration>
</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>
</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">
<UserAccounts>
<AdministratorPassword>
<Value>SQBzAG4AMwB0AC4ASQBtAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
<TimeZone>Eastern Standard Time</TimeZone>
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Administrator</Username>
<Password>
<Value>SQBzAG4AMwB0AC4ASQBtAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>c:\dagent_x64.msi /quiet tcpaddr=%#^!aclient_prop@tcp_addr% tcpport=%#^!aclient_prop@tcp_port%</CommandLine>
<Description>Install DAgent</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<CommandLine>netsh firewall set opmode disable</CommandLine>
<Description>Disables Windows Firewall</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Install G7 Drivers</Description>
<CommandLine>c:\cp014605.exe /s</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:c:/temp/2008r2/sources/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by epa80
Link to comment
Share on other sites

Windows Setup is smart enough to figure out what OS you want to use by just reading the product key. For your UserData and ImageInstall objects, try this instead:

<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>HMG6P-C7VGP-47GJ9-TWBD4-2YYCD</Key>
</ProductKey>
</UserData>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...