+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, Disable OWA with VB Script in Coding and Web Development; Hi, At the moment we have a lot of students misusing computers, internet and email. We currently have two VB ...
  1. #1
    davidphillips0120's Avatar
    Join Date
    Jan 2010
    Location
    Bournemouth
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Disable OWA with VB Script

    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

  2. #2
    rh91uk's Avatar
    Join Date
    Sep 2008
    Location
    UK
    Posts
    877
    Thank Post
    137
    Thanked 132 Times in 114 Posts
    Rep Power
    36
    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.

  3. #3

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,068
    Thank Post
    160
    Thanked 925 Times in 727 Posts
    Blog Entries
    3
    Rep Power
    273
    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/Prog..._23115593.html (Scroll Down to see Answers)
    J
    Last edited by EduTech; 25th March 2010 at 06:19 PM.

  4. #4
    davidphillips0120's Avatar
    Join Date
    Jan 2010
    Location
    Bournemouth
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Thanks

    Thanks for the respones everyone, i will have a look at the URL and see what i can do.

    Thanks again
    David

SHARE:
+ Post New Thread

Similar Threads

  1. Disable Java Security Warning using script/GPO
    By netadmin in forum Windows
    Replies: 1
    Last Post: 30th December 2009, 10:20 PM
  2. Disable monitor stand-by script
    By shane-meh in forum Windows
    Replies: 2
    Last Post: 11th June 2009, 01:49 PM
  3. Disable OWA by default
    By FN-GM in forum How do you do....it?
    Replies: 7
    Last Post: 7th October 2008, 03:08 PM
  4. OWA down
    By Ryan in forum Windows
    Replies: 19
    Last Post: 7th March 2008, 02:27 PM
  5. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •