在 Configuration Manager 中,GetImagePropertiesWindows Management Instrumentation (WMI) 類別方法可從指定的 .wim 來源檔案中讀取影像的所有中繼資料至 XML 字串。
下列語法是從 [受控物件格式] 簡化而 (MOF) 程式碼,並定義方法。
語法
SInt32 GetImageProperties(
String SourceImagePath,
String ImageProperty
);
參數
SourceImagePath 資料類型: String
限定詞:[in]
查詢中繼資料的 .wim 來源檔案路徑,例如 \\server\share\boot.wim。
ImageProperty 資料類型: String
資格賽:[出局]
包含影像中繼資料的 XML 文件。
傳回值
SInt32資料類型為 0 表示成功,非零表示失敗。
如需處理傳回錯誤的相關資訊,請參閱 關於 Configuration Manager 錯誤。
註解
這個方法會使用 ImagePropertySMS_ImagePackage Server WMI 類別的屬性來存取來源 .wim 檔案中繼資料。 如需詳細資訊,請參閱 如何檢視作業系統映像的屬性。
需求
執行階段需求
如需詳細資訊,請參閱 Configuration Manager 伺服器執行階段需求。
開發需求
如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。
另請參閱
SMS_ImagePackage SMS_ImagePackage 類別中的伺服器 WMI 類別ReloadImageProperties 方法