ÿþ<html> <head> <title>Get-ReplSubscription</title> </head> <body> <h1>Get-ReplSubscription</h1> <div>Gets a Subscription.</div> <h2> Syntax </h2> <code>Get-ReplSubscription [-pub] &lt;Object&gt; [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Get-ReplSubscription function gets the subscriptions from the specified ReplServer. </div> <h2> Related Commands </h2> <div> * <a href='Get-ReplSubscription.htm'>Get-ReplSubscription</a><br/> * <a href='Get-ReplServer.htm'>Get-ReplServer</a><br/> </div> <h2> Parameters </h2> <table border='1'> <tr> <th>Name</th> <th>Description</th> <th>Required?</th> <th>Pipeline Input</th> <th>Default Value</th> </tr> <tr valign='top'> <td>pub&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>true (ByValue)&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>Microsoft.SqlServer.Replication.Publication You can pipe Publication objects to Get-ReplSubscription</div> <h2> Return Values </h2> <div>Microsoft.SqlServer.Replication.TransSubscription or Microsoft.SqlServer.Replication.MergeSubscription Depending on the publication type Get-ReplSubscription returns either a Microsoft.SqlServer.Replication.TransSubscription or Microsoft.SqlServer.Replication.MergeSubscription object</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-ReplPublication "Z002\sql2K8" | Get-ReplSubscription</pre> <div>This command gets the subscriptions for SQL Server Z002\SQL2K8.</div> <h3> EXAMPLE 2</h3> <pre>Get-ReplPublication $(Get-ReplServer "Z002\SQL2K8" sa Passw0rd) | Get-ReplSubscription</pre> <div>This command gets the subscriptions for SQL Server Z002\SQL2K8 using SQL authentication.</div> </body> </html>