課程 SMS_SoftwareUpdate 中的 SyncNow 方法

SyncNow Configuration Manager 中的 Windows Management Instrumentation (WMI) 類別方法會執行軟體更新點的手動同步。

下列語法是從 [受控物件格式] 簡化而 (MOF) 程式碼,並定義方法。

語法

SInt32 SyncNow(  
     Boolean fullSync  
);  

參數

fullSync
資料類型:Boolean

限定詞:[in]

true 是否應執行完整同步處理。 預設值為 false。

本資訊適用於 System Center 2012 Configuration Manager SP1 或更新版本,以及 System Center 2012 R2 Configuration Manager 或更新版本。

傳回值

SInt32資料類型為 0 表示成功,非零表示失敗。

如需處理傳回錯誤的相關資訊,請參閱 關於 Configuration Manager 錯誤。

需求

執行階段需求

如需詳細資訊,請參閱 Configuration Manager 伺服器執行階段需求。

開發需求

如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。

另請參閱

SMS_SoftwareUpdate Server WMI 類別