Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5852
  • Last Modified:

How to activate "Out of Office" through powershell in ex2007

Hello

I'm trying to activate Out of Office for a mailbox on exchange 2007 through powershell.
I'm using the EWSOofUtil.dll from http://telnetport25.wordpress.com/2008/03/16/quick-ish-tip-exchange-2007-setting-oof-for-users-via-powershell-2/

And I can't get it working unless I provide the mailbox owners credentials.
But I don't know all passwords of all users.

If i run it as ExOrgAdmin I get an 'unauthorized', and if I run it as ExViewOnlyAdmin I get 'User is not not mailbox owner'

Is there another way to do it?
I dont' want to do it through CDO, although with CDO it works fine.
Please help?

thanks
Heinz


0
duh123
Asked:
duh123
1 Solution
 
MesthaCommented:
Considering the script is developed by someone, rather than built in, it would probably be best to direct questions at the person who developed it. Your problem is almost certainly connected with permissions, but as there is nothing on the site about what permissions are required, it is almost impossible to answer.

Have you tried use the tool that has been developed by the same author as the post that you have linked to above?

-M
0
 
duh123Author Commented:
Thanks

In the meantime I tried to do it with EWS.
I found a very usefull example at http://blogs.msdn.com/vikas/archive/2007/11/20/howto-ews-disable-out-of-office-oof-message.aspx

When I impersonate as mailbox owner it works perfect. But not with my credentials (I'm exchange org admin) and also not with other admin roles - I get the error "Microsoft.Exchange.Data.Storage.AccessDeniedException: User is not mailbox owner"

I think I need an admin account that has owner-level access to all mailboxes - how to do that ?
I tought this would work if I give an admin full access rights, but still get that error.

Heinz
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now