none
ComputerName not taking from Unattend.xml RRS feed

  • Question

  • I have a very simple unattend.xml that I am copying into a sysprepped Windows Server 2012 R2 VHDX file that I use for deploying my VMs.  I basically want it to set the admin password, hide the EULA, set the locale, and then assign the computer a name.  The first three work just fine.  But the computer name is not getting set.  It's gotta be something simple, but I have not been able to find what I am doing wrong.  Assistance greatly appreciated.  (You can readily tell I am not using MDT to create the file, but I figured the unattend.xml experts would be here.)

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    
       <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
                        <Value>localAdminPwd</Value>
                        <PlainText>true</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                </OOBE>
            </component>
    
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" 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-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>en-US</UserLocale>
            </component>
        </settings>
    
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" 
    language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>computerName</ComputerName>
            </component>
        </settings>
    
    
    </unattend>
    


    . : | : . : | : . tim

    Thursday, September 10, 2015 10:12 PM

Answers

All replies

  • I can't tell just by looking at your unattend.xml file.

    If you need a reference guide, I have a working unattend.xml file embedded within this powershell script:

    http://ps2wiz.codeplex.com/SourceControl/latest#Examples/Demo-HyperVQuickStart.ps1

    This is the minimum I need to get a machine up and running with no user input during specialize and oobe.

    If you are still having problems, please capture your panther logs place on a public share like onedrive, and share the link here.


    Keith Garner - Principal Consultant [owner] - http://DeploymentLive.com

    Thursday, September 10, 2015 11:30 PM
    Moderator
  • Thanks for the unattend.xml file, Keith. Having it helped me debug my problem. Since you know your file worked for you, I figured it would have to work for me. But it didn't. I tried everything I could think of, but nothing seemed to work. Finally, I recreated the sysprepped image I was using in all my tests, re-ran, and everything in the unattend worked fine.  So there was something hokey in my base sysprepped image.

    And, besides providing a known working unattend.xml, you also had some additional settings that I thought would make sense in my automation, too.

    Thanks, appreciate the help.


    . : | : . : | : . tim

    Friday, September 11, 2015 5:50 PM