I am trying to run a batch file which runs powershell script (Export-mailbox -identity admin -pstFolderPath \srv02\d$\test)
I have been running the export-mailbox command manually to export 20 mailboxes. I would like to make this process as a script so I can run it everyday to make a backup of all mailboxes with pst files.
Does anyone know how to do this?