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

Need help debugging my Sysprep.xml file please


  • Please log in to reply
66 replies to this topic

#1
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
Every time I attempt to run it, I get Windows cannot parse or find the sysprep.xml file.

I have put it in the right place.

C:\WINDOWS\SYSTEM32\Sysprep

All this sysprep.xml is needed to do is copy the profile, activate the administrator account and auto activate windows, and run an install at first login

?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <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-Security-SPP-UX" 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">
            <SkipAutoActivation>
</SkipAutoActivation>
        </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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipkPRODUCT KEY REMOVED</CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <CommandLine>C:\WINDOWS\ClaraLaptop.vbs</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Edited by clivebuckwheat, 05 June 2010 - 09:17 AM.



How to remove advertisement from MSFN

#2
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

I've found some help here:
http://blog.brianlee...start-to-finish
Extract

Copy or move your sysprep.xml file to : C:\windows\system32\sysprep.
Now to run sysprep, navigate to that sysprep folder, hold SHIFT and right click and select “Open New Command Windows Here”. Next, input the following commands:

sysprep /generalize /oobe /shutdown /unattend:sysprep.xml

I hope that will help you!

Edited by myselfidem, 05 June 2010 - 03:52 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#3
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
that is the exact tutorial I used to created my sysprep.xml file.

#4
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
It seems you need to add some parameters, and at the line:
<SkipAutoActivation>true</SkipAutoActivation>
Have you see the example?:
http://www.brianleej...x86_sysprep.xml
You can also find help inside "Windows AIK for Windows 7 chm".

Maybe you can install your sysprep.xml at the root?
sysprep /generalize /oobe /shutdown /unattend:C:\sysprep.xml

Edited by myselfidem, 06 June 2010 - 12:03 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#5
arwidmark

arwidmark

    Member

  • Member
  • PipPip
  • 105 posts
  • Joined 22-December 05
  • OS:none specified
  • Country: Country Flag
For sysprep and/or setup to pick up the unattend.xml file automatically it needs to be named unattend.xml or autounattend.xml depending on where you store it.

Check the Implicit Answer File Search Order section
http://technet.micro.../dd744269(WS.10).aspx

If you use the /unattend:filename.xml to sysprep you can use any name.

/ Johan
Regards

Johan Arwidmark
Microsoft MVP - Setup / Deployment

#6
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator

Check this out, maybe you posted your code wrong, which is why we recommend you post your XML file as an attachment, but of course edit out your product key.

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

Should be

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

:P
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#7
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05

Check this out, maybe you posted your code wrong, which is why we recommend you post your XML file as an attachment, but of course edit out your product key.

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

Should be

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

:P



I'm still getting uanble to parse can't find the xml file. If anyone can help I'd appreciate it. This is mission critical.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
        <component name="Microsoft-Windows-Security-SPP" 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">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <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-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk PRODUCT KEY REMOVED </CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <CommandLine>C:\WINDOWS\ClaraLaptop.vbs</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


#8
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator

Please attach the XML file and not paste into the post.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#9
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
here it is as an attachment

Please attach the XML file and not paste into the post.

Attached Files



#10
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator

The XML seems to be valid. What does the Panther logs say?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#11
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05

The XML seems to be valid. What does the Panther logs say?



where do I find the panther logs?

#12
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Hello
You can find the logs inside "%systemdrive%\Windows\Panther", and also the unattend.xml used for the silent install.
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#13
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
You probably also want to get the setup*.* log files from %windir%\inf as well.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#14
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
I got the sysprep to run by using the full path.

C:\Windows\System32\Sysprep\Sysprep.exe /shutdown /oobe /generalize /unattend:"C:\Windows\system32\sysprep\sysprep32.xml"

but now it stops at the eula agreement can anyone take a look at my sysprep32.xml file and tell me what I need to add.

Attached Files


Edited by clivebuckwheat, 11 June 2010 - 09:42 AM.


#15
Tripredacus

Tripredacus

    K-Mart-ian Legend

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

Donator

Look up this code:

<OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>2</ProtectYourPC>
            </OOBE>

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

#16
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05

Look up this code:

where do I add this in?


<OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>2</ProtectYourPC>
            </OOBE>



#17
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Hello :rolleyes:

Set inside pass oobeSystem:

<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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>2</ProtectYourPC>
            </OOBE>
You can find more info here:
http://www.msfn.org/...seven-xml-here/

*Edit: Example for Windows 7 Ultimate x86

Edited by myselfidem, 12 June 2010 - 09:00 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#18
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
I get an error when I try to open the xml file in Windows image manager from the waik kit. What is wrong?

10:52 AM : Error opening C:\Documents and Settings\Administrator\Desktop\Windows 7 Wim file\sysprep32.xml.
10:52 AM :
10:52 AM : System.ArgumentException: The specified setting cannot be applied to this configuration pass.
Parameter name: value
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileSettingOverride.set_AppliedConfigurationPass(ConfigurationPass value)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileComponentSetting.MergeSettings(Node componentNode, Collection`1 nodesToRemove, MergeXmlEventArgs mergeArg, Boolean failOnError)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.ReadSettingsFromUnattendNode(Node unattendRoot)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile..ctor(String path)
at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path)
at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)
10:52 AM :
10:52 AM : Error opening C:\Documents and Settings\Administrator\Desktop\Windows 7 Wim file\sysprep32.xml.
10:52 AM :
10:52 AM : System.ArgumentException: The specified setting cannot be applied to this configuration pass.
Parameter name: value
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileSettingOverride.set_AppliedConfigurationPass(ConfigurationPass value)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileComponentSetting.MergeSettings(Node componentNode, Collection`1 nodesToRemove, MergeXmlEventArgs mergeArg, Boolean failOnError)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.ReadSettingsFromUnattendNode(Node unattendRoot)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile)
at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile..ctor(String path)
at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path)
at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)





Hello :rolleyes:

Set inside pass oobeSystem:

<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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>2</ProtectYourPC>
            </OOBE>
You can find more info here:
http://www.msfn.org/...seven-xml-here/



#19
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Hello
When you use Windows System Image Manager (WSIM) for check your unattended file choose before your version Windows catalog!
My example were for Windows 7 Ultimate x86.
Yours is Windows 7 Professional.

Try to set your unattended xml "at his place" ( source Windows folder) and don't set on the desktop! And choose the appropiate catalog file.

Edited by myselfidem, 12 June 2010 - 09:29 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#20
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
ok that fixed it but now I get Windows cannot parse error and the machine goes into a continual reboot. See screen shots.

Of the error

Windows Image manager

and my attached sysprepfixed.xml file.

I am using Windows 7 PRO 32 BIT

Attached Files



#21
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Hello
I see it's better to use:
<InputLocale>0409:00000409</InputLocale>
Because it seems that this value sometimes fails:
<InputLocale>en-us</InputLocale>

For your folder name where you install all the files for Windows 7 Pro, try to give a little name, like "WinPro" (don't use space)at the root of your HDD.

It seems that there is an error inside the last line for the catalog file inside sysprep.xml:
It must be like this:
install.wim#Windows 7 Professional

Edited by myselfidem, 12 June 2010 - 12:30 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#22
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
should I put 0409:00000409 for all instances of en-us?. Do I change these below also?


<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-us</UserLocale>

I put the wim file in C:\Winpro7

I still getting the parsing error with the rebooting loop

The last line of the xml file is

<cpi:offlineImage cpi:source="catalog:c:/winpro7/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

Attached Files



#23
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
No, it's OK! Just for InputLocale.

And if you want to launch the vbs file change:

</RunSynchronousCommand>
- <RunSynchronousCommand wcm:action="add">
  <Path>WScript.exe c:\windows\ClaraLaptop.vbs</Path> 
  <Order>4</Order> 

You can see inside this example the last line (example):
http://www.brianleej...x86_sysprep.xml

"OfflineImage" is the source of your Windows Image Professional
Have you check this line with WISM?

Edited by myselfidem, 12 June 2010 - 03:10 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#24
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
With WSIM you can load source install.wim, and you have this line:

</settings>
    <cpi:offlineImage cpi:source="wim:c:/winpro7/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Don't forget to save your new sysprep.xml
I've made with your informations: source folder: "C:\winpro7"

I hope that will help you!

Edited by myselfidem, 12 June 2010 - 03:37 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#25
clivebuckwheat

clivebuckwheat

    Senior Member

  • Member
  • PipPipPipPip
  • 577 posts
  • Joined 07-November 05
Worked great.


1. now the next hurdle is the auto activation is not working.

2. Also I am creating a admin user in the sysprep process, how can I make it part of the administrator group right now it is only a standard user.

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users