MSFN Forum: some strange sysprep issue... - MSFN Forum

Jump to content



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

some strange sysprep issue... what is missing from my sysprep.xml? Rate Topic: -----

#1 User is offline   Br4tt3 

  • World famous sausage eater...
  • PipPipPipPip
  • Group: Members
  • Posts: 566
  • Joined: 20-April 04

Posted 31 January 2007 - 03:39 AM

Hi folks...

I am having an issue when I am running the sysprep function from within a BDD capture scenario. When the script is executing it will actually run sysprep.exe but it does accept my custom sysprep.xml file for usage. This is what happens:

1. Executing the following command from the script named: LTISysprep.wsf

C:\Windows\System32\sysprep\sysprep.exe /quiet /generalize /oobe /unattend:c:\windows\system32\sysprep\sysprep.xml /quit

2. Once sysprep.exe is exectuted, the c:\Windows\System32\sysprep\panther directory is created which contains the logs for the sysprep command, reading from the setupact.txt, I find the following:

[0x0f004d] SYSPRP The time is now 2007-02-03 09:16:12
[0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\sysprep\Panther
[0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
[0x0f0056] SYSPRP ValidateVersion:OS version is okay
[0x0f005c] SYSPRP ScreenSaver:Successfully disabled screen saver for sysprep
[0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
[0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET'
[0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
[0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
[0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
[0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIT'
[0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread

[sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [c:\windows\system32\sysprep\sysprep.xml]...
[sysprep.exe] UnattendFindAnswerFile: [c:\windows\system32\sysprep\sysprep.xml] meets criteria for an explicitly provided unattend file.
SYSPRP SysprepSearchForUnattend: Using unattend file at [c:\windows\system32\sysprep\sysprep.xml].
SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [c:\windows\system32\sysprep\sysprep.xml] either doesn't exist or passed validation
SYSPRP WinMain:Found unattend file at [c:\windows\system32\sysprep\sysprep.xml]; caching...
SYSPRP WinMain:Processing unattend file's 'generalize' pass...
SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
CSI	00000001@2007/2/3:08:16:13.448 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x7fef92ae9d9 @0x7fef4143a7f @0x7fef415c196 @0x7fef412da8c @0x7fef412c9e3 @0xff63d17c)
[sysprep.exe] [Action Queue] : GenerateActionQueue begin
[sysprep.exe] [Action Queue] : Processing pass = generalize
[sysprep.exe] [Action Queue] : Generating queue file to C:\Windows\panther\actionqueue\generalize.uaq
[sysprep.exe] [Action Queue] : Identity 0: Microsoft-Windows-Shell-Setup, Culture=neutral, Version=6.0.6000.16386, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS
[sysprep.exe] [Action Queue] : Using component order file C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.0.6000.16386_none_63473ad082bcdac6\GlobalInstallOrder.xml
CSI	00000001@2007/2/3:08:16:13.588 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x7fef92ae9d9 @0x7fef420ed68 @0x7fef420ddc4 @0x7fef420dbcf @0xff63d497 @0xff63cd8a)
[sysprep.exe] [Action Queue] : Found manifest file C:\Windows\Winsxs\Manifests\amd64_microsoft-windows-shell-setup_31bf3856ad364e35_6.0.6000.16386_none_2c42ac33a5128efe.manifest
[sysprep.exe] [Action Queue] : GenerateActionQueue finish (hr = 0x0)
[sysprep.exe] [Action Queue] : ProcessActionQueue start
[sysprep.exe] [Action Queue] : ProcessActionQueue using queue file C:\Windows\panther\actionqueue\generalize.uaq
[sysprep.exe] [Action Queue] : ProcessActionQueue finish (hr = 0x0)
SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0


NOTE: Please check the entry that states that sysprep does not accept the sysprep.xml [generalize] section of the file...

3. And here is my sysprep.xml file:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<settings pass="specialize">
		<component name="Microsoft-Windows-Shell-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">
			<AutoLogon>
				<Password>
					<Value>TQB5AFAANAAkACQAdwAwAHIAZAAhAFAAYQBzAHMAdwBvAHIAZAA=</Value>
					<PlainText>false</PlainText>
				</Password>
				<Domain></Domain>
				<Enabled>true</Enabled>
				<LogonCount>2</LogonCount>
				<Username>Administrator</Username>
			</AutoLogon>
			<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
			<ComputerName>*</ComputerName>
			<CopyProfile>false</CopyProfile>
			<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
			<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
			<RegisteredOrganization>Some Department</RegisteredOrganization>
			<RegisteredOwner>MyCompany IT AB</RegisteredOwner>
			<ShowWindowsLive>true</ShowWindowsLive>
			<StartPanelOff>false</StartPanelOff>
			<TimeZone>W. Europe Standard Time</TimeZone>
		</component>
		<component name="Microsoft-Windows-International-Core" 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">
			<InputLocale>0409:00000409</InputLocale>
			<SystemLocale>en-us</SystemLocale>
			<UserLocale>en-us</UserLocale>
			<UILanguage>en-us</UILanguage>
		</component>
		<component name="Microsoft-Windows-IE-InternetExplorer" 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">
			<FavoritesList>
				<FavoriteItem wcm:action="add">
					<FavTitle>MinFavorit</FavTitle>
					<FavURL>http://www.min_favorit.se</FavURL>
					<FavID>1</FavID>
				</FavoriteItem>
			</FavoritesList>
			<SearchScopes>
				<Scope wcm:action="add">
					<ScopeDisplayName>MinSearch</ScopeDisplayName>
					<ScopeKey>MinSearchKey1</ScopeKey>
					<ScopeUrl>http://www.searchochfinn.se</ScopeUrl>
				</Scope>
			</SearchScopes>
			<AllowedSites>http://iwww.mycompany.com</AllowedSites>
			<BlockPopups>yes</BlockPopups>
			<CompanyName>MyCompany IT AB</CompanyName>
			<Home_Page>http://www.myhomepage.nu</Home_Page>
			<IEWelcomeMsg>false</IEWelcomeMsg>
		</component>
		<component name="Microsoft-Windows-Deployment" 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">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Path>cmd /c net user Administrator /active:yes</Path>
					<Description>EnableAdmin</Description>
					<Order>1</Order>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>
	</settings>
	<settings pass="oobeSystem">
		<component name="Microsoft-Windows-Shell-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">
			<FirstLogonCommands>
				<SynchronousCommand wcm:action="add">
					<CommandLine>c:\mycompany-app\mainhook.exe</CommandLine>
					<Description>ExecutingMainhook</Description>
					<Order>1</Order>
				</SynchronousCommand>
			</FirstLogonCommands>
			<OOBE>
				<SkipUserOOBE>true</SkipUserOOBE>
				<ProtectYourPC>1</ProtectYourPC>
				<NetworkLocation>Work</NetworkLocation>
				<HideEULAPage>true</HideEULAPage>
			</OOBE>
			<RegisteredOrganization>MyCompany IT AB</RegisteredOrganization>
			<RegisteredOwner>MyCompany IT AB</RegisteredOwner>
			<TimeZone>W. Europe Standard Time</TimeZone>
			<StartPanelOff>false</StartPanelOff>
			<ShowWindowsLive>false</ShowWindowsLive>
			<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
			<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
			<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
			<AutoLogon>
				<Password>
					<Value>TQB5AFAANAAkACQAdwAwAHIAZAAhAFAAYQBzAHMAdwBvAHIAZAA=</Value>
					<PlainText>false</PlainText>
				</Password>
				<Enabled>true</Enabled>
				<LogonCount>2</LogonCount>
				<Username>Administrator</Username>
			</AutoLogon>
			<Display>
				<ColorDepth>32</ColorDepth>
				<HorizontalResolution>1024</HorizontalResolution>
				<RefreshRate>60</RefreshRate>
				<VerticalResolution>768</VerticalResolution>
			</Display>
		</component>
	</settings>
	<settings pass="generalize">
		<component name="Microsoft-Windows-Shell-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">
			<RegisteredOrganization>Some Department</RegisteredOrganization>
			<RegisteredOwner>MyCompany IT AB</RegisteredOwner>
		<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="catalog://bddsehbg-nt6000/distribution$/operating systems/winvista_x64_ent/sources/install_windows vista enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Anyone know what I am missing in my sysprep.xml file? I cant seem to get around it...


#2 User is offline   Br4tt3 

  • World famous sausage eater...
  • PipPipPipPip
  • Group: Members
  • Posts: 566
  • Joined: 20-April 04

Posted 31 January 2007 - 07:04 AM

Also, when checking the setupact.log file, one can see from the sysprep logs that it first tries the sysprep.xml file but denies, then moves over and snatches an unattend.xml file from the following directory: C:\%windir%\panther\unattend.xml file....

When I compare the unattend.xml with the sysprep.xml file there is one specific setting that is missing in my sysprep.xml file:

Unattend.xml
<settings pass="generalize" wasPassProcessed="true">

Sysprep.xml
<settings pass="generalize">

If I copy that setting over, then I cannot open the sysprep.xml file from within the WSIM application! Any one seen it or know what it stands for?

Share this topic:


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

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



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