Scheduing Mailbox backup in SBS2011

Hi,
 I have SBS2011/Exchange 2010.
 I like to know if I can create a batch file (.BAT) that contains mailbox backup commands like these:

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator
New-MailboxExportRequest -Mailbox Administrator" -FilePath \\Mailbox\UserName.PST

and schedule it to run in Task Scheduler.

Thanks.
LVL 1
sgleeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Commented:
No, do not use this for an exchange backup.

What is your companys backup policy currently ? create the backup in line with this for now.

The kind of backup policy id recommend for this for a small to medium business would be the following.

1. If your using virtual machines backup the virtual machines as one form of backup. Vranger, Veam, VMware VCB lots of ways to do this, it will cost money.

2. If your not using virtual machines which id say is correct.
- Find a suitable online backup product(do not use Mozypro) and back exchange up using this, liase with support to do this, copy one to a local nas box and one to the cloud for redundancy.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark BillExchange, AD, SQL, VMware, HPE, 3PAR, FUD, Anti MS Tekhnet, Pro EE, #1Commented:
Possibly consider looking at Symantec Backup Exec also , you could also run this out to tape if you wanted.

I do not recommend using Windows backup or any Exchange CMDLET for this task. FWIW
MASEE Solution Guide - Technical Dept HeadCommented:
Agree with Mark Will. If you have budget I suggest the same.
Try BackupExec or Veam if you are running VMs

This is not the command to export to PST. Please check my article to export mailboxes in bulk
http://www.experts-exchange.com/articles/16179/Export-mailboxes-to-PST-one-by-one-in-Exchange2007-and-2010.html

1. Save your command as PS1 file (powershell file). (i.e. Save it as exportmailbooxes.ps1)  

2. Create a batch file by copying the below command and modify where you put your powershell file. Save as .bat

powershell -command "&{C:\exportmailbooxes.ps1}"

3. Create a windows schedule task to run the batch file every day or as per your requirment.

Here is a reference on how to automate powershell
http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28651103.html
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

sgleeAuthor Commented:
I use Windows native server backup in most sites. In one site, I used Symantec Backup Exec for small business which backs up individual mailboxes.
This particular Sbs2011 site has a single user/mailbox and I do use Windows server backup. Because there is only one mailbox, I did not want to buy BackupExec. So I  started thinking about what if I can automate mailbox export command and put it in Task schduler as long as there is no harm.
sgleeAuthor Commented:
@MAS

http://www.experts-exchange.com/articles/16179/Export-mailboxes-to-PST-one-by-one-in-Exchange2007-and-2010.html  ---> Great Article. Easy to understand and it covers pretty much every situation.
Cris HannaSr IT Support EngineerCommented:
The native SBS backup utility in the SBS Console also backups Exchange.  Why do you need something else?
sgleeAuthor Commented:
@Chris,

  In case the user accidently deleted a folder or misplaced some individual emails, it is easier to restore emails by folders.
Cris HannaSr IT Support EngineerCommented:
Then set your item retention policy high and user can recover deleted items themselves
sgleeAuthor Commented:
"Then set your item retention policy high and user can recover deleted items themselves" ---> Can you elaborate on that? I don't understand what you are referring to.

My experience is : Symantec Backup Exec with Exchange Option will allow mail item or mail folder item recovery.
Windows Native Server Backup will backup entire mail database; therefore you have to restore entire database after mounting it in order to restore mail items/folders.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SBS

From novice to tech pro — start learning today.