Check out Dmitry Sotnikov’s blog Out-vCard: Exporting Outlook Address Book.
It lets you do things like:
Get-QADGroupMember DL.ProjectA | Out-vCard
To create a Vcard file for every member of a distribution list.
This made my day (and I was already having a great day!).
That said – this script BEGS to be rewritten using a HERE-STRING. If you haven’t already educated yourself on HERE-STRINGS – do yourself a favor and stop what you are doing and get these in focus. Using them makes your code faster, smaller, more maintainable, it even makes your teeth whiter.
Using PowerShell to Generate XML Documents (A great example of using here-strings)
Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx