June 26th, 2014

PowerTip: Get List of Blocked Domains on Lync with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to get a list of all domains that are blocked from federating with Lync.

Hey, Scripting Guy! Question I am auditing a client's Lync server and need to pull up a list of all the Domains that are presently blocked or not blocked with Lync. How can I easily do that with PowerShell?

Hey, Scripting Guy! Answer Run the Get-CSBlockedDomain cmdlet:

GET-CSBlockedDomain

If you'd like to export that information, pipe it to Export-CSV:

GET-CSBlockedDomain | EXPORT-CSV BlockedList.csv

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.