ChangeOwnership Method in Class SMS_Collection

 

Updated: November 1, 2013

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The ChangeOwnership Windows Management Instrumentation (WMI) class method, in System Center 2012 R2 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
);

ResourceIDs

Data type: UInt32 Array

Qualifiers: [in]

IDs of member resources.

DeviceOwner

Data type: UInt32

Qualifiers: [in]

The new owner of the machines.

1

Company

2

Personal

ReturnValue

Data type: SInt32

Qualifiers: [out]

The number of devices that were successfully reassigned ownership.

System_CAPS_importantImportant

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

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.

Show: