Exchange Shell Question on Guid
Good Day, running Exchange 2010RTM, I have a command that I believe should work it is the following Get-Mailbox|Get-MailboxStatistic|ft Displayname, MailboxGuild When I run the command I see the displaynames of all my mailboxes but where it says MailboxGuild it is blank. I want a way to assocate the mailbox Guid name with the displayname so if the display name is Tom where it says MailboxGuild it would also have his guid. I would like this as sometime i get a index warning and I just hate not being able to see who or what mailbox is having an issue. Iis there something that I am missing in this command? Thanks Adam Raff
January 28th, 2012 11:59am

There is no MailboxGUID. There is a Guid, an ExchangeGuid, an ArchiveGuid, and a DisabledArchiveGuid Use get-member to see all the properties and methods: get-mailbox <username> | get-member To see all the properties with a particular name pattern: get-mailbox <username> | select *guid* | fl Note: this is handy for quickly seeing all the quota settings of a mailbox get-mailbox <username> | select *quota* [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2012 12:46pm

Thanks for your responce the last command I believe is what I am looking for but it's not what I need I guess. What I am looking for is to create a list of all users and then there guid which is assocated to the user so that I can have them on hand if I see an issue that just gives me a guid like below. [Mailbox GUID][Initial state][Reconciled item count][End state][First ten items...last ten items] [f8528350-75b8-4a4c-b2c5-ff32df80d11b][Done][1][Done][2370077,...] This way I can look at the list of names and match the guid up. the command that listed all the users but nothing else. Thanks Adam Raff
January 28th, 2012 1:39pm

get-mailbox -resultsize unlimited | sort displayname | select Displayname,Guid | export-csv c:\somedir\user_guid.csv -notype [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2012 2:09pm

Mjolinor, Thanks it did not match to anythat I had I had to change some of your setting because I was getting errors it did not like the -nottype and the export command so I cut that off and did a > to a txt file and that worked. I am not sure what guid it is using I could not find a match there and even change to the Guid to ExchangeGuid and still no luck but you answered my question on how to do it. Thanks Adam Raff
January 28th, 2012 3:35pm

That was a typo. Should have been -notype. I've fixed the original script.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2012 4:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics