How to Connect to an SDK Service by Using the Current Credentials

System Center

Updated: May 22, 2009

Applies To: Operations Manager 2007 R2, Operations Manager 2007 SP1, System Center Operations Manager 2007

An Operations Manager SDK client application can connect to the SDK Service by using the credentials of the current user.

noteNote
The current user's account must be included in an Operations Manager user-role profile. For more information, see How to Connect an Operations Manager SDK Client to the SDK Service

Example

The following example demonstrates how to connect to an SDK Service by using the credentials of the current user. The example also shows how to handle some common connection failures.

No code example is currently available or this language may not be supported.

Instead of explicitly calling the Connect method, you can also instantiate a new ManagementGroup object by using the new keyword, as shown in the following example.

mg = new ManagementGroup(serverName);

Is the same as:

mg = ManagementGroup.Connect(serverName);

See Also

Show: