davidphillips0120 Posted March 25, 2010 Posted March 25, 2010 Hi, At the moment we have a lot of students misusing computers, internet and email. We currently have two VB Scripts which disable the students account or internet, the first disables their full computer account and adds the details of the ban which are entered into the script to a database. The second script makes the student a member of a AD group called "no internet access" this then blocks their access to the internet as our ISA does not accept them, they are also added to a database with the details of the ban. We then also have a script which runs every morning and looks at the dates in the database, if there are any which should be enabled on todays date, it will either remove them from the group or enable the account depending on the type of ban. I am trying to make a script that will disable their email account, as you are probably aware if you wish to disable an accounts OWA (outlook web access) you need to go to active directory, search for the user, go to properties, exchange features and then click on the disable button next to OWA. This is very time consuming, we do not have a record of the ban and also the account will not be automatically enabled on the set date. I am currently at a loss with this, as i have tried various scripts from various sites, none of which i can get to work. Any help with this would be much appreciated. Many Thanks David Phillips Winton Arts & Media College
rh91uk Posted March 25, 2010 Posted March 25, 2010 What version of Exchange is it your running? 2003, 2007 or 2010? I have a powershell script I wrote which disables OWA which I can send over... just PM me.
EduTech Posted March 25, 2010 Posted March 25, 2010 (edited) Set-CASMailbox user -OWAEnabled $true In Exchange Powershell will disable the user's OWA Not sure how to this in VB but will have a look now why i'm doing nothing Is this any use? http://www.experts-exchange.com/Programming/Languages/Q_23115593.html (Scroll Down to see Answers) J Edited March 25, 2010 by EduTech
davidphillips0120 Posted March 25, 2010 Author Posted March 25, 2010 Thanks for the respones everyone, i will have a look at the URL and see what i can do. Thanks again David
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now