Disable OWA with VB Script
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. :confused:
Any help with this would be much appreciated.
Winton Arts & Media College