active-directory – 部署XP计算机无法使用Prestaged Computer Name

我很高兴使用WDS部署 Windows 7映像几个月了,一切都很顺利.
我已经预先安排了AD中的计算机名称,因为我们的一个客户希望不同房间中的不同计算机可以通过计算机名称轻松识别.
他现在要求提供XP图像,因为有些视频制作软件无法在Windows 7或Vista上运行(不管怎样都不想使用Vista)我创建了一个图像,并且一直在测试它的自动部署.我已经创建了一个sysprep.inf文件,目前它正好加入域,获取所有正确的设置等.唯一不做的就是让计算机正确,似乎根据用户随机创建一个PC已注册.

我已经粘贴了下面的sysprep.inf文件.

;SetupMgrTag
[Unattended]
    OemSkipEula=Yes
    InstallFilesPath=C:\sysprep\i386
    TargetPath=\WINDOWS

[GuiUnattended]
    AdminPassword=*
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    OEMDuplicatorstring=JT-v2
    TimeZone=85
    OemSkipwelcome=1

[UserData]
    ProductKey=*Product Key*
    FullName="User"
    OrgName="*Organisation*"
    ComputerName=*

[display]
    BitsPerPel=32
    Xresolution=1280
    YResolution=720
    Vrefresh=60

[RegionalSettings]
    LanguageGroup=1
    SystemLocale=00000809
    UserLocale=00000809
    InputLocale=0809:00000809

[Identification]
    JoinDomain=*domain*.local
    DomainAdmin=*domain*\administrator
    DomainAdminPassword=*password*

[Networking]
    InstallDefaultComponents=Yes

[branding]
    BrandIEUsingUnattended=Yes

[Proxy]
    Proxy_Enable=0
    Use_Same_Proxy=0

在setupmgr.exe中,我将ComputerName设置为%MACHINENAME% – 它似乎在此处显示为*.当我在inf文件中将其更改为%MACHINENAME%时,它仍然无法获得正确的名称错误“输入的计算机名称格式不正确…”

此外,一旦我确信我的sysprep文件正常工作,使用我现有的WDS服务器(Server 2008R2 SP1,WDS 6.1.7600.16385)部署此XP映像的最佳方法是什么,我可以轻松捕获图像,但WDS期望xml文件不是XP使用的inf文件.我看过this博客
并按照以下说明操作:

The next part of our completely unattended setup is an XP sysprep.inf
file. Again you can store this on the WDS server – navigate to your
RemoteInstall share again and under the Images folder you’ll see your
WDS Image Groups. As my image is called “winxpsp2.wim”,I’ll create a
folder called winxpsp2. In this folder,I’ll create the $OEM$
directory structure,within which I’ll put a folder called $1,within
which I’ll make a folder called sysprep,which is where the
sysprep.inf file will go. Phew! For reference,in my enviroment,this
means that we’re looking at D:\RemoteInstall\Images\Windows
XP\winxpsp2\$OEM$\$1\sysprep\sysprep.inf.

但是,当我这样做时,它似乎没有拿起存储在这个位置的sysprep文件.
有没有人有办法让这个工作.

好吧,让我们从sysprep.inf文件开始.

这只是一个不解释变量的平面文本文件. *用于表示随机选择的计算机名称.当WDS通过无人参与文件进行复制时,变量%MACHINENAME%和Others将被WDS替换为实际文本字符串.因此,对于任何此类工作,您必须使用WDS进行部署.

上面的说明确实有效.确保您已创建文件夹(在上面的示例中为winxpsp2)结构以匹配您捕获的wim图像.还要确保您在unattend.xml中指定的凭据具有文件夹结构的权限.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...