Viewing Registry Values Through PowerShell

By default when you run a command through PowerShell to retrieve values with registry keys, the response shows the values as being empty. Here’s an example – I use the following command to set an excluded DC:

Set-ExchangeServer -Identity CSX2K71 -StaticExcludedDomainControllers

The key appears as expected in the registry (within MSExchange ADAccess | Profiles | Default) :


However, when you try to retrieve the settings using the default command, you get the following output:


In order to retrieve the registry values, you must add the –Status command as follows:

Get-ExchangeServer -Identity CSX2K71 -Status | fl Name, StaticExcludedDomainControllers


Further details about usage of the Get-ExchangeServer commands can be found on TechNet (

Posted by Chris Stevenson (UK Premier Field Engineer)

Comments (0)

Skip to main content