Get-MgmtSvcNotificationSubscriber

Get-MgmtSvcNotificationSubscriber

Gets a notification subscriber.

Syntax

Parameter Set: Default
Get-MgmtSvcNotificationSubscriber [[-Name] <String[]> ] [-ConnectionString <String> ] [-Database <String> ] [-EncryptionAlgorithm <String> ] [-EncryptionKey <String> ] [-Password <String> ] [-Server <String> ] [-UserName <String> ] [ <CommonParameters>]


 

Detailed Description

The Get-MgmtSvcNotificationSubscriber cmdlet gets one or more notification subscribers from the usage service. By default, all notification subscribers are returned. To get a specific notification subscriber, you can provide its name.

You can run this cmdlet from any computer in the deployment. However, this cmdlet assumes that the database is on the local computer. If the database is on another computer, you must use the Server, UserName, Password, and Database parameters, or a SQL connection string. If you specify a connection string by using the ConnectionString parameter, that value takes precedence over the Server, UserName, Password, and Database parameters.

This cmdlet also assumes that the usage service is installed on the local computer. If the usage service is installed on another computer, you must use the EncryptionKey and EncryptionAlgorithm parameters.

Parameters

-ConnectionString<String>

Specifies an SQL connection string.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Database<String>

Specifies a database name.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-EncryptionAlgorithm<String>

Specifies an encryption algorithm.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-EncryptionKey<String>

Specifies an encryption key, as a hexadecimal string.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String[]>

Specifies an array of notification subscriber names. You can use wildcards.

 

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

 

-Password<String>

Specifies a password.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Server<String>

Specifies the name of the computer on which the SQL database resides.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-UserName<String>

Specifies the name of a user account.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Get a notification subscriber

This command gets the notification subscriber named Billing. In this example, the database is on the local computer, therefore, the command does not specify the server, database, user name, or password parameters.

PS C:\> Get-MgmtSvcNotificationSubscriber -Name "Billing"

 

Related topics

Remove-MgmtSvcNotificationSubscriber

Set-MgmtSvcNotificationSubscriber