|
本帖最后由 wu733 于 2024-3-16 23:32 编辑
用户名和计算机名都可以通过无人值守文件unattend.xml来指定,比如:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<oobe>
<userName>YourUserName</userName>
<organization>YourOrganization</organization>
</oobe>
</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>MyComputer</ComputerName>
<RegisteredOwner>YourName</RegisteredOwner>
<RegisteredOrganization>YourOrganization</RegisteredOrganization>
</component>
</settings>
</unattend>
计算机名还可以导入以下注册表来指定:
Windows Registry Editor Version 5.00
;修改计算机名,将下面的计算机名修改成你想要的名字即可
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName]
"ComputerName"="计算机名"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName]
"ComputerName"="计算机名"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters]
"NV Hostname"="计算机名"
|
评分
-
查看全部评分
|