Solved

OWA Timed acccess

Posted on 2011-09-12
5
256 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

705 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