Making Vista Sysprep Prompt for Computer name and Domain

Unanswered Making Vista Sysprep Prompt for Computer name and Domain

  • 2009年10月7日 20:56
     
     

    Hello, my environment is an active directory domain with mixed XP, Vista, and Mac OS clients.  We reimage classroom computers regularly and have computer accounts prestaged with specific names for workstations based upon a set naming convention.

    For XP, we have a sysprep answer file that prompts for computer name, domain.  After imaging a workstation, our operators can put the computer name and domain in and the computer will bind to active directory before first boot.

    By using this here,

    ;SetupMgrTag
    
    [Unattended]
    
        OemSkipEula=Yes
    
        InstallFilesPath=C:\sysprep\i386
    
        DriverSigningPolicy=Ignore
    
        UpdateInstallDrivers=Yes
    
        OemPNPDriversPath=
    
    
    
    [GuiUnattended]
    
        AdminPassword=secret
    
        EncryptedAdminPassword=No
    
        AutoLogon=Yes
    
        AutoLogonCount=1
    
        OEMSkipRegional=1
    
        TimeZone=35
    
        OemSkipWelcome=1
    
    
    
    [UserData]
    
        ProductKey=secret
    
        FullName="secret"
    
        OrgName="secret"
    
    
    
    [Display]
    
        BitsPerPel=32
    
        Xresolution=1024
    
        YResolution=768
    
    
    
    [SetupMgr]
    
        DistFolder=C:\sysprep\i386
    
        DistShare=windist
    
    
    
    [Identification]
    
        JoinDomain=secret.com
    
    
    
    [Networking]
    
        InstallDefaultComponents=Yes
    
    

    Our operators are prompted to enter a computer name (or leave it at the random one) and to proceed, have to enter a username and password to bind the workstation to active directory.  We can simply add the previous name back, bind to AD.

    I would like to know if it's possible to do something similar for Vista.  Currently, the best I have been able to get is a completely unattended sysprep setup, then we have to manually bind to active directory by logging in as a local admin account, right clicking computer -> properties -> etc.  I'd like to be able to process this during the sysprep, rather than having to wait for sysprep to complete, then have to manually name and bind.

    For what it's worth, we're using Windows Vista Business x86.  Here's a copy of the current sysprep.xml I've been using.

    <?xml version="1.0" encoding="utf-8"?>
    
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    
        <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>1</SkipRearm>
    
            </component>
    
        </settings>
    
        <settings pass="specialize">
    
            <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>net user administrator /active:yes</Path>
    
                        <Order>1</Order>
    
                    </RunSynchronousCommand>
    
                    <RunSynchronousCommand wcm:action="add">
    
                        <Path>reg add &quot;HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork&quot; /v Category /t REG_DWORD /d 00000000 /f</Path>
    
                        <Order>2</Order>
    
                    </RunSynchronousCommand>
    
                </RunSynchronous>
    
            </component>
    
            <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">
    
                <ComputerName>*</ComputerName>
    
                <ShowWindowsLive>false</ShowWindowsLive>
    
                <TimeZone>Eastern Standard Time</TimeZone>
    
            </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-us</InputLocale>
    
                <SystemLocale>en-us</SystemLocale>
    
                <UILanguage>en-us</UILanguage>
    
                <UserLocale>en-us</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>secret</RegisteredOrganization>
    
                <RegisteredOwner>secret</RegisteredOwner>
    
                <UserAccounts>
    
                    <AdministratorPassword>
    
                        <Value>secret</Value>
    
                        <PlainText>false</PlainText>
    
                    </AdministratorPassword>
    
                    <LocalAccounts>
    
                        <LocalAccount wcm:action="add">
    
                            <Password>
    
                                <Value>secret</Value>
    
                                <PlainText>false</PlainText>
    
                            </Password>
    
                            <Name>tech</Name>
    
                            <DisplayName>tech</DisplayName>
    
                        </LocalAccount>
    
                    </LocalAccounts>
    
                </UserAccounts>
    
                <OOBE>
    
                    <ProtectYourPC>3</ProtectYourPC>
    
                    <HideEULAPage>true</HideEULAPage>
    
                    <SkipUserOOBE>true</SkipUserOOBE>
    
                    <NetworkLocation>Work</NetworkLocation>
    
                </OOBE>
    
                <Display>
    
                    <HorizontalResolution>1024</HorizontalResolution>
    
                    <VerticalResolution>768</VerticalResolution>
    
                    <RefreshRate>60</RefreshRate>
    
                    <ColorDepth>32</ColorDepth>
    
                    <DPI>96</DPI>
    
                </Display>
    
            </component>
    
        </settings>
    
        <cpi:offlineImage cpi:source="wim:c:/secret/install.wim#Windows Vista BUSINESS" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    
    </unattend>

全部回复