Solved

OWA Timed acccess

Posted on 2011-09-12
5
251 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
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:It breaks therefore I am
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
In this video we show how to create an Address List 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 Organization >> Ad…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now