Solved

VB Script Needed

Posted on 2011-03-22
2
291 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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