Get-ReplServer
Gets a ReplServer.
Syntax
Get-ReplServer [-replServer] <String> [[-username] <String>] [[-password] <String>] [<CommonParameters>]
Detailed Description
The Get-ReplServer function gets the ReplServer specified. This is the top level object for RMO.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
replServer |
|
true |
false |
|
username |
|
false |
false |
|
password |
|
false |
false |
|
Input Type
None
You cannot pipe objects to Get-ReplServer
Return Values
Microsoft.SqlServer.Replication.ReplicationServer
Get-ReplServer returns a Microsoft.SqlServer.Replication.ReplicationServer object.
Examples
EXAMPLE 1
Get-ReplServer "Z002\sql2K8"
This command gets the ReplServer for SQL Server Z002\SQL2K8.
EXAMPLE 2
Get-ReplServer "Z002\SQL2K8" sa Passw0rd
This command gets the ReplServer for SQL Server Z002\SQL2K8 using SQL authentication.