NadlyJ

Member
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About NadlyJ

  1. 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>
  2. 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!
  3. 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