Jump to content


THEFORCE

Established Members
  • Posts

    3
  • Joined

  • Last visited

THEFORCE's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Automating WDS Deployment using unattended.xml Hi, I'm hoping someone can help here. I have a couple of issues with automating WDS using unattended.xml. Firstly, My server is Windows 2008 R2 64bit, I am trying to automate the WinPE phase of WDS. I have associated the the following unattended.xml file to the x86 boot images. However the language is not selected and the username and password is not entered (I have to perform both these tasks manually). The only thing the xml seems to do is choose the partition for where the installation will occour. Here is the xml for the winPe phase < ?xml version="1.0" ?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <WindowsDeploymentServices> <Login> <WillShowUI>OnError</WillShowUI> <Credentials> <Username>wdsadmin</Username> <Domain>myschool</Domain> <Password>wdspassword</Password> </Credentials> </Login> <ImageSelection> <WillShowUI>OnError</WillShowUI> <InstallImage> <ImageName>Windows 7 Professional SP1</ImageName> <ImageGroup>x86 Images</ImageGroup> <Filename>Windows7proSP1.wim</Filename> </InstallImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> </ImageSelection> </WindowsDeploymentServices> <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk> <CreatePartitions> <CreatePartition> <Order>1</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Label>OS</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> </component> <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <SetupUILanguage> <WillShowUI>OnError</WillShowUI> <UILanguage>en-UK</UILanguage> </SetupUILanguage> <UILanguage>en-UK</UILanguage> </component> </settings> </unattend> Does anyone know what the issue might be? Secondly, with regards to syspreping a windows 7 machine, I have created an unattended.xml file, using mysysprep and sysprep.cmd, I sysprep the machine and reboot, upon reboot the syprep process asks me to enter a machine name. Once the machine name is supplied, the computer is then added to the domain using the name I supplied, and everything is fine. However, If I run sysprep and then restart the computer, boot into winpe and take an image of the machine. I then load the image on another machine using wds, the process happens exactly the same, i.e. it asks me for a name for the computer. However, regardless of what name I supply (name that is less then 16 characters), the computer is joined to the domain using the username I supplied during the WinPE process of WDS. i.e. at the WinPE stage if I use the account WDSAdmin, my computers will be joined to the domain as WDSAdmin1, WDSAdmin2 etc.. whereas if i use the account administrator it names the machine administrator1 administrator2 etc.. This happens regardless of wheather I try to associate an unattended.xml to the winpe process or not. Here is my xml for the Windows 7 image. < ?xml version="1.0" encoding="utf-8"?> < unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <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>en-GB</InputLocale> <SystemLocale>en-GB</SystemLocale> <UILanguage>en-US</UILanguage> <UILanguageFallback>en-GB</UILanguageFallback> <UserLocale>en-GB</UserLocale> </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"> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> </OOBE> <UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>dwBlAGwAYwBvAG0AZQBQAGEAcwBzAHcAbwByAGQA</Value> <PlainText>false</PlainText> </Password> <Description>Local User</Description> <DisplayName>Teacher</DisplayName> <Group>administrators</Group> <Name>Teacher</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <TimeZone>GMT Standard Time</TimeZone> <RegisteredOrganization>myschool</RegisteredOrganization> <RegisteredOwner>myschool</RegisteredOwner> <ShowWindowsLive>false</ShowWindowsLive> </component> </settings> <settings pass="specialize"> <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"> <ProductKey>xxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey> <ComputerName>%Please input a computer name%</ComputerName> <RegisteredOrganization>myschool</RegisteredOrganization> <RegisteredOwner>myschool</RegisteredOwner> <ShowWindowsLive>false</ShowWindowsLive> <TimeZone>GMT Standard Time</TimeZone> </component> <component name="Microsoft-Windows-UnattendedJoin" 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"> <Identification> <Credentials> <Domain>myschool.local</Domain> <Username>WDSADMIN</Username> <Password>WDSpassword</Password> </Credentials> <JoinDomain>myschool.local</JoinDomain> </Identification> </component> </settings> <cpifflineImage cpi:source="catalog:c:/windows/system32/sysprep/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> < /unattend> Thanks in Advance of anyone that can help
  2. Hi I have the same problem as you described above. Are you doing the injecting from your Windows 2003 R2 server or a vista/xp client machine? Do you have the link for the version of AIK that I need? Many thanks
  3. Hi, I'm hoping someone can look at my sysprep.sif and WDSunattended.xml and tell me what I am doing wrong. I have setup my WDS as per the excellent instructions on this forum and I can deploy my XP image fine. It only takes 20 minutes which is fantastic again. However, I want to automate the entire process from start to finish. Just to give you some backup ground I have a Windows 2003 server SP2 that has WDS setup on it. In WDS, under Myserver.local/images I have WDS - Windows XP Capture - the physical path for the is e:\remoteinstall\images\windows xp image\testcapture.wim WDS - Windows XP Deployment I have syspreped a machine and stored the image in the above location. When manually deploying the image it works fine no problem. What I trying to do now is completely automating the process of A)formatting the hard disk B)Select the image and install it completely in unattended mode. I have created a sysprep.sif file which is sitting in e:\remoteinstall\images\windowsxpimage\$oem$\$1 and looks like this ;SetupMgrTag [Data] AutoPartition=1 MsDosInitiated="1" UnattendedInstall="Yes" floppyless="1" OriSrc="\\%SERVERNAME%\RemInst\%INSTALLPATH%" OriTyp="4" LocalSourceOnCD=1 [setupData] OsLoadOptions="/noguiboot /fastdetect" SetupSourceDevice="\Device\LanmanRedirector\%SERVERNAME%\RemInst\%INSTALLPATH%" [unattended] UnattendMode=ProvideDefault OemPreinstall=No TargetPath=\WINDOWS FileSystem=LeaveAlone NtUpgrade=No OverwriteOemFilesOnUpgrade=No [GuiUnattended] AdminPassword=b6b1aa9b9bb2da02e034c60fa8ac8477eade334b884441b523fdb791c93f0a56 EncryptedAdminPassword=Yes OEMSkipRegional=1 TimeZone=%TIMEZONE% [userData] ProductKey=xxxx-xxxx-xxxxx-xxxxx-xxxxx FullName="myname" OrgName="mycompaney" ComputerName=%MACHINENAME% [Display] BitsPerPel=24 Xresolution=1024 YResolution=768 Vrefresh=60 [RegionalSettings] LanguageGroup=1 SystemLocale=00000809 UserLocale=00000809 InputLocale=0809:00000809 [setupMgr] DistFolder=C:\windist DistShare=windist [identification] JoinDomain=%MACHINEDOMAIN% DoOldStyleDomainJoin=Yes [Networking] InstallDefaultComponents=Yes ProcessPageSections=Yes [RemoteInstall] Repartition=Yes [OSChooser] Description="Windows Professional - Standard Installation" Help="This will install Windows Professional in a standard configuration." LaunchFile="%INSTALLPATH%\%MACHINETYPE%\templates\startrom.com" ImageType=Flat and I have an wdsunattended.xml file sitting in E:\RemoteInstall\WdsClientUnattend. I have linked this file to my wds root, client properties. The file looks like <?xml version="1.0" ?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <WindowsDeploymentServices> <Login> <WillShowUI>OnError</WillShowUI> <Credentials> <Username>myadmin</Username> <Domain>mydomain</Domain> <Password>mypassword</Password> </Credentials> </Login> <ImageSelection> <WillShowUI>OnError</WillShowUI> <InstallImage> <ImageName>WDS - Windows XP Deployment</ImageName> <ImageGroup>Boot Images</ImageGroup> <Filename>e:\RemoteInstall\Images\Windows XP Image\xptestcapture.wim</Filename> </InstallImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> </ImageSelection> </WindowsDeploymentServices> <DiskConfiguration> <WillShowUI>OnError</WillShowUI> <Disk> <CreatePartitions> <CreatePartition> <Order>1</Order> <Type>Primary</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Label>OS</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> </DiskConfiguration> </component> <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <SetupUILanguage> <WillShowUI>OnError</WillShowUI> <UILanguage>en-UK</UILanguage> </SetupUILanguage> <UILanguage>en-UK</UILanguage> </component> </settings> </unattend> However, This does not seem to have had little effect. Sorry for the rather long winded post, but I've tried to give as much information as possible, so as to give a clear picture of where I am at. Many thanks in advance for any help. Kind Regards.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.