The ActivateHierarchy Windows Management Instrumentation (WMI) class method, in Configuration Manager, activates the hierarchy.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
SInt32 ActivateHierarchy ( String sourceSite, String wmiAccount, String sqlAccount, String destinationSiteCode, String scheduleToken ); |
Parameters
- sourceSite
- Data type: String ArrayQualifiers: [in]The source site FQDN, netBIOS name or IP address.
- wmiAccount
- Data type: String ArrayQualifiers: [in]The account name to access the WMI provider on the source site.
- sqlAccount
- Data type: String ArrayQualifiers: [in]The account name to access SQL server on the source site.
- destinationSiteCode
- Data type: String ArrayQualifiers: [in]The destination site’s site code. This should be the top site.
- scheduleToken
- Data type: String ArrayQualifiers: [in]The schedule for the data gathering job.
Return Values
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For more information about handling returned errors, see About Configuration Manager Errors.
Requirements
Runtime Requirements
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.