Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Proof read a exchange management shell

Posted on 2014-03-02
5
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Michael Ortega
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 earned 2000 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

Expert Comment

by:Michael Ortega
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
In this video we show how to create a Shared Mailbox 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 >> Sha…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

636 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