Solved

VB Script Needed

Posted on 2011-03-22
2
289 Views
Last Modified: 2012-06-21
I am looking for a VB Script that I can schedule through windows scheduler that will query a specific OU of users and email a distribution group a total number of users that have data in the extensionAttribute4.

So if OU <TEST> has 500 users and out of those users 239 has something in the extensionAttribute4 I would like the script to email something like this....

Total number of users with data in extensionAttribute4 now is 239.
0
Comment
Question by:seaninman
2 Comments
 
LVL 7

Accepted Solution

by:
holthd earned 500 total points
ID: 35195002
seaninman,
1) http://bit.ly/gOoiMH
2) http://bit.ly/fbC6Av
3) http://bit.ly/fDyjk4

Please don't expect us to use several hours of our time to do your job for you. We're here to help and we'd be glad if you at least tried yourself prior to posting.
-Daniel
0
 
LVL 4

Author Comment

by:seaninman
ID: 35195092
Thanks Daniel!!  Actually I have a Powershell script that someone on experts-exchange gladly helped me with.  This script is one  I manually run in Powershell ISE, but was thinking it would be easier to schedule and run from a VBScript.
$ADSelf = get-aduser -filter {groupPriority -like "*"} -Properties DisplayName, GroupPriority -searchbase "ou=Named Accounts,ou=test,ou=users,dc=companyx,dc=com" -resultsetsize $null| sort -Property SamAccountName
$adself.Length

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

8 Experts available now in Live!

Get 1:1 Help Now