locked
Get PublicFolder Path From mail address. RRS feed

  • Question

  • Hello, 

    I try to find public folder path from its mail address, buy I can't.

    [PS] C:\Windows\system32>Get-Recipient "xxxxxx@xxxxxx.xxx"

    Name                                                        RecipientType
    ----                                                            -------------
    xxxxxxxx                                                   PublicFolder


    [PS] C:\Windows\system32>Get-Recipient "xxxxxx@xxxxxx.xxx" | Get-PublicFolder
    No se puede procesar la transformación del argumento del parámetro 'Identity'. No se puede convertir el valor
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" de tipo "Microsoft.Exchange.Data.Directory.ADObjectId" al tipo
    "Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter".
        + CategoryInfo          : InvalidData: (xxxxxxxxxxxxxxxxxxxxxxxxx:PSObject) [Get-PublicFolder], ParameterB
       indin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-PublicFolder
        + PSComputerName        :xxxxxxxxxxxxxxxxx.x.xxx

    Can anybody help me?

    Thanks.



    Monday, May 9, 2016 12:29 PM

Answers

  • If these are 2010 PFs or older:

    get-mailpublicfolder <SMTP ADDRESS> | get-publicfolder

    If 2013/2016:

    Get-MailPublicFolder <SMTP ADDRESS> | FL *Guid*

    Get-PublicFolder -Recurse -resultsize unlimited | ?{$_.MailRecipientGuid -eq "<GUID>"}
    | select -ExpandProperty folderpath


    Blog:    Twitter:   

    Monday, May 9, 2016 12:33 PM

All replies

  • If these are 2010 PFs or older:

    get-mailpublicfolder <SMTP ADDRESS> | get-publicfolder

    If 2013/2016:

    Get-MailPublicFolder <SMTP ADDRESS> | FL *Guid*

    Get-PublicFolder -Recurse -resultsize unlimited | ?{$_.MailRecipientGuid -eq "<GUID>"}
    | select -ExpandProperty folderpath


    Blog:    Twitter:   

    Monday, May 9, 2016 12:33 PM
  • Andy, Thanks for reply.

    It doesn't work for me.

    [PS] C:\Windows\system32>Get-MailPublicFolder "xxxxx@xxx.xxx" | FL *Guid*

    Guid: xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx

    [PS] C:\Windows\system32>Get-PublicFolder -Recurse -resultsize unlimited | ?{$_.MailRecipientGuid -eq "xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx"}

    It doesn't retry any result.

    I check that for other mail, it works, but not for this that I am trying.

    Best Regards.

    Monday, May 9, 2016 2:16 PM
  • Hi,

    Something is wrong with my Public Folder, I disabled mail and re-enable, after that, all seems to work.

    Andy, thanks.

    Tuesday, May 10, 2016 7:35 AM