Solved

OWA Timed acccess

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 POP3 2 26
Exchange, calendar 1 29
SharePoint 2013 to SharePoint Online migration:  (links) 2 29
Exchange 2013 - Script needed 7 29
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Contact 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 >> Contact ta‚Ķ
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‚Ķ

813 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

18 Experts available now in Live!

Get 1:1 Help Now