MSFN Forum: W7 unattend first logon command (Resolved) - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

W7 unattend first logon command (Resolved)

#1 User is offline   JFMichaud 

  • Group: Members
  • Posts: 9
  • Joined: 20-February 12
  • OS:none specified
  • Country: Country Flag

Posted 01 October 2012 - 10:03 AM

Hi i'm trying to add a first logon command but each time i try it in different location in the unattend i've end up with a syntax error and sysprep is unable to read the unattend?

Here is my unattend witch run with no error except the red section ... <SynchronousCommand wcm:action="add"> on that line?

[code<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<SetupUILanguage>
<UILanguage>fr-CA</UILanguage>
</SetupUILanguage>
<InputLocale>0c0c:00011009</InputLocale>
<UserLocale>fr-CA</UserLocale>
<UILanguage>fr-CA</UILanguage>
<SystemLocale>fr-CA</SystemLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UserData>
<AcceptEula>true</AcceptEula>
<FullName></FullName>
<Organization>bob</Organization>
<ProductKey>
<Key></Key>
<WillShowUI>Always</WillShowUI>
</ProductKey>

</UserData>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</Username>
<Password>
<Value>Password</Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>c:\batch.bat</CommandLine>
<Description>Description_of_command1</Description>
<Order>1</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>c:\batch2.bat</CommandLine>
<Description>Description_of_command2</Description>
<Order>2</Order>
</SynchronousCommand>
</FirstLogonCommands>

<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>Eastern Standard Time</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>Password</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>0c0c:00011009</InputLocale>
<UserLocale>fr-CA</UserLocale>
<UILanguage>fr-CA</UILanguage>
<SystemLocale>fr-CA</SystemLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>%Entrez le nom de l'ordinateur%</ComputerName>
<CopyProfile>true</CopyProfile>
<RegisteredOrganization>Bottle</RegisteredOrganization>
<RegisteredOwner>Beer</RegisteredOwner>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1680</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>1050</VerticalResolution>
</Display>
</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">
<Order>1</Order>
<Path>net user administrator /active:yes</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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>http://www.google.ca</Home_Page>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<DisableWelcomePage>true</DisableWelcomePage>
</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>%Inscrire le domaine%</Domain>
<Username>%Nom pour rejoindre domaine%</Username>
<Password>%Mot de passe%</Password>
</Credentials>
<JoinDomain>%Please select a domain to join{bob;beer}%</JoinDomain>
</Identification>
</component>

</settings>
</unattend>][/code]

thanks for the help

This post has been edited by JFMichaud: 01 October 2012 - 07:14 PM



#2 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,396
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 October 2012 - 11:19 AM

Maybe you can try like this:

<FirstLogonCommands>
 <SynchronousCommand wcm:action="add">
 <CommandLine>cmd /c c:\batch.bat</CommandLine>
 <Description>Description_of_command1</Description>
 <RequiresUserInput>false</RequiresUserInput>
 <Order>1</Order>
 </SynchronousCommand>
 <SynchronousCommand wcm:action="add">
 <CommandLine>cmd /c c:\batch2.bat</CommandLine>
 <Description>Description_of_command2</Description>
 <RequiresUserInput>false</RequiresUserInput>
 <Order>2</Order>
 </SynchronousCommand>
 </FirstLogonCommands>



*Edit:please attach your Autounattend.xml file because some lines are missing:
<settings pass="oobeSystem">
 <component name="Microsoft-Windows-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">


This post has been edited by myselfidem: 01 October 2012 - 11:47 AM


#3 User is offline   JFMichaud 

  • Group: Members
  • Posts: 9
  • Joined: 20-February 12
  • OS:none specified
  • Country: Country Flag

Posted 01 October 2012 - 11:51 AM

Hi

thanks for the respond but the command itself is ok...

the problem is with the wcm action:add

and it occurs before i run sysprep...i type the command to run sysprerp but a popup message appear and says


'wcm' is an undeclared namespace line 55 wich is <SynchronousCommand wcm:action="add">


thanks

#4 User is offline   JFMichaud 

  • Group: Members
  • Posts: 9
  • Joined: 20-February 12
  • OS:none specified
  • Country: Country Flag

Posted 01 October 2012 - 11:59 AM

View Postmyselfidem, on 01 October 2012 - 11:19 AM, said:


*Edit:please attach your Autounattend.xml file because some lines are missing:
<settings pass="oobeSystem">
 <component name="Microsoft-Windows-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">




I'll try with that line and post if it change somathing...


Thanks

#5 User is offline   JFMichaud 

  • Group: Members
  • Posts: 9
  • Joined: 20-February 12
  • OS:none specified
  • Country: Country Flag

Posted 01 October 2012 - 12:25 PM

I've just tested...i don't have a error now on the unattend file and i don't get an error when i check with the windows Aik tool...

The error now is when the sysprep run in the oobe section it says that a there is a missing component

thanks

This post has been edited by JFMichaud: 01 October 2012 - 07:12 PM


#6 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,396
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 October 2012 - 12:39 PM

Try to remove inside OOBE section:

<SkipUserOOBE>true</SkipUserOOBE>



*Edit: Oops, sorry it seems I made an error with copy/paste the path:

Correct value:

Quote

<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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

This post has been edited by myselfidem: 01 October 2012 - 01:03 PM


#7 User is offline   JFMichaud 

  • Group: Members
  • Posts: 9
  • Joined: 20-February 12
  • OS:none specified
  • Country: Country Flag

Posted 01 October 2012 - 01:59 PM

Thanks myselfidem adding the component correct description solved my problem

Thanks a lot

#8 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,396
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 02 October 2012 - 01:06 AM

I'm glad you found the solution ! :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy