VBScript - Read from AD and get Mailbox sizes

Discussion in 'Software' started by CobolExpert, Jun 30, 2005.

  1. CobolExpert

    CobolExpert Private E-2

    Before I go all crazy and try to do this myself, I was wondering if anyone else had a script that would do this...

    I am looking for a script that will grab all the users from AD, get the mailbox size for each user, and then mail the user if it is over a certain amount.

    I actually have all three scripts. I have one that grabs all users (unless their disabled, non-user accounts, whatever else I didnt want) and gives me a list in excel. I have a script that I can hard code a name and it will give me the total size of their mailbox. I also have a script that e-mails (which is the easiest part).

    Instead of trying to create a script that would read the users into an array and then use that array for the second script, I was wondering if someone already had this. Can't be that hard, the AD reading is just a little confusing for me.

    Thanks!
    JB
     
  2. Kodo

    Kodo SNATCHSQUATCH

    arrays are faster to work with anyway.. Instead of staying connected to the LDAP, get your users and slap them into an array and then pass that array to the function. You'd be essentially doing the same thing anyway.. looping that is.. so I wouldn't go nutz, just put the scripts together :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds