Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB Script Needed

Posted on 2011-03-22
2
Medium Priority
?
298 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

971 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