名稱Name

Name 指定要在稽核模式下使用的電腦名稱。Name specifies the computer name to use during audit mode.

Values

namename

指定電腦的名稱。Specifies the name of the computer. 如果您未指定名稱和MustReboot設定存在,會忽略此設定。If you do not specify a name and the MustReboot setting is present, this setting is ignored. 名稱值是最大長度為 15 個字元的字串。The name value is a string with a maximum length of 15 characters.

附註  如果您未指定此設定,系統會保留現有的電腦名稱。Note   If you do not specify this setting, the existing computer name is preserved.

如果您指定新的電腦名稱時,您可能必須重新啟動電腦,這樣它才會生效。If you specify a new computer name, you might have to restart the computer for it to take effect. 如果其他處理相依於新的電腦名稱,請設定MustReboot,則為 true立即重新啟動電腦。If additional processing is dependent on the new computer name, set the MustReboot value to true to restart the computer immediately.

此字串類型不支援空元素。This string type does not support empty elements. 請勿為此設定建立空值。Do not create an empty value for this setting.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

父階層Parent Hierarchy

Microsoft-Windows-Deployment | AuditComputerName | NameMicrosoft-Windows-Deployment | AuditComputerName | Name

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱Microsoft Windows DeploymentFor a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.

XML 範例XML Example

下列的 XML 輸出會顯示沒有非同步或同步命令的部署。The following XML output shows a deployment with no asynchronous or synchronous commands.

<AuditComputerName>
   <MustReboot>true</MustReboot>
   <Name>MyComputer</Name>
</AuditComputerName>
<ExtendOSPartition>
   <Extend>true</Extend>
</ExtendOSPartition>
<Reseal>
   <ForceShutdownNow>true</ForceShutdownNow>
   <Mode>Audit</Mode>
</Reseal>

AuditComputerNameAuditComputerName