Get-AgentProxyAccount
Gets an ProxyAccount object or collection of ProxyAccount objects.
Syntax
Get-AgentProxyAccount [-jobserver] <Object> [[-name] <String>] [<CommonParameters>]
Detailed Description
The Get-AgentProxyAccount function gets an ProxyAccount object or a collection of ProxyAccount objects for the specified server.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
jobserver |
|
true |
false |
|
name |
|
false |
false |
|
Input Type
None
You cannot pipe objects to Get-AgentProxyAccount
Return Values
Microsoft.SqlServer.Management.Smo.Agent.ProxyAccount
Get-AgentProxyAccount returns a Microsoft.SqlServer.Management.Smo.Agent.ProxyAccount object.
Examples
EXAMPLE 1
Get-AgentProxyAccount "Z002\sql2K8"
This command gets a collection of ProxyAccount objects for SQL Server Z002\SQL2K8.