nscontrol displayargumentkey Command
Displays the value of the SQL Server Notification Services key used to encrypt delivery channel and event provider arguments, if the instance uses argument encryption.
Configure argument encryption using the EncryptArguments element in the instance configuration file (ICF). When the EncryptArguments value is true, Notification Services encrypts the values of delivery channel and event provider arguments before storing these values in the instance and application databases.
You initially provide the key value when you register or create the instance. You need to use the same key value when creating, updating, and registering the instance. The nscontrol displayargumentkey command enables you to view the key.
The nscontrol displayargumentkey command returns the key value from the registry.
The account used to run nscontrol displayargumentkey must be a member of the Administrators or Power Users groups in Windows, or must be the same account as used to run the instance. The account must also have permission to execute the Notification Services binary files; this permission is granted to members of the Administrators and SQLServerNotificationServicesUser Windows groups.
The following example shows how to view the argument key for the
nscontrol displayargumentkey -name StockInstance