类SMS_Site中的 ImportMachineEntry 方法

ImportMachineEntry Configuration Manager中导入计算机信息的 Windows Management Instrumentation (WMI) 类方法。

以下语法从托管对象格式 (MOF) 代码中简化,并定义了 方法。

语法

uint32 ImportMachineEntry   
{  
    [IN]    String NetbiosName  
    [IN]    String SMBIOSGUID  
    [IN]    String MACAddress  
    [IN]    Boolean OverwriteExistingRecord  
    [IN]    String FQDN  
    [IN]    String AdminPassword  
    [IN]    Boolean AddToCollection  
    [IN]    SMS_CollectionRule CollectionRule  
    [IN]    String CollectionId  
    [IN]    String WTGUniqueKey  
    [OUT]   Boolean MachineExists  
    [OUT]   UInt32 ResourceID  
    [OUT]   String SMSUniqueIdentifier  
};  

参数

NetbiosName
数据类型String

限定符:[id (“0”) ,in]

计算机的 NetBIOS 名称。

SMBIOSGUID
数据类型String

限定符:[id (“1”) ,in]

系统管理 BIOS 的 GUID (SMBIOS) 。

MACAddress
数据类型String

限定符:[id (“2”) ,in]

媒体访问控制器 (MAC) 地址。 MAC 地址必须适用于在 Windows PE 中具有驱动程序的网络适配器。 MAC 地址必须采用冒号格式。 例如,00:00:00:00:00:00。 其他格式阻止客户端接收策略。

OverwriteExistingRecord
数据类型Boolean

限定符:[id (“3”) ,in]

true 覆盖现有记录。

FQDN
数据类型String

限定符:[id (“4”) ,in,可选]

此计算机的完全限定域名。

AdminPassword
数据类型String

限定符:[id (“7”) ,in,可选]

在带外预配期间可能发生的 MEBx 密码更改的密码。

AddToCollection
数据类型Boolean

限定符:[id (“8”) ,in,可选]

true 将计算机添加到集合。

CollectionRule
数据类型SMS_CollectionRule

限定符:[id (“9”) ,in,可选]

将集合规则添加到指定的集合。 默认值为 NULL。

CollectionId
数据类型String

限定符:[id (“10”) ,in,可选]

计算机添加到的集合的集合标识符。 默认值为空白。

WTGUniqueKey
数据类型String

限定符:[id (“11”) ,in,可选]

对于 Windows To Go 部署,这是用于标识客户端的 USB 唯一密钥,而不是 SMBIOS 和 MAC 地址。

MachineExists
数据类型Boolean

限定符:[id (“12”) ,out]

true 如果计算机存在,则为 。

ResourceID
数据类型UInt32

限定符:[id (“13”) ,out]

计算机的资源标识符。

SMSUniqueIdentifier
数据类型String

限定符:[id (“14”) ,out]

Configuration Manager的唯一标识符。

备注

要求

运行时要求

有关详细信息,请参阅Configuration Manager服务器运行时要求

开发要求

有关详细信息,请参阅Configuration Manager服务器开发要求