Proof read a exchange management shell

bachopper
bachopper used Ask the Experts™
on
I am not familiar with exchange management shell and was asked to remove mail from a user between 01/01/13 to 12/31/13.  Did a search and came up with the following

Export-Mailbox -Identity BrittanySaxton -StartDate "01/01/2013" -EndDate "12/31/2013" -DeleteContent

Then I get this message below see screen shot.  

I know I am missing something small.

Your help is greatly appreciated

BA
untitled.JPG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Michael OrtegaSales & Systems Engineer

Commented:
Trying adding the account you're logged in with permission to her mailbox first:

Add-mailboxpermission -identity BrittanySaxton -accessrights fullaccess -user <the user that you're running the command with>

MO

Author

Commented:
Its the Administrator i need to do that
Sales & Systems Engineer
Commented:
You should try and use a user account other than "Administrator" to manage your Exchange environment with. Be default the "Administrator" account is denied access to a lot of things. That's just a best practice suggestion.

At any rate, try:

Add-mailboxpermission -identity BrittanySaxton -accessrights fullaccess -user Administrator

And then try your original command again.

MO

Author

Commented:
Thanks for the best practice.  If I give access to myself and I am a domain administrator what is the difference than giving the access to the administrator?  Just want to make sure I understand
Michael OrtegaSales & Systems Engineer

Commented:
Not sure I understand your question.

If you're using "Administrator" to log into your Exchange server and run the command then the "Administrator" needs to have the fullaccess permission on the mailbox in question.

If you're logging in with your own account to run the command then your own needs the fullaccess permission on the account in question.

MO

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial