Question : How to write a script to export mailboxes from Exchange 2007 using Exchange Management Shell?

I am needing an easy way to export mailboxes from Exchange 2007.  I have the Exchange Management Shell command line to run it that way.  I just didnt know if there was some way to use VBScript to make it as simple as a double click and the script asks for the email address or user name.
Code Snippet:
1:
Export-Mailbox -Identity [email protected] -PSTFolderPath C:\PSTFiles\UserName.pst
Open in New Window Select All

Answer : How to write a script to export mailboxes from Exchange 2007 using Exchange Management Shell?


There's not exactly much to simplify at the moment is there?

Could you use Get-Mailbox I guess which would save you typing the username in the path. e.g.:

Get-Mailbox "" | Export-Mailbox -PSTFolderPath "C:\PSTFiles\$($_.SAMAccountName)"

Adding a VbScript wrapper would, in my opinion, only make it far far more complex than you need.

Chris
Random Solutions  
 
programming4us programming4us