Configuration ManagerSubmitRegistrationRecord
中,Windows Management Instrumentation (WMI) 类方法提交注册记录。
以下语法从托管对象格式 (MOF) 代码中简化,并定义了 方法。
语法
SInt32 SubmitRegistrationRecord(
String SMSID,
String Certificate,
String CertificatePFX,
SInt32 Type,
String ServerName,
SInt32 UdaSetting,
SInt32 IssuedCert
);
参数
SMSID
数据类型String
限定符:[in]
用于标识证书的 GUID。 这是 SMS_CertificateInfo 服务器 WMI 类中 属性的值SMSID
。
Certificate
数据类型String
限定符:[in]
十六进制编码证书。
CertificatePFX
数据类型String
限定符:[in,可选]
包含证书的 PFX 文件的十六进制编码私钥。 默认值为“”。
Type
数据类型SInt32
限定符:[in,可选]
证书的类型。 为 SMS_CertificateInfo 服务器 WMI 类的 属性定义了Type
可能的值。 此参数的默认值为 BootMedia (1) 。
ServerNam
数据类型String
限定符:[in,可选]
用于标识服务器的名称。
UdaSetting
数据类型SInt32
限定符:[in,可选]
UdaSetting。 此参数的默认值为 Disabled (0) 。
值 | UdaSetting |
---|---|
0 | Disabled |
1 | Pending |
2 | 自动 |
IssuedCert
数据类型SInt32
限定符:[in,可选]
IssuedCert。 . 此参数的默认值为 1。
返回值
一个 SInt32
数据类型,为 0 表示成功,非零表示失败。
有关处理返回的错误的信息,请参阅关于Configuration Manager错误。
要求
运行时要求
有关详细信息,请参阅Configuration Manager服务器运行时要求。
开发要求
有关详细信息,请参阅Configuration Manager服务器开发要求。
另请参阅
SMS_Site 服务器 WMI 类
类SMS_Site中的 ImportMachineEntry 方法
类SMS_Site中的 IsUsedCert 方法
SMS_CertificateInfo服务器 WMI 类