Jump to content

Unnattended Windows 7 Installation With MDT 2010


Recommended Posts

Hi Everyone!

I have a problem i would like to bring to you.

I made a Deployment Share with MDT 2010 and i did also an unatended.xml file

I created a Media and the rules are configured like the rules of the deployment share and here they are:

[settings]

Priority=Default

Properties=MyCustomProperty

[Default]

OSInstall=YES

SkipAppsOnUpgrade=YES

SkipCapture=YES

SkipAdminPassword=YES

SkipProductKey=YES

SkipBDDWelcome=YES

SkipTaskSequence=YES

TaskSequenceID=WIN7X86_001

SkipDeploymentType=YES

DeploymentType=NEWCOMPUTER

SkipComputerName=YES

OSDComputerName=teste

SkipDomainMembership=YES

JoinWorkgroup=WORKGROUP

SkipUserData=YES

UserDataLocation=NONE

SkipLocaleSelection=YES

UILanguage=pt-pt

UserLocale=pt-pt

KeyboardLocale=0816:00000816

SkipTimeZone=YES

TimeZone=085

TimeZoneName=GMT Standard Time

_SMSTSORGNAME=TESTE

SLSHARE=%DeployRoot%\BDDLogs

SkipApplications=YES

SkipBitlocker=YES

BdeInstallSupress=YES

SkipSummary=YES

FinalAction=REBOOT

-------------------------------------------------------------

The bootstrap.ini :

[settings]

Priority=Default

[Default]

SkipBDDWelcome=YES

-------------------------------------------------------

My unattend.xml file:

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">'>http://schemas.microsoft.com/WMIConfig/2002/State">

<ImageInstall>

<OSImage>

<WillShowUI>OnError</WillShowUI>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>2</PartitionID>

</InstallTo>

<InstallFrom>

<Path>.\Operating Systems\Windows 7 x86\Sources\install.wim</Path>

<MetaData>

<Key>/image/index</Key>

<Value>4</Value>

</MetaData>

<Credentials>

<Username />

<Password />

<Domain />

</Credentials>

</InstallFrom>

<InstallToAvailablePartition>false</InstallToAvailablePartition>

</OSImage>

</ImageInstall>

<UpgradeData>

<Upgrade>false</Upgrade>

</UpgradeData>

<Display>

<ColorDepth>16</ColorDepth>

<HorizontalResolution>1024</HorizontalResolution>

<RefreshRate>60</RefreshRate>

<VerticalResolution>768</VerticalResolution>

</Display>

<ComplianceCheck>

<DisplayReport>OnError</DisplayReport>

</ComplianceCheck>

<UserData>

<AcceptEula>true</AcceptEula>

<ProductKey>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

</UserData>

<EnableFirewall>true</EnableFirewall>

<EnableNetwork>true</EnableNetwork>

<Diagnostics>

<OptIn>false</OptIn>

</Diagnostics>

<DynamicUpdate>

<Enable>false</Enable>

</DynamicUpdate>

<PageFile>

<Path />

</PageFile>

</component>

<component name="Microsoft-Windows-International-Core-WinPE" 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">

<SetupUILanguage>

<UILanguage>pt-PT</UILanguage>

</SetupUILanguage>

<InputLocale>0816:00000816</InputLocale>

<SystemLocale>pt-PT</SystemLocale>

<UILanguage>pt-PT</UILanguage>

<UserLocale>pt-PT</UserLocale>

</component>

</settings>

<settings pass="generalize">

<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">

<DoNotCleanTaskBar>true</DoNotCleanTaskBar>

<RegisteredOrganization />

<RegisteredOwner />

</component>

</settings>

<settings pass="specialize">

<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">'>http://schemas.microsoft.com/WMIConfig/2002/State">

<Identification>

<Credentials>

<Username></Username>

<Domain></Domain>

<Password></Password>

</Credentials>

<JoinDomain></JoinDomain>

<JoinWorkgroup>WORKGROUP</JoinWorkgroup>

<MachineObjectOU></MachineObjectOU>

</Identification>

</component>

<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">'>http://schemas.microsoft.com/WMIConfig/2002/State">

<ComputerName>teste</ComputerName>

<ProductKey></ProductKey>

<RegisteredOrganization></RegisteredOrganization>

<RegisteredOwner></RegisteredOwner>

<TimeZone></TimeZone>

<DoNotCleanTaskBar>false</DoNotCleanTaskBar>

</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">

<Home_Page></Home_Page>

<DisableFirstRunWizard>true</DisableFirstRunWizard>

<DisableWelcomePage>true</DisableWelcomePage>

</component>

<component name="Microsoft-Windows-Deployment" 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">

<RunSynchronous>

<RunSynchronousCommand wcm:action="add">

<Description>EnableAdmin</Description>

<Order>1</Order>

<Path>cmd /c net user Administrator /active:yes</Path>

</RunSynchronousCommand>

<RunSynchronousCommand wcm:action="add">

<Description>UnfilterAdministratorToken</Description>

<Order>2</Order>

<Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>

</RunSynchronousCommand>

</RunSynchronous>

</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>0816:00000816</InputLocale>

<SystemLocale>pt-PT</SystemLocale>

<UILanguage>pt-PT</UILanguage>

<UserLocale>pt-PT</UserLocale>

</component>

<component name="Microsoft-Windows-TapiSetup" 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">

<TapiConfigured>0</TapiConfigured>

<TapiUnattendLocation>

<AreaCode>""</AreaCode>

<CountryOrRegion>1</CountryOrRegion>

<LongDistanceAccess>9</LongDistanceAccess>

<OutsideAccess>9</OutsideAccess>

<PulseOrToneDialing>1</PulseOrToneDialing>

<DisableCallWaiting>""</DisableCallWaiting>

<InternationalCarrierCode>""</InternationalCarrierCode>

<LongDistanceCarrierCode>""</LongDistanceCarrierCode>

<Name>Default</Name>

</TapiUnattendLocation>

</component>

<component name="Microsoft-Windows-SystemRestore-Main" 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">

<DisableSR>0</DisableSR>

</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">'>http://schemas.microsoft.com/WMIConfig/2002/State">

<UserAccounts>

<AdministratorPassword>

<Value>ZwBnAGkAcwBlAGMAdQByAGkAdAB5AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>

<PlainText>false</PlainText>

</AdministratorPassword>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Description>Temp account</Description>

<DisplayName>Temp account</DisplayName>

<Group>Users</Group>

<Name>TempAccount</Name>

</LocalAccount>

<LocalAccount wcm:action="add">

<Password>

<Value>ZwBnAGkAcwBlAGMAdQByAGkAdAB5AFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</Password>

<Description>Administration User</Description>

<DisplayName>utilizador</DisplayName>

<Group>Administradores</Group>

<Name>utilizador</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

<AutoLogon>

<Enabled>true</Enabled>

<Username>Administrator</Username>

<Domain>.</Domain>

<Password>

<Value>ZwBnAGkAcwBlAGMAdQByAGkAdAB5AFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</Password>

<LogonCount>999</LogonCount>

</AutoLogon>

<Display>

<ColorDepth>32</ColorDepth>

<HorizontalResolution>1024</HorizontalResolution>

<RefreshRate>60</RefreshRate>

<VerticalResolution>768</VerticalResolution>

</Display>

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>cscript.exe C:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>

<Description>Lite Touch new OS</Description>

<Order>1</Order>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<CommandLine>cscript.exe D:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>

<Description>Lite Touch new OS</Description>

<Order>2</Order>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<CommandLine>cscript.exe E:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>

<Description>Lite Touch new OS</Description>

<Order>3</Order>

</SynchronousCommand>

<SynchronousCommand wcm:action="add">

<CommandLine>cscript.exe F:\MININT\Scripts\LiteTouch.wsf /start</CommandLine>

<Description>Lite Touch new OS</Description>

<Order>4</Order>

</SynchronousCommand>

</FirstLogonCommands>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Home</NetworkLocation>

<ProtectYourPC>1</ProtectYourPC>

<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>

</OOBE>

<RegisteredOrganization>ME</RegisteredOrganization>

<RegisteredOwner>ME</RegisteredOwner>

<TimeZone>GMT Standard Time</TimeZone>

</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>0816:00000816</InputLocale>

<SystemLocale>pt-PT</SystemLocale>

<UILanguage>pt-PT</UILanguage>

<UserLocale>pt-PT</UserLocale>

</component>

</settings>

<settings pass="offlineServicing">

<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">

<DriverPaths>

<PathAndCredentials wcm:keyValue="1" wcm:action="add">

<Path>\Drivers</Path>

</PathAndCredentials>

</DriverPaths>

</component>

</settings>

<cpi:offlineImage cpi:source="catalog://PC/cw7share/operating systems/windows 7 x86/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

------------------------------------------------------------------------------------------------------------------------------------------------

When i run a test using the iso file created, with virtual box i always receive this particular message:

"Windows could not apply the Windows PE bootstrap setting specified in the unattend answer file." (This is a traduction from portuguese)

and the windows error shows:

----------------------------------------------

"Setup failed applying image D:\deploy\operating Systems\Windows 7 x86\Sources\install.wim,

rc=31

ZTI ERROR -Non-zero return code by LTIApply,rc=31

Litetouch deployment failed, Returned Code = -2147467259 0x80004005

Messages from the task sequence engine:

Failed to save environment to (80070057)

Failed to run the action:InstallOperating System.

Unknown error (Error: 0000001F;Source: Unknown)

The execution of the group (Install) has failed and the execution has been aborted.

An action failed.

UnKnown error(Error:80004004;Source:Unknown)

Failed to run the last action:Install Operating System.Execution of task sequence failed.

UnKnown error (Error:0000001F; Source:Unknown)

Task sequence Engine failed! Code: enExecutionFail

Task Sequence execution failed with error code 80004005

Error Task Sequence Manager failed to execute task sequence.Code 0x80004005."

----------------------------------------------------------------------------------

I apreciate the help you can give to understand what is wrong!!!

Ths in advance.

Leg

Link to comment
Share on other sites


----------------------------------------------

"Setup failed applying image D:\deploy\operating Systems\Windows 7 x86\Sources\install.wim,

rc=31

ZTI ERROR -Non-zero return code by LTIApply,rc=31

Litetouch deployment failed, Returned Code = -2147467259 0x80004005

See from above code post:

<Path>.\Operating Systems\Windows 7 x86\Sources\install.wim</Path>

So this is a relative path, relative to where Setup.exe (or the LTI app) is located. Does this path exist in the ISO?

Link to comment
Share on other sites

I see that the image is likely Windows 7 Professional, but your screenshot shows only 1 catalog file (for Windows 7 Professional). Most Windows DVDs have Professional on them mixed with the other flavors (Ultimate, Professional, Home Premium, Home Basic, and even Starter) - has this DVD been modified by chance? That doesn't look right.

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...