ChangeOwnership Method in Class SMS_Collection

The ChangeOwnership Windows Management Instrumentation (WMI) class method, in Configuration Manager, changes ownership of the devices.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.


SInt32 ChangeOwnership(  
     UInt32 ResourceIDs[],  
     UInt32 DeviceOwner  
     SInt32 ReturnValue  


Data type: UInt32 Array

Qualifiers: [in]

IDs of member resources.

Data type: UInt32

Qualifiers: [in]

The new owner of the machines.

Value Device owner
1 Company
2 Personal

Data type: SInt32

Qualifiers: [out]

The number of devices that were successfully reassigned ownership.


Even if there is an error, some devices may still get reassigned ownership.

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.


Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

SMS_Collection Server WMI Class
SMS_Site Server WMI Class