MSFN Forum: Windows 7 Enterprise Autounattend? - MSFN Forum

Jump to content


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

Windows 7 Enterprise Autounattend?

#1 User is offline   HK10/100 

  • Group: Members
  • Posts: 6
  • Joined: 05-April 07

Posted 05 April 2010 - 08:28 AM

Hi everyone,
I've been trying to create a 32-bit 7 unattended with our Enterprise media and product key. My problem is that the MAK/Volume license product key doesn't go in the same place as a retail product key in the autounattend.xml and Windows setup rejects the key as "invalid". However, if I leave the key blank the unattended works fine. Once in windows I use "slmgr.vbs -ipk" and "slmgr.vbs -ato" to replace the default enterprise key and activate Windows. My problem is that the slmgr vbs generates a result dialogue "The product key xxxxx-xxxxx-xxxxx-xxxxx-xxxxx was successfully installed." and you have to press an OK button. I would like to do this the right way and have the key built into the autounattend.xml.

I was wondering if anyone out there who was working with 7 Enterprise could post their autounattend so I could see where the key should go?

or any other idea's/suggestions they may have.

Thanks


#2 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 05 April 2010 - 08:47 AM

Depending on the "title" of the pop up window, you just need create a asynchrononous vbs script that waits for that particular window to appear and it will close it. Something like this.

Kill_Pop_Up.vbs

Set WshShell = Wscript.CreateObject("WScript.Shell")
Do While Not Wshshell.AppActivate ("What Ever Pop Up Title Is")
Wscript.sleep 1000
Loop
Wshshell.AppActivate "What Ever Pop Up Title Is"
Wshshell.SendKeys "%{F4}"


I would start the script either immediately before/after running your SLMGR commands.

#3 User is offline   HK10/100 

  • Group: Members
  • Posts: 6
  • Joined: 05-April 07

Posted 05 April 2010 - 08:59 AM

View PostMrJinje, on 05 April 2010 - 08:47 AM, said:

Depending on the "title" of the pop up window, you just need create a asynchrononous vbs script that waits for that particular window to appear and it will close it. Something like this.

Kill_Pop_Up.vbs

Set WshShell = Wscript.CreateObject("WScript.Shell")
Do While Not Wshshell.AppActivate ("What Ever Pop Up Title Is")
Wscript.sleep 1000
Loop
Wshshell.AppActivate "What Ever Pop Up Title Is"
Wshshell.SendKeys "%{F4}"


I would start the script either immediately before/after running your SLMGR commands.



That's another option. I'm trying to put the key into the autunattend file, but I may have to do it the way you suggested if I can't figure it out.

Thanks

Keep the suggestions coming.

#4 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,219
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 05 April 2010 - 04:09 PM

It would actually probably be more reliable outside the file - using slmgr as a task to run once the image is deployed.

#5 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,769
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 April 2010 - 05:05 PM

View PostHK10/100, on 05 April 2010 - 08:28 AM, said:

or any other idea's/suggestions they may have.

I found also you can't put in the xml so do this after setup or even during setupcomplete.cmd
START /WAIT /B cscript //nologo %windir%\system32\slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx >nul

EDIT: You can call that during oobesystem from a <FirstLogonCommands> cmds since you are using an xml

This post has been edited by maxXPsoft: 06 April 2010 - 05:59 AM


#6 User is offline   derniwi 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 24-November 08

Posted 06 April 2010 - 03:07 AM

Which tool do you use for deploying?

Using MDT 2010 it is possible to enter the KMS key into a task sequence.
And if you are using MAK, the VAMT can send the MAK key to the client.

Regards, Nils.

#7 User is offline   HK10/100 

  • Group: Members
  • Posts: 6
  • Joined: 05-April 07

Posted 06 April 2010 - 01:25 PM

Okay, so I solved my own problem by muddling through Microsoft's volume activation deployment guide. But I thought I would share in case anyone needed it in the future. Thanks to those who posted their suggestions.

<?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" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<SystemLocale>en-us</SystemLocale>
			<UserLocale>en-us</UserLocale>
			<UILanguage>en-US</UILanguage>
			<UILanguageFallback>en-us</UILanguageFallback>
			<InputLocale>0409:00000409</InputLocale>
		</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">
			<UserData>
				<ProductKey>
					<Key></Key>
					<WillShowUI>OnError</WillShowUI>
				</ProductKey>
				<Organization>_</Organization>
				<FullName>_</FullName>
				<AcceptEula>true</AcceptEula>
			</UserData>
			<ImageInstall>
				<OSImage>
					<InstallFrom>
						<MetaData wcm:action="add">
								<Key>/IMAGE/NAME</Key>
								<Value>Windows 7 ENTERPRISE</Value>
						</MetaData>
					</InstallFrom>
				</OSImage>
			</ImageInstall>
		</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">
						<Name>Owner</Name>
						<Group>Administrators</Group>
						<Password>
							<PlainText>true</PlainText>
							<Value></Value>
						</Password>
					</LocalAccount>
				</LocalAccounts>
			</UserAccounts>
			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Work</NetworkLocation>
				
<ProtectYourPC>2</ProtectYourPC>
				<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
			</OOBE>
		</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">
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-US</UserLocale>
			<InputLocale>0409:00000409</InputLocale>
		</component>
	</settings>
	<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">
			<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>	<<<---MAK PRODUCT KEY GOES HERE!
			<AutoLogon>
				<Enabled>true</Enabled>
				<Username>Owner</Username>
				<Password>
					<Value />
				</Password>
				<LogonCount>9999999</LogonCount>
			</AutoLogon>
			<TimeZone>Eastern Standard Time</TimeZone>
			<ComputerName>Rev4-1-10</ComputerName>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="wim:C:/Users/Someguy/Desktop/Windows_7_Unattended/GRMCENVOL_EN_DVD/sources/install.wim#Windows 7 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>





Now to figure out how to trigger program installations...

This post has been edited by HK10/100: 06 April 2010 - 01:27 PM


#8 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,769
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 April 2010 - 07:15 AM

View PostHK10/100, on 06 April 2010 - 01:25 PM, said:

Okay, so I solved my own problem by muddling through Microsoft's volume activation deployment guide.

<<<---MAK PRODUCT KEY GOES HERE!
i always have it in both them places but in first it didn't work so removed and resorted to just the Run cmds
MS and their BS they don't even know how works, rely on users to figure it out in their technet forums

This post has been edited by maxXPsoft: 07 April 2010 - 07:16 AM


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 - 2013 msfn.org
Privacy Policy