Automating the world one-liner at a time…
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.
Windows PowerShell Tip of the Week: Using Windows PowerShell "Here-Strings"
Variable expansion in strings and here-strings
Using PowerShell to Generate XML Documents (A great example of using here-strings)
Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
PingBack from http://msdnrss.thecoderblogs.com/2007/11/07/check-it-out-out-vcard/