Welcome to TechNet Blogs Sign in | Join | Help

Microsoft UK UC Blog

...architecture, best practice, news & abc of Exchange, OCS and all things UC related
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 excludeme.csx2k7dom.com

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

clip_image001

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

clip_image002

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

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

clip_image003

Further details about usage of the Get-ExchangeServer commands can be found on TechNet (http://technet.microsoft.com/en-us/library/bb123873.aspx).

Posted by Chris Stevenson (UK Premier Field Engineer)

Posted: Wednesday, September 30, 2009 2:55 PM by msukucc

Comments

Ugg Boots said:

The ugg knightsbridge world is a comedy to those who thinks, a tragedy to those ugg classic cardy who feels.Look not mournfully into the ugg boots past, it comes not back again. Wisely improve the present, it is ugg lo pro button thine. Go forth to meet the shadowy future, without fear, and with a manly ugg bailey button heart. http://www.ugg2you.com/specials.html

# November 1, 2009 4:19 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker