Jump to content

Recommended Posts

Posted

Hi Guys,

this is driving me crazy ! :realmad:

If I use sysprep to go into audit mode and later leave audit mode using sysprep like it is recommended in the guides, Windows Setup always asks for the product key again during the OOBE phase later on even though I already added that to the WinPE phase of the autounattend.xml.

If I leave audit phase out, this does not happen !

I have already tried at least 30 times, with autounatten.xml´s from this forum etc. It always happens that way.

What can I do to use audit phase but not get asked for the key later on ?

( I am not using the generalize phase by the way )

Thanks for your help !

Alex

PS: Here´s my autounattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="specialize">
<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-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">
<AutoLogon>
<Username>Administrator</Username>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
</AutoLogon>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<Display>
<ColorDepth>32</ColorDepth>
<DPI>120</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<Themes>
<DefaultThemesOff>false</DefaultThemesOff>
</Themes>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
<ShowMediaCenter>true</ShowMediaCenter>
<ShowWindowsMail>true</ShowWindowsMail>
<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
</WindowsFeatures>
<RegisteredOwner>Privat</RegisteredOwner>
<RegisteredOrganization>None</RegisteredOrganization>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<StartPanelOff>false</StartPanelOff>
<ShowWindowsLive>true</ShowWindowsLive>
<CopyProfile>true</CopyProfile>
<ComputerName></ComputerName>
<TimeZone>W.Europe Standard Time</TimeZone>
</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>
<JoinWorkgroup>ARBEITSGRUPPE</JoinWorkgroup>
</Identification>
</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>cmd /c "cmdow @ /HID & FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\DVDRoot.txt SETX DVDRoot %i: -m"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Credentials />
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>QABpAGQANQBwAEAAdwBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Description>AIW Administrator</Description>
<DisplayName>AiwAdmin</DisplayName>
<Group>Administrators</Group>
<Name>AiwAdmin</Name>
</LocalAccount>
<LocalAccount wcm:action="add">
<Password>
<Value>QABpAGQANQBwAEAAdwBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
<Description>Administrator</Description>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>W.Europe Standard Time</TimeZone>
</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>0000043a</InputLocale>
<SystemLocale>de-AT</SystemLocale>
<UILanguage>de-DE</UILanguage>
<UserLocale>de-AT</UserLocale>
<UILanguageFallback>de-DE</UILanguageFallback>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-Security-Licensing-SLC" 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>0</SkipRearm>
</component>
</settings>
<settings pass="windowsPE">
<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">
<Diagnostics>
<OptIn>false</OptIn>
</Diagnostics>
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>
<DynamicUpdate>
<Enable>false</Enable>
</DynamicUpdate>
<UserData>
<ProductKey>
<WillShowUI>Never</WillShowUI>
<Key>XXXXXXXXXXXXXXXXXXXXXXXXXXX</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Privat</FullName>
<Organization>None</Organization>
</UserData>
<ComplianceCheck>
<DisplayReport>Never</DisplayReport>
</ComplianceCheck>
<LogPath></LogPath>
<UseConfigurationSet>false</UseConfigurationSet>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Value>Windows Vista ULTIMATE</Value>
<Key>/IMAGE/NAME</Key>
</MetaData>
</InstallFrom>
<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>de-DE</UILanguage>
<WillShowUI>Never</WillShowUI>
</SetupUILanguage>
<InputLocale>0000043a</InputLocale>
<SystemLocale>de-AT</SystemLocale>
<UILanguage>de-DE</UILanguage>
<UILanguageFallback>de-DE</UILanguageFallback>
<UserLocale>de-DE</UserLocale>
</component>
</settings>
<settings pass="auditUser">
<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">
<Path>cmd /c "cmdow @ /HID & %DVDRoot%\Setup\Microsoft\vcredist/vcredist_x86.exe /q"</Path>
<Order>2</Order>
<Description>Visual C++ Redistributable</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Path>cmd /C "cmdow @ /HID & %DVDRoot%\Setup\DaemonTools\SPTDinst-v150-x86.exe add /q"</Path>
<Description>SPTD Driver for Daemon Tools</Description>
<Order>3</Order>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Installationsmodus starten</Description>
<Order>1</Order>
<Path>cmd /c "%DVDRoot%\WPI\checklocal.cmd"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Path>cmd /c "cmdow @ /HID & %DVDRoot%\Regtweaks\silent_install.cmd"</Path>
<Order>4</Order>
<Description>Regtweaks installieren (Reboot 1 von 2)</Description>
<WillReboot>Always</WillReboot>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>50</Order>
<Credentials />
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>
<Description>Installationsmodus verlassen (Reboot 2 von 2)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>10</Order>
<Credentials />
<Path>cmd /c "cmdow @ /HID & %DVDRoot%\WPI\wpi.hta"</Path>
<Description>Anwendungsinstallation</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditSystem">
<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">
<AutoLogon>
<LogonCount>2</LogonCount>
<Username>Administrator</Username>
<Enabled>true</Enabled>
<Password>
<Value>QABpAGQANQBwAEAAdwBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
</AutoLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://mediastation/mediausers/alexander/installation/aiw5/release/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Posted

I think you ran into the same problem that I had.

I already asked 2 weeks ago on this forum for a solution, I got no reply yet though. (click here for my posting)

However, according to the waik help you should insert the product key in the specialize pass aswell to skip setup prompting for a key

If you specify a product key in the windowsPE configuration pass with ProductKey (Microsoft-Windows-Setup), then Windows welcome will prompt for a product key. If you specify the ProductKey (Microsoft-Windows-Shell-Setup) setting during the specialize pass, then Windows Welcome will not prompt for a product key.

This didn't work at all though, even after putting the key into the specialize pass windows welcome will still ask for the key. Seems like a bug to me.

The only workaround I found so far is skipping the MachineOOBE with <SkipMachineOOBE>true</SkipMachineOOBE> in your Microsoft-Windows-Shell-Setup from the oobeSystem pass. Of course this will lead into lots of disadvantages since windows welcome is totally ignored and your machine might end up in a useless state if you forget adding needed settings (e.g. if you don't add users in your unattend file without reactivating the admin account... quite funny if you can't log on ;))

Posted (edited)

Look at these examples maybe it will help you :angel

...........................................................................................
...................
<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">
<UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<Key></Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
</UserData>
....................................................................................................
.........................

It's working for me !!!

Edited by Mercury_22
Posted (edited)
It's working for me !!!

Can you get it to work without <SkipMachineOOBE>true</SkipMachineOOBE>? Because your examples do use this entry.

Edited by TSBL
Posted

Hi guys,

great, so many replies !!! :hello:

I already tried

<UserData>

<AcceptEula>true</AcceptEula>

<ProductKey>

<Key></Key>

<WillShowUI>OnError</WillShowUI>

</ProductKey>

</UserData>

Did not help, unfortunately. I also tried adding the key to the specialize phase as TSBL pointed out but did not work either (again, as TSBL said).

So to me this is a bug that only appears if audit phase is being used. The reason why no one seems to complain may be because all you guys have <SkipMachineOOBE>true</SkipMachineOOBE> entries in your autounattend.xml :whistle:

However I would like to not do that for the mentioned reasons. I am now trying to not use audit phase at all and use first logon commands during OOBE instead. Don´t know yet how it turns out, it will certainly be quicker than audit phase (sysprep takes a lot of time to go into audit phase !!!! ) but I am not sure it will work as reliably, also there seems to be no nice GUI that tells you where you are in your script.

If anyone has a better solution .....

Bye,

Alex

Posted
In my second example it's no such thing like <SkipMachineOOBE>true</SkipMachineOOBE>

:no: B)

Topic: "Setup always asks for ProductKey again if audit phase is being used"

Your second example doesn't boot to audit mode ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...