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

Windows 7 Enterprise Autounattend?


  • Please log in to reply
7 replies to this topic

#1
HK10/100

HK10/100
  • Member
  • 6 posts
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


How to remove advertisement from MSFN

#2
MrJinje

MrJinje

    Toolâ„¢ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
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
HK10/100

HK10/100
  • Member
  • 6 posts

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
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag
It would actually probably be more reliable outside the file - using slmgr as a task to run once the image is deployed.
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!

#5
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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

Edited by maxXPsoft, 06 April 2010 - 05:59 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#6
derniwi

derniwi

    Newbie

  • Member
  • 44 posts
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
HK10/100

HK10/100
  • Member
  • 6 posts
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...

Edited by HK10/100, 06 April 2010 - 01:27 PM.


#8
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,881 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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

Edited by maxXPsoft, 07 April 2010 - 07:16 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN