rajeshjohn

Autounattend.xml - Errors at <RunSynchronous> when tryin to en

6 posts in this topic

I am trying to automate the windows 7 installation on KVM. So, i have this xml on a A:\.

It works fine if i comment the <RunSynchronous> in the Specialize pass of Windows=shell-setup.

Can someone shed light on this for me:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<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">

<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<!--System partition-->
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<size>100</size>
</CreatePartition>
<Createpartition wcm:action="add">
<order>2</order>
<type>Primary</type>
<Extend>true</Extend>
</Createpartition>
</CreatePartitions>

<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>system</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
<!--Windows Partition-->
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Win7Ent</Label>
<Letter>C</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>

<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>

<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<!-- Change Product Key here. -->
<Key>xxxxxxx</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
</component>

<component 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>
</settings>

<!-- Disables UA Notificiation when programs try to install software or make changes to the computer. "false" -->
<settings pass="offlineServicing">
<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>
</settings>

<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">

<OEMInformation>
<HelpCustomized>false</HelpCustomized>
</OEMInformation>
<!-- Rename computer here. -->
<ComputerName>*</ComputerName>
<TimeZone>Eastern Standard Time</TimeZone>
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Description>EnableAdmin</Description>
<Order>1</Order>
<Path>cmd /c net user Administrator /active:yes</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>

<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<!-- Disable automatic activation. This gives 30 days of usage when product key is specified in setup (WinPE pass). -->
<SkipAutoActivation>true</SkipAutoActivation>
</component>
</settings>

<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<!-- Rem out SkipMachine and SkipUser to Prompt for User Name -->
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>Eastern Standard Time</TimeZone>

<UserAccounts>
<LocalAccounts>
<AdministratorPassword>
<Value>Passw0rd1</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</LocalAccounts>
</UserAccounts>

<AutoLogon>
<Password>
<Value>Passw0rd1</Value>
</Password>
<Enabled>true</Enabled>
<LogonCount>999</LogonCount>
<Username>Administrator</Username>
</AutoLogon>

<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1366</HorizontalResolution>
<RefreshRate>70</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>

<Themes>
<ThemeName>OEM</ThemeName>
<DesktopBackground>%WINDIR%\Web\Wallpaper\Landscapes\imp9.jpg</DesktopBackground>
<DefaultThemesOff>false</DefaultThemesOff>
</Themes>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>

<FirstLogonCommands>
<synchronousCommand wcm:action="add">
<Description>First_reg_edit</Description>
<Order>1</Order>
<CommandLine>CMD /c REG.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\windowsupdate</CommandLine>
</synchronousCommand>
</FirstLogonCommands>

<
</component>
</settings>
</unattend>

0

Share this post


Link to post
Share on other sites

<

Random straggler?

What is the error?

0

Share this post


Link to post
Share on other sites

Hi Rajeshjohn,

RunSynchronous is not a component of Microsoft-Windows-Shell-Setup. It is a component of Microsoft-Windows-Deployment. I would recommend that you use the Windows System Image Manager (WSIM) to create and edit your answer files, as this cannot happen when using WSIM. It also has a validation feature to help ensure the file is structured properly.

Hope this helps,

David

Windows Outreach Team – IT Pro
The Springboard Series on TechNet

0

Share this post


Link to post
Share on other sites

I put a .cmd in the image somewhere...

            <FirstLogonCommands>                <SynchronousCommand wcm:action="add">                    <Order>1</Order>                    <Description>Do stuff</Description>                    <CommandLine>cmd /C start /wait c:\folder\FirstLog.cmd</CommandLine>                </SynchronousCommand>            </FirstLogonCommands>
0

Share this post


Link to post
Share on other sites

Thanks for the time

Giving a try with the cmd /C start /wait c:\folder\FirstLog.cmd will report

0

Share this post


Link to post
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.