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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -