Solved

OWA Timed acccess

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

828 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