Windows 7 deployment
Hi Guys,
For some reason I cannot get a answer file to work when deploying Windows 7 32bit pro. Any ideas?
Everytime time the imaging starts it puts me straight at the lauguage, time and currency etc.. input screen.
Any Ideas on what is going wrong?
Please see my answer file below - very basic for now I just want to get it working. Thanks
<?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">
<InputLocale>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-gb</UILanguage>
<UserLocale>en-gb</UserLocale>
</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>Always</WillShowUI>
</DiskConfiguration>
<UseConfigurationSet>true</UseConfigurationSet>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-SystemRestore-Main" 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">
<DisableSR>1</DisableSR>
</component>
</settings>
<settings pass="oobeSystem">
<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>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-gb</UILanguage>
<UILanguageFallback></UILanguageFallback>
<UserLocale>en-gb</UserLocale>
</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">
<RegisteredOrganization>test</RegisteredOrganization>
<RegisteredOwner>IS</RegisteredOwner>
<TimeZone>Coordinated Universal Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:c:/iso/sw_dvd5_win_pro_7w_sp1_32bit_english_mlf_x17-28595/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
For some reason I cannot get a answer file to work when deploying Windows 7 32bit pro. Any ideas?
Everytime time the imaging starts it puts me straight at the lauguage, time and currency etc.. input screen.
Any Ideas on what is going wrong?
Please see my answer file below - very basic for now I just want to get it working. Thanks
<?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">
<InputLocale>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-gb</UILanguage>
<UserLocale>en-gb</UserLocale>
</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>Always</WillShowUI>
</DiskConfiguration>
<UseConfigurationSet>true</UseConfigurationSet>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-SystemRestore-Main" 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">
<DisableSR>1</DisableSR>
</component>
</settings>
<settings pass="oobeSystem">
<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>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-gb</UILanguage>
<UILanguageFallback></UILanguageFallback>
<UserLocale>en-gb</UserLocale>
</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">
<RegisteredOrganization>test</RegisteredOrganization>
<RegisteredOwner>IS</RegisteredOwner>
<TimeZone>Coordinated Universal Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:c:/iso/sw_dvd5_win_pro_7w_sp1_32bit_english_mlf_x17-28595/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
0 Comments
[ + ] Show comments
Answers (27)
Please log in to answer
Posted by:
cserrins
13 years ago
There is an example join domain script that you can run as a post install task. Or set your unattend file to join the domain. Since the computer is named properly it won't be a problem. However, if you have other postinstalls to accomplish its easier to do the join domain as the last postinstall.
I'll have to test on reapplying the get computername with /dialog. It should appear everytime.
I'll have to test on reapplying the get computername with /dialog. It should appear everytime.
Posted by:
weberik
13 years ago
well im not sure about anything dell specific here,
but on the first glimpse this looks a bit odd
<WillShowUI>Always</WillShowUI>
in your xml.
try <WillShowUI>OnError</WillShowUI>
or <WillShowUI>Never</WillShowUI>
if that doesnt work check the logfile
it should be in c:\windows\setupact.log or c:\windows\panther\setupact.log
also comparing your unattended.xml to a sample from the msdn howto might help
see the following link for guides and where to find samples:
http://technet.microsoft.com/en-us/library/dd349348%28WS.10%29.aspx
another option is to validate the xml with the "Windows System Image Manager", also explained in the technet link
but on the first glimpse this looks a bit odd
<WillShowUI>Always</WillShowUI>
in your xml.
try <WillShowUI>OnError</WillShowUI>
or <WillShowUI>Never</WillShowUI>
if that doesnt work check the logfile
it should be in c:\windows\setupact.log or c:\windows\panther\setupact.log
also comparing your unattended.xml to a sample from the msdn howto might help
see the following link for guides and where to find samples:
http://technet.microsoft.com/en-us/library/dd349348%28WS.10%29.aspx
another option is to validate the xml with the "Windows System Image Manager", also explained in the technet link
Posted by:
mac456
13 years ago
Posted by:
rmeyer
13 years ago
Mine looks like this in GB sites
You can try to set it like it then it works for me at least :)
And
And
You can try to set it like it then it works for me at least :)
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UILanguage>en-US</UILanguage>
<InputLocale>en-gb</InputLocale>
<UserLocale>en-gb</UserLocale>
<SystemLocale>en-gb</SystemLocale>
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
</component>
And
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<TimeZone>GMT Standard Time</TimeZone>
<!--computername and other stuff in here aswell etc-->
</component>
And
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>en-gb</InputLocale>
<SystemLocale>en-gb</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-gb</UserLocale>
</component>
Posted by:
mac456
13 years ago
Posted by:
cserrins
13 years ago
Posted by:
mac456
13 years ago
Posted by:
cserrins
13 years ago
Posted by:
mac456
13 years ago
Posted by:
RandomITPro
13 years ago
I found naming and joining the domain a difficult thing initially. I use sysprep to prompt for a name using <computername></computername>. For joining to the domain, I always liked XP's ability to join via command line using the NETDOM command. Netdom is missing from Win 7 pro so I had to install it via a windows update on my master image. Google KB958830 for the installer.
I then added the following command to first login command in unattend file:
netdom join %computername% /Domain:yourdomain.org /UserD:adaccount /PasswordD:password
works everytime.
I then added the following command to first login command in unattend file:
netdom join %computername% /Domain:yourdomain.org /UserD:adaccount /PasswordD:password
works everytime.
Posted by:
mac456
12 years ago
Posted by:
mac456
12 years ago
Posted by:
tcunningham
12 years ago
Posted by:
tcunningham
12 years ago
Posted by:
tcunningham
12 years ago
Ok I thought had it resolved but something wierd is going on and sometimes the getcomputername_x64.exe prompts for input of computername and sometimes not.
I have a RSA in my London site and have just amended my scripted installation to add some other software - resynced the RSA and of couse waited till sync completed successfully. Tried scripted install and I was not prompted to enter a computername. So I closed the cmd script and ran again and this time it worked.
Rebooted computer ran scripted install again and still not prompt. Ended script ran scripted install again and worked. NOT sure what's going on but don't want to have to inform IT staff in various sites to close scipt and try again each time.
I have a RSA in my London site and have just amended my scripted installation to add some other software - resynced the RSA and of couse waited till sync completed successfully. Tried scripted install and I was not prompted to enter a computername. So I closed the cmd script and ran again and this time it worked.
Rebooted computer ran scripted install again and still not prompt. Ended script ran scripted install again and worked. NOT sure what's going on but don't want to have to inform IT staff in various sites to close scipt and try again each time.
Posted by:
mac456
12 years ago
For me it was to do with the partition the name gets copied too (it wasn't automatically being wiped once the deployment had finished) So every time I started the script again it kept detecting it was still there. Once I set up a script to format both partitions correctly before the getcomputername script runs, the prompt has appeared every time without fail. Maybe worth a try?
Posted by:
tcunningham
12 years ago
Posted by:
tcunningham
12 years ago
Just come back from attending the KACE Konference in the UK and boot kamp instructors informed us to place Getcomputername before formatting and partitioning as it will defeat the object of capturing the computername of a machine you where rebuilding the OS. But even in the class the "getcomputername /dialog" did not prompt.
They seemed to think there may be a bug in it atm.
They seemed to think there may be a bug in it atm.
Posted by:
mac456
12 years ago
Thanks for the update.
I think what they mean is, if you are not using the dialog switch (eg, you require the old name to be stored) then you should put the getcomputername before the format process.
But in my enviroment we do not use the same name on machines, we require it prompting everytime so formatting it before the getcomputername runs will not effect anything because I do not need the old name.
But it would be nice if it worked how it should do.
Thanks
Mac
I think what they mean is, if you are not using the dialog switch (eg, you require the old name to be stored) then you should put the getcomputername before the format process.
But in my enviroment we do not use the same name on machines, we require it prompting everytime so formatting it before the getcomputername runs will not effect anything because I do not need the old name.
But it would be nice if it worked how it should do.
Thanks
Mac
Posted by:
cserrins
12 years ago
Posted by:
rmeyer
12 years ago
you could also just add this to the unattend.xml
that will join the domain and add the PC in the OU you like to have it in right away so you don't have to have a script run afterwards
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<Identification>
<JoinDomain>Domain name</JoinDomain>
<Credentials>
<Domain>Domain name</Domain>
<Username>Username of user that can join domain</Username>
<Password>Password :)</Password>
</Credentials>
<MachineObjectOU>OU=Computers,DC=Domain,DC=local</MachineObjectOU>
</Identification>
</component>
that will join the domain and add the PC in the OU you like to have it in right away so you don't have to have a script run afterwards
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<Identification>
<JoinDomain>Domain name</JoinDomain>
<Credentials>
<Domain>Domain name</Domain>
<Username>Username of user that can join domain</Username>
<Password>Password :)</Password>
</Credentials>
<MachineObjectOU>OU=Computers,DC=Domain,DC=local</MachineObjectOU>
</Identification>
</component>
Posted by:
cserrins
12 years ago
Posted by:
ngbrown24
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.