Solved

VB Script Needed

Posted on 2011-03-22
2
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

626 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