Freigeben über


BaseUpdateAgentConfiguration.SetAgentAccount Method (String, String, SecureString)

 

Applies To: Operations Manager for System Center 2012

Sets the account used by the agent when it is running.

Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

public void SetAgentAccount(
    string domain,
    string userName,
    SecureString password
)
public:
void SetAgentAccount(
    String^ domain,
    String^ userName,
    SecureString^ password
)
member SetAgentAccount : 
        domain:string *
        userName:string *
        password:SecureString -> unit
Public Sub SetAgentAccount (
    domain As String,
    userName As String,
    password As SecureString
)

Parameters

  • domain
    Type: System.String

    The domain to set for the agent account.

  • userName
    Type: System.String

    The user name to set for the agent account.

See Also

BaseUpdateAgentConfiguration Class
Microsoft.EnterpriseManagement.Administration Namespace

Return to top