Solved

Proof read a exchange management shell

Posted on 2014-03-02
5
201 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
ID: 39898897
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
ID: 39898916
Its the Administrator i need to do that
0
 
LVL 16

Accepted Solution

by:
Michael Ortega (Internetwerx, Inc.) earned 500 total points
ID: 39898928
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
ID: 39898966
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
ID: 39899025
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a Distribution Group 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 Recipients >>…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

772 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