Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

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

Autounattend RunSynchronous

  • Please log in to reply
5 replies to this topic

#1
rajeshjohn

rajeshjohn
  • Member
  • 5 posts
  • Joined 07-March 14
  • OS:Windows 7 x64
  • Country: Country Flag

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.micro...nfig/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.micro...nfig/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>

 




How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,970 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

<


Random straggler?
What is the error?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#3
WinOutreach4

WinOutreach4

    Newbie

  • Member
  • 40 posts
  • Joined 22-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

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



#4
rajeshjohn

rajeshjohn
  • Member
  • 5 posts
  • Joined 07-March 14
  • OS:Windows 7 x64
  • Country: Country Flag

Thank you for the replies. I found that in the fix from this posting.

http://www.msfn.org/...mmand-resolved/

 

Ok, Now, I need to post install 2 msi packages on this VM once it is up and running.

What should I use ??

 

I will try WISM as suggested by David.

 

This forum rocks :)

Thanks a lot



#5
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,970 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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>

MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#6
rajeshjohn

rajeshjohn
  • Member
  • 5 posts
  • Joined 07-March 14
  • OS:Windows 7 x64
  • Country: Country Flag

Thanks for the time

 

 

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users