Powershell run export-mailbox script from batch file -
I am trying to run a batch file that runs a power-shell script (export mailbox-permission admin-pstFolderPath \ srv02 \ d $ \ Test)
I export the mailbox command manually to export 20 mailboxes. I want to make this process as a script so that I can run it every day to back up all mailboxes with pst files.
Does anyone know this?
You can list the mailboxes that you want to export to a CSV file, each Import the CSV file into the batch to export the mail item. Something like this ... $ Mailbox = Import-CSV \\ srv02 \ d $ \ test \ mailboxes.csv $ Mailbox | E-object {export mailbox-privacy admin-pstFolderPath \ srv02 \ d $ \ test}
Comments
Post a Comment