InstallAgentConfiguration.SetAgentAccount Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Sets the account used by the agent when the agent runs.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Usage
'Usage
Dim instance As InstallAgentConfiguration
Dim domain As String
Dim userName As String
Dim password As SecureString
instance.SetAgentAccount(domain, userName, password)
Syntax
'Declaration
Public Sub SetAgentAccount ( _
domain As String, _
userName As String, _
password As SecureString _
)
public void SetAgentAccount (
string domain,
string userName,
SecureString password
)
public:
void SetAgentAccount (
String^ domain,
String^ userName,
SecureString^ password
)
public void SetAgentAccount (
String domain,
String userName,
SecureString password
)
public function SetAgentAccount (
domain : String,
userName : String,
password : SecureString
)
Parameters
- domain
The domain of the account used by the agent.
- userName
The user name for the account used to run the agent.
- password
The password for the account used to run the agent.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
See Also
Reference
InstallAgentConfiguration Class
InstallAgentConfiguration Members
Microsoft.EnterpriseManagement.Administration Namespace