n.exe /REQUESTODJ /LOADFILE <FilePath> /WINDOWSPATH <Path>
注意: 其他参数为可选参数
将C:\WIN200701.TXT文件通过网络(或移动设备)复制到计算机Win200701上
四、客户端操作
以管理员权限找开命令提示符,运行
djoin.exe /REQUESTODJ /LOADFILE c:\win200701.txt /WINDOWSPATH c:\windows
重启计算机后,计算机将加入到域
五、使用无人职守文件离线加入到域
首先用djoin产生计算机帐号数据元,然后建立无人职守文件unattend.xml,添加如下信息
<Component><Component name=Microsoft-Windows-UnattendedJoin> <Identification> <Provisioning> <AccountData>Base64Encoded Blob</AccountData> </Provisioning> </Identification></Component>
其中<AccountData>Base64Encoded Blob</AccountData>中间包含计算机帐号数据元,即使用djoin产生的数据,即上面的win200701.txt文件的内容。
然后启动计算机到安装模式,或启动到windows pe,运行
setup /unattend:无人职守文件
以下是无人职守文件的示例:
- <component name="Microsoft-Windows-UnattendedJoin" 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">- <Identification>- <Credentials> <Domain>hbycrsj</Domain> <Password>3228272</Password> <Username>bill.xu</Username> </Credentials>- <Provisioning> <AccountData>ARAIAMzMzMyQAwAAAAAAAAAAAgABAAAAAQAAAAQAAgABAAAAAQAAAGgDAAAIAAIAaAMAAAEQCADMzMzMWAMAAAAAAAAAAAIABAACAAgAAgAMAAIADgAQABAAAgAWABgAFAACABYAGAAYAAIACnsCBQeui0WCXKbm8zXHzRwAAgAgAAIAJAACAAEAAAAKewIFB66LRYJcpubzNcfNKAACACwAAgD9MwDgMAACADQAAgAAAAAACAAAAAAAAAAIAAAASABCAFkAQwBSAFMASgAAAAoAAAAAAAAACgAAAFcASQBOADIAMAAwADcAMAAxAAAAeQAAAAAAAAB5AAAAbwBOADUAYABgADkAcwBqAFIAYQBYAHkAawBRAE4ANgAoAG4AOQAzAFQASQBvAFcAbgBKADEAIQAv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