?
Solved

Exchange out-of-office error

Posted on 2012-08-22
17
Medium Priority
?
1,349 Views
Last Modified: 2012-09-19
Hi

I'm using the Exchange Manager Shell on my Exchange Server 2010 to set the out-of-office of one of our users but it gives a strange error.

The command I used was:
Set-MailboxAutoReplyConfiguration -identity "user" -InternalMessage "I quit, stop sending me emails!"

And the error I got was:
The folder can't be created due to error PartiallySucceeded, Property: [0x672d0003] AdminFolderFlags, PropertyErrorCode
: MapiCallFailed, PropertyErrorDescription: Properties couldn't be set.
Exception = Microsoft.Exchange.Data.Storage.AccessDeniedException: Cannot set properties. ---> Microsoft.Mapi.MapiExcep
tionNoAccess: MapiExceptionNoAccess: Unable to set properties on object. (hr=0x80070005, ec=-2147024891)
Diagnostic context:
    Lid: 45095   EMSMDB.EcDoRpcExt2 called [length=64]
    Lid: 61479   EMSMDB.EcDoRpcExt2 returned [ec=0x0][length=400][latency=0]
    Lid: 23226   --- ROP Parse Start ---
    Lid: 27962   ROP: ropSetProps [10]
    Lid: 17082   ROP Error: 0x80070005
    Lid: 30561
    Lid: 21921   StoreEc: 0x80070005
    Lid: 27962   ROP: ropExtendedError [250]
    Lid: 1494    ---- Remote Context Beg ----
    Lid: 1238    Remote Context Overflow
    Lid: 6828    StoreEc: 0x8004010F
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x38800102
    Lid: 6828    StoreEc: 0x8004010F
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67870102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x678A0102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67870102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x678A0102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67870102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x678A0102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x67870102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x678A0102
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x668F0040
    Lid: 21970   StoreEc: 0x8004010F PropTag: 0x672D0003
    Lid: 20230
    Lid: 28422   StoreEc: 0x80070005
    Lid: 4559    StoreEc: 0x80070005
    Lid: 1750    ---- Remote Context End ----
    Lid: 26849
    Lid: 21817   ROP Failure: 0x80070005
    Lid: 25761
    Lid: 1940    StoreEc: 0x80070005
    Lid: 25297
    Lid: 21201   StoreEc: 0x80070005
   at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, SafeExInterfaceHandle iUnknown, Ex
ception innerException)
   at Microsoft.Mapi.MapiProp.SetProps(ICollection`1 pva, Boolean trackChanges)
   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.<SetProperties>b__4(PropValue[] propValues)
   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, O
bject[] propertyValues, MapiSetProps mapiSetProps)
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Data.Storage.MapiPropertyBag.InternalSetProperties(PropertyDefinition[] propertyDefinitions, O
bject[] propertyValues, MapiSetProps mapiSetProps)
   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.FlushSetProperties()
   at Microsoft.Exchange.Data.Storage.FolderPropertyBag.SaveFolderPropertyBag(Boolean needVersionCheck)...
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-MailboxAutoReplyConfiguration], FolderSaveException
    + FullyQualifiedErrorId : C8389CE4,Microsoft.Exchange.Management.StoreTasks.SetMailboxAutoReplyConfiguration

Open in new window

0
Comment
Question by:Paybit
  • 8
  • 6
  • 2
  • +1
17 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38319364
Can you try running the following first and then trying again...

Set-Mailbox -identity "user" -applymandatoryproperties
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38319372
Can you try to execute it like this?


Param(
      [Parameter(Mandatory=$true)]
      [System.Management.Automation.ValidateNotNullOrEmptyAttribute()]
      [string] $mbxID,[Parameter(Mandatory=$false)]
      [System.Management.Automation.ValidateNotNullOrEmptyAttribute()]
)

$Message = "I quit, stop sending e-mails"

Set-MailboxAutoReplyConfiguration -Identity $mbxID -AutoReplyState Enabled -InternalMessage "$Message" -ExternalMessage "$Message"


If the Set-Mailbox... doesn't function replace it with this.

Set-MailboxAutoReplyConfiguration -Id $mbxID -AutoReplyState Enabled -InternalMessage "$Message" -ExternalMessage "$Message"
0
 

Author Comment

by:Paybit
ID: 38319373
Still, same error
(tryed both Neilsr and Xaelian's solution)
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 13

Expert Comment

by:Xaelian
ID: 38319409
You don't have permission to do it on the users's mailbox.

In following link there is explained what rights you need to have to execute it. Take a look at the powershell section.

http://technet.microsoft.com/en-us/library/dd638131.aspx

Or read through this post (section mailbox permission):

http://www.mikepfeiffer.net/2010/07/manage-exchange-2007-out-of-office-oof-settings-with-powershell-and-the-ews-managed-api/
0
 

Author Comment

by:Paybit
ID: 38319443
I'm runing this command as Full Administrator, This is our Administrator account with everything on it.
I checked the AD user and its member of every posible Exchange group (except the read-only) and i'm pretty sure the command used to work.
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38319464
But can you verify he has the Full acces on the mailbox of the user?
0
 

Author Comment

by:Paybit
ID: 38319478
I added our administrator user to the list of accounts under "Manage Full Acces Permission..."
Then I ran the command again and got the same error.
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38319509
Do you get an error when you run:
Get-MailboxAutoReplyConfiguration "user"
0
 

Author Comment

by:Paybit
ID: 38319514
no, then I just get all the information about the Auto Reply Configuration
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38319946
Get-Mailbox -Identity "UserName" | Set-MailboxAutoReplyConfiguration -InternalMessage "Blah"

http://www.telnetport25.com/2012/01/exchange-2010-out-of-office-fun-with-set-mailboxautoreplyconfiguration/

- Rancy
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38319949
Can you run the following Powershell command. This resolved the same issue as you're experiencing with someone else.

Add-ADPermission -Identity "CN=CompanyOrg,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,DC=com" -User "company\usergroup" -ExtendedRights ms-Exch-Store-Admin -InheritanceType All
0
 

Author Comment

by:Paybit
ID: 38320127
Rancy, your sugestion gave me the same error.

Xaelian, I would love to run the command but sinds I have no clue what you want it to do I have no idea what parts I need to change to make it work on my system. Could you please explain what it is the command is supposed to do?
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38320175
Do you have any other Account that you can add as Reipient Org member and Exchange Org member and we can try the command ?

- Rancy
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38320185
It will give your AD user, the administrator priveleges to do everything on the Exchange store.
0
 

Author Comment

by:Paybit
ID: 38335483
Sorry for the verry delayed responce.

Xaelian, I don't have the OU "CN=CompanyOrg,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,DC=com" nor anything like that, that is why I asked to explain a bit more so I could search it in our AD.

I created a testuser account and simulated the entire proces again but I keep getting the same error still.

Must indeed be a permission problem.

If you give me a command to try out, please explain what it does aswell, I don't like running commands I don't fully understand.
0
 

Accepted Solution

by:
Paybit earned 0 total points
ID: 38398662
The problem did not get solved but I have the reason why:

We prepared our Exchange Server 2010 for migration but all our mailboxes are still on our old exchange server. The Mailboxes on which I tested the script first where mailboxes which were already transferred to the new server.

So: The mailbox I tried to set the out-of-office for was still on the old Exchange Server and that is the reason the command did not work.

Thank you all for the help even tho it turned out to be some stupid mistake of mine.
0
 

Author Closing Comment

by:Paybit
ID: 38412887
The problem turned out to be somthing else.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
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…
To show how to create a transport rule 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 >> Rules tab.:  To cr…
Suggested Courses

807 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