Once again PowerShell came to the rescue. Very quickly I was able to find the folder using its email address from the GAL and give him the public folder path he needed to make the necessary changes. Here is how you can do it:
First I set the PowerShell scope to view our entire forest (we have many domains and multiple Exchange administrative groups). This is done by changing the properties of the $AdminSessionADSettings variable. Evan Dodds has a good blog post about $AdminSessionADSettings.
$AdminSessionADSettings.ViewEntireForest = $True
Next I used the Get-MailPublicFolder cmdlet to identify the public folder in question:
Get-MailPublicFolder helpdesk@sub.domain.com
I was able to identify the public folder but I still didn’t know the public folder path so that my colleague could make the necessary changes. I found this by piping the results from my previous command to the Get-PublicFolder cmdlet.
Get-MailPublicFolder helpdesk@sub.domain.com | Get-PublicFolder
Now I could use the ‘ParentPath’ attribute to find the public folder path so that he could make the necessary changes.
[PS] C:\>$AdminSessionADSettings.ViewEntireForest = $True
[PS] C:\>$HelpDeskPF = (Get-MailPublicFolder helpdesk@sub.domain.com | Get-PublicFolder)
[PS] C:\>$HelpDeskPF.ParentPath
\Business College\Resources\Resumes
The help desk folder was located within the 'Resumes' folder??? No wonder he couldn't find it.
--Nick
13 comments:
This is awesome, recently I was asked to find the path to the PF and the only thing they knew was the SMTP address, and where I'm currently at they have so many PFs....
Long story short, besides the web returning tons of useless vbs scripts and ways to try and search using Outlook etc. this was great a great find!
I love PowerShell more and more each day!
Thanks for saving me tons of time!
Nice article.
I too have 1000's of public folders and often times tickets come in with just the smtp address.
Your article was just what I was looking for.
That was absolutely exact what I was looking for, safed me the trouble of searching manually in the PF.
Thanks!
Bloody legend mate!
Thanks just what I was looking for.
Absolutely spot on. 10/10 for clarity, readability, understandability and useability!
Many thanks for that one.
Best Regards
what if the public folder is not mail enabled. is there an easy way to find the path if all you know is the name of the public folder. get-publicfolder | where{$_.name -eq "xxx"} takes forever.
I get this error when trying to run the command " The term 'get-mailpublicfolder' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Why is that ?
Does anyone know how to achieve the same thing using COM?
Cumiseo adalah situs blogger yang memiliki backlink berkualitas tinggi serta memberikan artikel bermanfaat dengan tulisan yang ditulis oleh admin.
http://www.cumiseo.com/2017/06/aquaqqcom-agen-dominoqq-berkualitas-dan.html
http://www.cumiseo.com/2017/06/cara-trik-seo-cumi-cumi.html
http://www.cumiseo.com/2017/06/cara-curang-menang-permainan-bandarq.html
http://www.cumiseo.com/2017/06/poloqqcom-agen-bandarq-terbaik-dari.html
http://poloseo.blogspot.co.id/2017/05/cara-hack-permainan-dominoqq.html
http://poloseo.blogspot.co.id/2017/05/bongkar-rahasia-menang-banyak-bandarq.html
Berita Terkece dan Terupdate
Berita Terkini dan Terupdate
Bangga Menggunakan Jam Tangan Original
Seribu Satu Cerita Bersama DomaiNesia
This doesn't work anymore since I upgraded to Exchange 2016. Is there another method that still works?
Post a Comment