Solved

Proof read a exchange management shell

Posted on 2014-03-02
5
198 Views
Last Modified: 2014-03-05
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
0
Comment
Question by:bachopper
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Michael Ortega (Internetwerx, Inc.)
Comment Utility
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
0
 

Author Comment

by:bachopper
Comment Utility
Its the Administrator i need to do that
0
 
LVL 16

Accepted Solution

by:
Michael Ortega (Internetwerx, Inc.) earned 500 total points
Comment Utility
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
0
 

Author Comment

by:bachopper
Comment Utility
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
0
 
LVL 16

Expert Comment

by:Michael Ortega (Internetwerx, Inc.)
Comment Utility
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
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now