Freigeben über


Converting MsexchMailboxGuid to the DN using Interactive Powershell

If you have a msexchmailboxGuid and you are wondering which user is that, continue reading this.

If you see that from the ADSIedit Then fine, you already know who is the user and what you are looking for. You dont have to go through the manual way of converting the user name based on this KB https://support.microsoft.com/kb/291542.

So wats up? Here is a simple powershell way of converting them back to readable Username with the full DN as the output.

Step 1: You already have the MSexchmailboxGuid with you.(as per the screenshot above or from any error messages or from any excel files)

 

Step 2: Convert the guid by removing the spaces (that is all you have to do...)

step 3:

copy the Powershell script msexchmailboxGuid-Converter.PS1 in to your local drive. Run the Powershell script. You might have a error if you have not enabled your enabled your assembly "microsoft.visualbasic.dll" in powershell. Please do this before you proceed to execute the powershell script.

PS C:\>
[Reflection.Assembly]::LoadFrom("C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Microsoft.VisualBasic.dll")

GAC Version Location
--- ------- --------
True v2.0.50727
C:\Windows\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualB...

Step 4: Execute the Powershell script.

Step 5: Input the guid you have without the spaces.

Ste 6: Say OK and you are done, you can see the DN of the particular User as a Messagebox prompt.

you can find the script attached.

msexchmailboxGuid-Converter.PS1

Comments

  • Anonymous
    December 21, 2010
    The comment has been removed
  • Anonymous
    December 21, 2010
    Bummer, I got the script to run but rather than get a LDAP DN in the final window it is blank.