Win 7 OS deployment auto login

Antworten
djm79
Beiträge: 65
Registriert: 04 Feb 2013, 14:03

Win 7 OS deployment auto login

Beitrag von djm79 »

I got the OS deployment all worked out except for the first login:

Here: a copy of my unattended xml

Code: Alles auswählen

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<!--
	====================
	WINDOWSPE SETTINGS
	====================
	The windowsPE configuration pass is used to configure settings specific to Windows PE as well as settings that apply to installation.
	For example, you can specify the display resolution of Windows PE, where to save a log file, and other Windows PE-related settings.
	-->
	<settings pass="windowsPE">
		<!--
		<component name="Microsoft-Windows-PnPCustomizationsWinPE" 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">
			<DriverPaths>
				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
					<Path>C:\drvpe</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>
		-->
		<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">
			<DiskConfiguration>
				<WillShowUI>OnError</WillShowUI>
				<Disk wcm:action="add">
					<DiskID>0</DiskID>
					<WillWipeDisk>false</WillWipeDisk>
					<!--
					<CreatePartitions>
						<CreatePartition wcm:action="add">
							<Order>1</Order>
							<Type>Primary</Type>
							<Size>20000</Size>
						</CreatePartition>
					</CreatePartitions>
					-->
					<ModifyPartitions>
						#@modify_partitions*#
					</ModifyPartitions>
				</Disk>
			</DiskConfiguration>
			<!--
			<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">
						<Description>Do something</Description>
						<Order>1</Order>
						<Path>cmd.exe</Path>
					</RunSynchronousCommand>
				</RunSynchronous>
			</component>
			-->
			<UserData>
				<ProductKey>
					<WillShowUI>OnError</WillShowUI>
					<Key>#@productkey*#</Key>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
				<FullName>#@fullname*#</FullName>
				<Organization>#@orgname*#</Organization>
			</UserData>
			<ImageInstall>
				<OSImage>
					<InstallFrom>
						<MetaData wcm:action="add">
							<Key>/IMAGE/NAME</Key>
							<Value>#@imagename*#</Value>
						</MetaData>
					</InstallFrom>
					<InstallTo>
						<DiskID>0</DiskID>
						<PartitionID>#@windows_partition_number*#</PartitionID>
					</InstallTo>
					<WillShowUI>OnError</WillShowUI>
				</OSImage>
			</ImageInstall>
		</component>
		
		<component name="Microsoft-Windows-International-Core-WinPE" 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">
			<SetupUILanguage>
				<UILanguage>#@winpe_uilanguage*#</UILanguage>
				<WillShowUI>OnError</WillShowUI>
			</SetupUILanguage>
			<InputLocale>#@winpe_inputlocale*#</InputLocale>
			<SystemLocale>#@system_language*#</SystemLocale>
			<UILanguage>#@winpe_uilanguage*#</UILanguage>
			<UILanguageFallback>#@winpe_uilanguage_fallback*#</UILanguageFallback>
			<UserLocale>#@winpe_uilanguage*#</UserLocale>
			<LayeredDriver>1</LayeredDriver>
		</component>
	</settings>
	<!--
	=====================
	GENERALIZE SETTINGS
	=====================
	The generalize pass of Windows Setup is used to create a Windows reference image that can be used throughout an organization.
	A setting in the generalize pass enables you to automate the behavior for all deployments of this reference image.
	In comparison, a setting associated with the specialize configuration pass enables you to override behavior for a single, specific deployment.
	When a system is generalized, specific configuration data for a given installation of Windows is removed.
	For example, during the generalize pass, the unique security ID (SID) and other hardware-specific settings are removed from the image.
	The generalize configuration pass runs only when you use the sysprep /generalize command.
	Answer file settings in generalize are applied to the system before sysprep generalization occurs. The system then shuts down.
	-->
	<!--
	<settings pass="generalize">
	</settings>
	-->
	<!--
	=====================
	SPECIALIZE SETTINGS
	=====================
	During the specialize pass of Windows Setup, machine-specific information for the image is applied.
	For example, you can configure network settings, international settings, and domain information.
	The specialize pass is used in conjunction with the generalize pass.
	The generalize pass is used to create a Windows reference image that can be used throughout an organization.
	From this basic Windows reference image, you can add further customizations that apply to different divisions
	within an organization or apply to different installations of Windows.
	The specialize pass is used to apply these specific customizations.
	-->
	<settings pass="specialize">
		
		<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">
			<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
			<ComputerName>#@pcname*#</ComputerName>
			<!--  <ProductKey>#@productkey*#</ProductKey>  -->
			<CopyProfile>false</CopyProfile>
			<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
			<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
			<ShowWindowsLive>false</ShowWindowsLive>
			<StartPanelOff>false</StartPanelOff>
			<TimeZone>#@system_timezone*#</TimeZone>
			<WindowsFeatures>
				<ShowWindowsMail>false</ShowWindowsMail>
			</WindowsFeatures>
		</component>
		
		<component name="Microsoft-Windows-Security-Licensing-SLC-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>
		
		
		<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>mbtmaster</Domain>
					<Password>#######</Password>
					<Username>########</Username>
				</Credentials>
			<!--	<DebugJoin>true</DebugJoin> -->
				<JoinDomain>mbtmaster.com</JoinDomain>
			<!--	<JoinWorkgroup>joinworkgroup</JoinWorkgroup>
				<MachineObjectOU>machineobjectou</MachineObjectOU>
				<MachinePassword>machinepassword</MachinePassword>
				<UnsecureJoin>true</UnsecureJoin> -->
			</Identification>
		</component>
		
		
		<component name="Microsoft-Windows-RemoteAssistance-Exe" 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">
			<CreateEncryptedOnlyTickets>true</CreateEncryptedOnlyTickets>
			<fAllowToGetHelp>true</fAllowToGetHelp>
		</component>
		
		<component name="Microsoft-Windows-International-Core" 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">
			<InputLocale>#@system_keyboard_layout*#</InputLocale>
			<SystemLocale>#@system_language*#</SystemLocale>
			<UILanguage>#@system_language*#</UILanguage>
			<UILanguageFallback>#@system_language*#</UILanguageFallback>
			<UserLocale>#@system_language*#</UserLocale>
		</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">
					<Description>Enable Admin Account</Description>
					<Order>1</Order>
					<Path>cmd.exe /c net user administrator /active:yes</Path>
				</RunSynchronousCommand>
				<!--
				<RunSynchronousCommand wcm:action="add">
					<Description>Opsi tasks</Description>
					<Order>2</Order>
					<Path>cmd.exe /c #@winpe_partition_letter*#:\opsi\postinst.cmd</Path>
				</RunSynchronousCommand>
				-->
				<!--
				<RunSynchronousCommand wcm:action="add">
					<Description>EnableAdmin_ploc</Description>
					<Order>3</Order>
					<Path>cmd.exe /c net user Administrator_ploc /active:yes</Path>
				</RunSynchronousCommand>
				-->
			</RunSynchronous>
		</component>
		
		<component name="Networking-MPSSVC-Svc" 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">
			<DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
			<PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
			<PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
		</component>
		
		<component name="Security-Malware-Windows-Defender" 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">
			<DisableAntiSpyware>true</DisableAntiSpyware>
		</component>
		
	</settings>
	
	<!--
	=========================
	OFFLINESERVICING SETTINGS
	=========================
	Use the offlineServicing pass to apply unattended Setup settings to an offline Windows image.
	During this configuration pass, you can add language packs, updates, or other packages to the offline image.
	The offlineServicing pass runs during Windows Setup. Setup extracts and installs the Windows image, and then executes Package Manager (Pkgmgr.exe).
	Packages listed in the servicing section of the answer file are applied to the offline Windows image.
	The Unattend.xml settings in the offlineServicing pass are applied to the offline Windows image.
	Additionally, you can use Package Manager with an answer file to install packages.
	-->
	<settings pass="offlineServicing">
	
		<component name="Microsoft-Windows-PnPCustomizationsWinPE" 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">
			<DriverPaths>
				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
					<Path>c:\drvpe</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>
		
		<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
			<DriverPaths>
				<PathAndCredentials wcm:keyValue="1" wcm:action="add">
					<Path>c:\drv</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>
		
	</settings>
	
	<!--
	=====================
	AUDITSYSTEM SETTINGS
	=====================
	The auditSystem pass is an optional pass that enables you to add additional device drivers and applications to the image.
	This results in fewer required images because a reference image can be created with a minimal set of drivers.
	The image can be updated with additional drivers during the audit process.
	You can then test and resolve any operating system issues related to malfunctioning or incorrectly installed devices on the image.
	For example, you can install additional language packs, updates, or other applications, such as Microsoft Office.
	See Reseal mode in oobeSystem.
	-->
	<!--
	<settings pass="auditSystem">
	</settings>
	-->
	<!--
	=====================
	AUDITUSER SETTINGS
	=====================
	The auditUser pass is similar to the auditSystem pass.
	However, the auditUser pass processes these settings after users have logged on, not before they have logged on.
	Like the auditSystem pass, the auditUser pass is used to test the functionality of the Windows Vista image.
	See Reseal mode in oobeSystem.
	-->
	<!--
	<settings pass="auditUser">
	</settings>
	-->
	<!--
	=====================
	OOBESYSTEM SETTINGS
	=====================
	The oobeSystem pass configures settings that are applied during the first-boot experience for end users, also called Windows Welcome.
	oobeSystem settings are processed before a user first logs into Windows.
	Out-of-Box-Experience (OOBE) runs the first time the user starts a new computer.
	OOBE runs before the Windows shell or any additional software runs, and performs a small set of tasks necessary to configure and run Windows.
	-->
	<settings pass="oobeSystem">
		<!--
		<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">
			<Reseal>
				<Mode>Audit</Mode>
			</Reseal>
		</component>
		-->
		<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">
			<UserAccounts>
				<AdministratorPassword>
					<PlainText>true</PlainText>
					<Value>########</Value>
				</AdministratorPassword>
				<LocalAccounts>
					<!--
					<LocalAccount wcm:action="add">
						<Password>
							<PlainText>true</PlainText>
							<Value>uib</Value>
						</Password>
						<Description>UIB</Description>
						<Group>Administratoren</Group>
						<Name>UIB</Name>
						<DisplayName>UIB</DisplayName>
					</LocalAccount>
					-->
				</LocalAccounts>
			</UserAccounts>
			<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
			<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
			<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
			<ShowWindowsLive>false</ShowWindowsLive>
			<StartPanelOff>false</StartPanelOff>
			<TimeZone>#@system_timezone*#</TimeZone>
			<AutoLogon>
				<Enabled>true</Enabled>
				<LogonCount>3</LogonCount>
				<Username>Administrator</Username>
				<Password>
					<PlainText>true</PlainText>
					<Value>########</Value>
				</Password>
			</AutoLogon>
			<FirstLogonCommands>
				<SynchronousCommand wcm:action="add">
					<Description>Opsi tasks</Description>
					<Order>1</Order>
					<CommandLine>cmd.exe /c #@winpe_partition_letter*#:\opsi\postinst.cmd</CommandLine>
				</SynchronousCommand>
			</FirstLogonCommands>
			<!--
			<Display>
				<ColorDepth>32</ColorDepth>
				<DPI>96</DPI>
				<HorizontalResolution>1024</HorizontalResolution>
				<RefreshRate>75</RefreshRate>
				<VerticalResolution>768</VerticalResolution>
			</Display>
			-->
			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Work</NetworkLocation>
				<SkipUserOOBE>true</SkipUserOOBE>
				<ProtectYourPC>3</ProtectYourPC>
				<SkipMachineOOBE>true</SkipMachineOOBE>
			</OOBE>
			<OEMInformation>
				<Logo>c:\Program Files\opsi.org\opsi-client-agent\opsi-winst\logo_wo_name.jpg</Logo>
				<Manufacturer>Monroe Bank and Trust</Manufacturer>
				<Model></Model>
				<SupportURL>https://helpdesk.mbtmaster.com</SupportURL>
			</OEMInformation>
		</component>
		<!--
		<component name="Microsoft-Windows-International-Core" 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">
			<InputLocale>#@system_keyboard_layout*#</InputLocale>
			<SystemLocale>#@system_language*#</SystemLocale>
			<UILanguage>#@system_language*#</UILanguage>
			<UILanguageFallback>#@system_language*#</UILanguageFallback>
			<UserLocale>#@system_language*#</UserLocale>
		</component>
		-->
	</settings>
	<cpi:offlineImage cpi:source="wim:y:/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
It will not login the first time it just sits at the Ctrl Atl Del with a runtime error you have to click ok through.
Zuletzt geändert von djm79 am 15 Mai 2013, 14:42, insgesamt 1-mal geändert.
Benutzeravatar
tobias
Beiträge: 1291
Registriert: 20 Aug 2008, 12:36
Wohnort: Braunschweig
Kontaktdaten:

Re: Win 7 OS deployment auto login

Beitrag von tobias »

I think a better way is to create an Opsi Package, which creates the registrykeys you need for the autologon.

It could be, that OPSI has a Problem with the autologon (opsi block the logon of windows)
djm79
Beiträge: 65
Registriert: 04 Feb 2013, 14:03

Re: Win 7 OS deployment auto login

Beitrag von djm79 »

It before the opsi agent is installed as that happens on the first login which is not happening for w/e reason.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Win 7 OS deployment auto login

Beitrag von uncle_scrooge »

Please, post an extract of \windows\panther\unattendGC\setupact.log.
For the time being, only entries marked with [Shell Unattend] are of interest. You'll find them near the end of the file.

Why did you changed the logon count to '3'?

Thanks

Peter

And, even if they are for testing purposes only, posting passwords in plain text is imho not an good idea.
djm79
Beiträge: 65
Registriert: 04 Feb 2013, 14:03

Re: Win 7 OS deployment auto login

Beitrag von djm79 »

Heres the output to that txt file

Code: Alles auswählen

2013-05-15 12:15:08, Info                         [windeploy.exe] ------------------------------------------------
2013-05-15 12:15:08, Info                         [windeploy.exe] WinDeploy.exe launched with command-line []...
2013-05-15 12:15:08, Info                         [windeploy.exe] Setup has not completed, adding pending reboot.
2013-05-15 12:15:08, Info                         [windeploy.exe] Found generalization state [0x4], setup.exe completion flag [False] --> launching setup.exe.
2013-05-15 12:15:08, Info                         [windeploy.exe] Launching [C:\Windows\system32\oobe\setup.exe]...
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Starting MuiUnattend.exe GC
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] muiunattend is called with pass: specialize
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Found unattend setting "UILanguage" with value: "en-US".
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Found unattend setting "UILanguageFallback" with value: "en-US".
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Found unattend setting "Systemlocale" with value: "en-US".
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Found unattend setting "UserLocale" with value: "en-US".
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Found unattend setting "InputLocale" with value: "0409:00000409".
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Setting UILanguage setting.
2013-05-15 12:18:43, Info                         [MUIUNATTEND.EXE] Setting UILanguage setting to en-US succeded.
2013-05-15 12:18:43, Warning                      [MUIUNATTEND.EXE] A Fallback language en-US is specified for UILanguage en-US,which is incorrect since UILanguage is fully localised language.
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Setting system locale using unattended setting SystemLocale:"en-US".
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Set system locale to "en-US" successfully.
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Setting input locale using unattended setting InputLocale:"0409:00000409" and apply the same setting to default user accont/system accounts/new user account.
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Set input locale to "0409:00000409" and apply the same setting to default user accont/system accounts/new user account successfully.
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Setting user locale to using unattended setting UserLocale:"en-US", and try apply the same settings to default user accont/system accounts/new user account.
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Succeed in setting current user locale to "en-US".
2013-05-15 12:18:45, Info                         [MUIUNATTEND.EXE] Succeed in setting location to 244.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Succeed in copying settings for current user locale "en-US" to default user/system/new user accounts.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Set user locale to "en-US" successfully and apply the same settings to default user acconts/system account/new user account.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Applying user settings to all user (non-system) accounts.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Input locale is set for user:admin, value:0409:00000409.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] User locale is set for user:admin, value:en-US.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Input locale is set for user:administrator, value:0409:00000409.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] User locale is set for user:administrator, value:en-US.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Applying settings to user (non-system) accounts succeeded.
2013-05-15 12:18:46, Info                         [MUIUNATTEND.EXE] Exiting MuiUnattend.exe GC
2013-05-15 12:18:46, Info                         [Shell Unattend] Running 'specialize' pass
2013-05-15 12:18:46, Info                         [Shell Unattend] WindowsFeatures: Launched '"C:\Program Files\Windows Mail\WinMail.exe" OCInstallHideOE' 
2013-05-15 12:18:46, Info                         [Shell Unattend] WindowsFeatures: Launched HideWindowsLive
2013-05-15 12:18:47, Info                         [Shell Unattend] ComputerName set to accounting14 
2013-05-15 12:18:47, Info                         [Shell Unattend] Starting service sppsvc
2013-05-15 12:18:47, Info                         [Shell Unattend] Service sppsvc already running
2013-05-15 12:18:47, Info                         [Shell Unattend] ProductKey set 
2013-05-15 12:18:47, Info                         [Shell Unattend] TimeZone: Time zone set to 'Eastern Standard Time' 
2013-05-15 12:18:47, Info                         [Shell Unattend] Exiting 'specialize' pass with status 0x001f1000
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Begin
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Loading input parameters...
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: AccountData = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: UnsecureJoin = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: MachinePassword = [secret not logged]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: JoinDomain = [mbtmaster.com]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: JoinWorkgroup = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Domain = [mbtmaster]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Username = [administrator]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Password = [secret not logged]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: MachineObjectOU = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: DebugJoin = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: DebugJoinOnlyOnThisError = [NULL]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Checking that auto start services have started.
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Joining domain [mbtmaster.com]...
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Calling DsGetDcName for mbtmaster.com...
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: DsGetDcName returned [DC3.mbtmaster.com]
2013-05-15 12:18:47, Info                         [DJOIN.EXE] Unattended Join: Constructed domain parameter [mbtmaster.com\DC3.mbtmaster.com]
2013-05-15 12:19:03, Info                         [DJOIN.EXE] Unattended Join: NetJoinDomain succeeded!
2013-05-15 12:19:03, Info                         [DJOIN.EXE] Unattended Join: Exit, returning 0x1
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] SetupUGC launched with command line [specialize]
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] SetupUGC running to process unattend settings for pass [specialize]
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Processing any RunSynchronous setting...
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Running commands is not yet in progress
2013-05-15 12:19:04, Info       [0x090008] PANTHR CBlackboard::Open: C:\Windows\panther\commandexec\CommandExec succeeded.
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Found run command in registry: description = [Enable Admin Account]
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Found run command in registry: credentials = { domain is not specified, username is not specified, password info not logged }
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Found run command in registry: will continue execution without examining exit code
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Found run command in registry: path = [cmd.exe /c net user administrator /active:yes]
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Found RunSynchronous command: [cmd.exe /c net user administrator /active:yes]
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Finished executing [cmd.exe /c net user administrator /active:yes] synchronously
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Process returned with exit code 0x2
2013-05-15 12:19:04, Info       [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec.
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Processing any RunAsynchronous setting...
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Running commands is not yet in progress
2013-05-15 12:19:04, Info       [0x090008] PANTHR CBlackboard::Open: C:\Windows\panther\commandexec\CommandExec succeeded.
2013-05-15 12:19:04, Info       [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\commandexec\commandexec.
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] Processing ExtendOSPartition setting (if present)...
2013-05-15 12:19:04, Info                         [SETUPUGC.EXE] SetupUGC returning with exit code [0]
2013-05-15 12:19:06, Info                         [windeploy.exe] Process exited with exit code [0x0]
2013-05-15 12:19:06, Info                         [windeploy.exe] Found completion flag [True], reboot requested flag [True] --> rebooting computer before proceeding with deployment...
2013-05-15 12:19:06, Info                         [windeploy.exe] Making sure that SystemSetupInProgress is cleared.
2013-05-15 12:19:06, Info                         [windeploy.exe] An immediate reboot or shutdown was requested/required... rebooting / shutting down computer
2013-05-15 12:19:06, Info                         [windeploy.exe] Flushing registry to disk...
2013-05-15 12:19:06, Info                         [windeploy.exe] Flush took 686 ms.
2013-05-15 12:19:06, Info                         [windeploy.exe] WinDeploy.exe exiting with code [0x0]
2013-05-15 12:20:11, Info                         [windeploy.exe] ------------------------------------------------
2013-05-15 12:20:11, Info                         [windeploy.exe] WinDeploy.exe launched with command-line []...
2013-05-15 12:20:11, Info                         [windeploy.exe] Updating pass status for [specialize] to reflect reboot: 0x8 --> 0x9
2013-05-15 12:20:11, Info                         [windeploy.exe] Making sure that SystemSetupInProgress is cleared.
2013-05-15 12:20:11, Info                         [windeploy.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml]; examining for applicability.
2013-05-15 12:20:11, Info                         [windeploy.exe] UnattendSearchExplicitPath: Found usable unattend file for pass [oobeSystem] at [C:\Windows\Panther\unattend.xml].
2013-05-15 12:20:11, Info                         [windeploy.exe] Found unattend file: [C:\Windows\Panther\unattend.xml]
2013-05-15 12:20:11, Info                         [windeploy.exe] This is supposed to be an OOBE boot; checking for <Reseal> setting override in unattend file [C:\Windows\Panther\unattend.xml]...
2013-05-15 12:20:16, Info                         [windeploy.exe] Started WinSAT; will need to wait
2013-05-15 12:20:32, Info                         [windeploy.exe] Launching [C:\Windows\system32\oobe\oobeldr.exe /system]...
2013-05-15 12:20:32, Info                         [oobeldr.exe] OOBELdr.exe launched with command-line [/system]...
2013-05-15 12:20:32, Info                         [oobeldr.exe] OrchestrateUpdateImageState: Updating image state from [IMAGE_STATE_SPECIALIZE_RESEAL_TO_OOBE] --> [IMAGE_STATE_UNDEPLOYABLE]
2013-05-15 12:20:32, Info                         [oobeldr.exe] Parsing command line arguments...
2013-05-15 12:20:32, Info                         [oobeldr.exe] Parsing the following command line: [/system]
2013-05-15 12:20:32, Info                         [oobeldr.exe] Status for unattend pass [oobeSystem] = 0x0
2013-05-15 12:20:32, Info                         [oobeldr.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml]; examining for applicability.
2013-05-15 12:20:32, Info                         [oobeldr.exe] UnattendSearchExplicitPath: Found usable unattend file for pass [oobeSystem] at [C:\Windows\Panther\unattend.xml].
2013-05-15 12:20:32, Info                         [oobeldr.exe] Running oobeSystem pass with discovered unattend file [C:\Windows\Panther\unattend.xml]...
2013-05-15 12:20:32, Info                         [oobeldr.exe] Caching copy of unattend file: [C:\Windows\Panther\unattend.xml] -- cached at --> [C:\Windows\panther\unattend.xml]
2013-05-15 12:20:32, Info                         [oobeldr.exe] Source and destination paths are identical; skipping file copy.
2013-05-15 12:20:32, Info                         [oobeldr.exe] Cached unattend file, returned: [%windir%\panther\unattend.xml]
2013-05-15 12:20:32, Info                         [oobeldr.exe] Current pass status for [oobeSystem] is [0x0]
2013-05-15 12:20:32, Info                         [oobeldr.exe] Applying data-only settings overrides using SMI...
2013-05-15 12:20:33, Info                  CSI    00000001@2013/5/15:16:20:33.239 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x73eede79 @0x740be2d6 @0x740d0018 @0x740aadf1 @0x740aa984 @0x82942b)
2013-05-15 12:20:33, Info                         [oobeldr.exe] Successfully applied data-only settings overrides.
2013-05-15 12:20:33, Info                         [oobeldr.exe] Calling into RunSMIActionPass to execute unattend GCs for pass [oobeSystem]
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : GenerateActionQueue begin
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Processing pass = oobeSystem
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Generating queue file to C:\Windows\panther\actionqueue\oobeSystem.uaq
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Identity 0: Microsoft-Windows-Shell-Setup, Culture=neutral, Version=6.1.7601.17514, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=x86, versionScope=NonSxS
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Using component order file C:\Windows\winsxs\x86_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17592_none_0b0e4b4025cf4049\GlobalInstallOrder.xml
2013-05-15 12:20:33, Info                  CSI    00000001@2013/5/15:16:20:33.364 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x73d0de79 @0x741aeced @0x741aed9d @0x741ae1e4 @0x741aeaeb @0x829228)
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Found manifest file C:\Windows\Winsxs\Manifests\x86_microsoft-windows-shell-setup_31bf3856ad364e35_6.1.7601.17514_none_d4623c9747e247a7.manifest
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : GenerateActionQueue finish (hr = 0x0)
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : ProcessActionQueue start
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : ProcessActionQueue using queue file C:\Windows\panther\actionqueue\oobeSystem.uaq
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Command Line = C:\WINDOWS\SYSTEM32\RUNDLL32.EXE / arguments = shsetup.dll,SHUnattendedSetup / pass = oobeSystem / manifest path = C:\Windows\Winsxs\Manifests\x86_microsoft-windows-shell-setup_31bf3856ad364e35_6.1.7601.17514_none_d4623c9747e247a7.manifest
2013-05-15 12:20:33, Info                         [oobeldr.exe] [Action Queue] : Executing command "C:\WINDOWS\SYSTEM32\RUNDLL32.EXE" shsetup.dll,SHUnattendedSetup oobeSystem
2013-05-15 12:20:33, Info                         [Shell Unattend] Running 'oobeSystem' pass
2013-05-15 12:20:33, Info                         [Shell Unattend] WindowsFeatures: Launched HideWindowsLive
2013-05-15 12:20:33, Info                         [Shell Unattend] LogonCommands: Set command 'cmd.exe /c X:\opsi\postinst.cmd' 
2013-05-15 12:20:33, Info                         [Shell Unattend] TimeZone: Time zone set to 'Eastern Standard Time' 
2013-05-15 12:20:34, Info                         [Shell Unattend] UserAccounts: Password set for 'b1gch33z3' 
2013-05-15 12:20:34, Info                         [Shell Unattend] AutoLogon Password saved
2013-05-15 12:20:34, Info                         [Shell Unattend] AutoLogon Domain is ''
2013-05-15 12:20:34, Info                         [Shell Unattend] WinLogon DefaultDomainName set to ''
2013-05-15 12:20:34, Info                         [Shell Unattend] AutoLogon Username is 'b1gch33z3'
2013-05-15 12:20:34, Info                         [Shell Unattend] WinLogon DefaultUserName set to 'b1gch33z3'
2013-05-15 12:20:34, Info                         [Shell Unattend] AutoLogon LogonCount = 1
2013-05-15 12:20:34, Info                         [Shell Unattend] WinLogon AutoLogonCount set
2013-05-15 12:20:34, Info                         [Shell Unattend] AutoLogon enabled
2013-05-15 12:20:34, Info                         [Shell Unattend] Exiting 'oobeSystem' pass with status 0x00000000
2013-05-15 12:20:34, Info                         [oobeldr.exe] [Action Queue] : process exit code = 0
2013-05-15 12:20:34, Info                         [oobeldr.exe] [Action Queue] : Unattend action returned operation complete.
2013-05-15 12:20:34, Info                         [oobeldr.exe] [Action Queue] : ProcessActionQueue finish (hr = 0x0)
2013-05-15 12:20:34, Info                         [oobeldr.exe] Successfully completed execution of GC queue
2013-05-15 12:20:34, Info                         [oobeldr.exe] Flushing registry to disk...
2013-05-15 12:20:35, Info                         [oobeldr.exe] Flush took 827 ms.
2013-05-15 12:20:35, Info                         [oobeldr.exe] Successfully completed RunSMIPass for oobeSystem.
2013-05-15 12:20:35, Info                         [oobeldr.exe] No reboot has been requested for oobeSystem unattend.
2013-05-15 12:20:35, Info                         [oobeldr.exe] Successfully ran oobeSystem pass.
2013-05-15 12:20:35, Info                         [oobeldr.exe] Launching [C:\Windows\system32\oobe\msoobe.exe]...
2013-05-15 12:20:35, Info                         [msoobe.exe] Starting service sppsvc
2013-05-15 12:20:37, Info                         [msoobe.exe] Service sppsvc reports as running
2013-05-15 12:20:37, Info                         [msoobe.exe] Starting service audiosrv
2013-05-15 12:20:38, Info                         [msoobe.exe] Service audiosrv reports as running
2013-05-15 12:20:38, Info                         [msoobe.exe] Successfully created first boot reg key
2013-05-15 12:20:38, Info                         [msoobe.exe] Found SkipMachineOOBE value
2013-05-15 12:20:38, Info                         [msoobe.exe] Running mandatory tasks
2013-05-15 12:20:38, Info                         [msoobe.exe] Doing background work directly in MandatoryTasks; eType=1
2013-05-15 12:20:38, Info                         [msoobe.exe] Successfully installed product key
2013-05-15 12:20:38, Info                         [msoobe.exe] Starting service netprofm
2013-05-15 12:20:39, Info                         [msoobe.exe] Service netprofm reports as running
2013-05-15 12:20:39, Info                         [msoobe.exe] Successfully signalled event to start up services
2013-05-15 12:20:39, Info                         [msoobe.exe] Doing background work directly in MandatoryTasks; eType=0
2013-05-15 12:20:39, Info                         [msoobe.exe] Starting service Schedule
2013-05-15 12:21:03, Info                         [msoobe.exe] Service Schedule is already running
2013-05-15 12:21:03, Info                         [msoobe.exe] Successfully verified and committed UI language settings
2013-05-15 12:21:05, Info                         [msoobe.exe] Successfully notified UI language change
2013-05-15 12:21:06, Info                         [msoobe.exe] Successfully installed Windows Recovery Environment
2013-05-15 12:21:07, Info                         [msoobe.exe] Starting system services...
2013-05-15 12:21:10, Info                         [msoobe.exe] Exiting mandatory tasks... [0x00000000]
2013-05-15 12:21:10, Info                         [msoobe.exe] Cleaning up background work
2013-05-15 12:21:10, Info                         [oobeldr.exe] OrchestrateUpdateImageState: Updating image state from [IMAGE_STATE_UNDEPLOYABLE] --> [IMAGE_STATE_COMPLETE]
2013-05-15 12:21:10, Info                         [oobeldr.exe] OOBELdr.exe exiting with code [0x0]...
2013-05-15 12:21:11, Info                         [windeploy.exe] Process exited with exit code [0x0]
2013-05-15 12:21:11, Info       [0x090008] PANTHR CBlackboard::Open: C:\Windows\Panther\SetupInfo succeeded.
2013-05-15 12:21:11, Info       [0x090009] PANTHR CBlackboard::Close: c:\windows\panther\setupinfo.
2013-05-15 12:21:11, Info                         [windeploy.exe] WinDeploy.exe exiting with code [0x0]
I changed the logon count to three just to test possible issues with logon but I set it back to one. Its a complete test environment with zero out side access for testing but I did go back and remove the passwords thanks.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Win 7 OS deployment auto login

Beitrag von uncle_scrooge »

I'm missing something here.
According to your XML, autologon is set for the administrator account.
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Administrator</Username>

But your log says:
2013-05-15 12:20:34, Info [Shell Unattend] UserAccounts: Password set for 'b1gch33z3'
2013-05-15 12:20:34, Info [Shell Unattend] AutoLogon Password saved
2013-05-15 12:20:34, Info [Shell Unattend] AutoLogon Domain is ''
2013-05-15 12:20:34, Info [Shell Unattend] WinLogon DefaultDomainName set to ''
2013-05-15 12:20:34, Info [Shell Unattend] AutoLogon Username is 'b1gch33z3'
2013-05-15 12:20:34, Info [Shell Unattend] WinLogon DefaultUserName set to 'b1gch33z3'

Despite that, the log looks just fine.

So, back to square one.
The runtime error you mentioned in your first post says what?
When you use the original XML which comes with the OPSI-package, does it work?

Thanks
Peter
djm79
Beiträge: 65
Registriert: 04 Feb 2013, 14:03

Re: Win 7 OS deployment auto login

Beitrag von djm79 »

Looks like it was a botched WIM image capture that was causing the whole mess thanks for the help and info. Captured the image when it had a C++ redistrib installed once I removed and recaptured it deployed fine now on the production environment.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Win 7 OS deployment auto login

Beitrag von uncle_scrooge »

Glad to hear you sorted it out.
One more reason to stick with my old fashioned scripted installations.

Regards
Peter
Antworten