How to Connect to an SDK Service by Using Specified User Credentials
System Center
Updated: May 22, 2009
Applies To: Operations Manager 2007 R2, Operations Manager 2007 SP1, System Center Operations Manager 2007
An SDK client can connect to the SDK Service by using a given set of user credentials.
Note |
|---|
| The account that is used for authentication 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 the SDK Service by using a provided user name, domain, and password. The example also shows how to handle some common connection failures.
The code example requires a reference to the system.serviceprocess.dll file. This assembly is included in the .NET Framework.
Instead of explicitly calling the Connect method, you can instantiate a new ManagementGroup object by using the new keyword, as shown in the following example.
mg = new ManagementGroup(mgSettings);
is the same as:
mg = ManagementGroup.Connect(mgSettings);
See Also
Show:
Note