Solved

OWA Timed acccess

Posted on 2011-09-12
5
255 Views
Last Modified: 2012-05-12
Hi

Is it possible to give certain users access to OWA at specific times from Exchange.  I thought about doing this from the firewall however I have some users who need 24 hour access to OWA?

thanks
0
Comment
Question by:bains1000
[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 15

Expert Comment

by:It breaks therefore I am
ID: 36521806
Hi, You can schedule a powershell script that runs set-casmailbox -owaenabled $false and filter it using an attribute like get-mailbox -filter {value} or -organisationalunit so you can group users that do not need 24x7 acces to OWA by location, or OU or a custom attribute then call a script

This assumes you have Exchange 2007 or 2010 though
0
 

Author Comment

by:bains1000
ID: 36521829
Hi

yes i can see the logic, we are running Exchange 2007, so i could add the users to a AD group and set the script to run on schedule?

thanks
0
 
LVL 15

Expert Comment

by:It breaks therefore I am
ID: 36521933
Yes so it starts with get-distributiongroupmember and you then pipe the cmdlet to set-casmailbox, I would create a test user and test group for this until you have it working the way you want.
0
 

Author Comment

by:bains1000
ID: 36522117
Hi

Is it possible you could write me the script based on a group called "OWAtimedusers"?

thanks.
0
 
LVL 15

Accepted Solution

by:
It breaks therefore I am earned 500 total points
ID: 36522217
Hi,

The cmdlet in this case would be

Get-DistributionGroupMember OWAtimedusers | Set-CASMailbox -OWAEnabled $false

which disables OWA for members of OWAtimedusers or

Get-DistributionGroupMember OWAtimedusers | Set-CASMailbox -OWAEnabled $true

Which enables it again. Read the following article, this tells you what you need to do to save this as a .ps1 file which you can do in notepad and then call it from a batch script using Scheduler in Windows.

http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
To show how to generate a certificate request 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 >> Certificates…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

726 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