All Forums >> [Scripting] >> Post a VBScript >> Example Reading ADSI Attributes Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I just want to share it with you, some of you maybe as security administrator know and have the same experience that we should do dormant id review every month to maintenance our system and to ensure that our system is clean from dormant ID as recommended by IT auditor.
Usually, I have generated the report using DumpSec to produce windows ID report (truelastlogon) and review it whether any user id that never login below to 90 days (base on company policy) or over 90 days.
How can we easily review if we have thousand user id and several companies separately by organization unit (OU)? For this reason, I have made clone DumpSec function (Dump Users as Table) using visual basic script (VBS) to access Windows Active Directory (ADSI) and exported to text file delimited format with tab.
The Advantage:
With this script you can generate user list base on OU that you have specified
If you have limited network connection between primary domain controller and backup domain controller and also you have many backup domain controller, this script will be generate report faster than DumpSec because the script will be collect information from specific domain controller name as your specified on the configuration header within the script.
How to using this script? Please read the header script for more information. But if you still have problem, please write down your comment in this post.
Thanks, AresU
_____________________________
Share of The Day (SOTD) How can you discover your world by reading my blog? You will find tips&tricks, news, knowledge, fun, etc.
"YES" If I write or work on a script at work, that script is owned by my employer, I can not take it with me when I leave and delete all other copies. The employer owns it. If I write a script that does some revolutionary new function that has never been done before and I write in it "script by TomRiddle" and then some dork at a later date writes same script, copywrite by dork and starts to make money I could sue him to get my share. That assuming a patent or copywrite on a script can actually be made.
and "NO" because you can't really sell them, you can't encrypt them, code is code, it can only be written written in a certain way i.e the syntax must be correct enough for it to work, two people could in theory come up with the same script, same syntax and even same variable names, especially since there is so much sample code out there, no one will reinvent the wheel when a perfectly good wheel already exists.
This script says it is copywrite aresu.blogspot.com, created by AresU but original code from Richard L. Mueller. This site states that "All posts and images are owned by VisualBasicScript.com"
So in conclusion, can a script be copyrighted? this one probably NO, since it is a blatant functional copy of DumpSec. Other vbscripts probably can not be copywrighted either. Show me a vbscript that actually is copywrighted.
But this script in particular, since all posts on this site are owned by VisualBasicScript.com, aresu has relinquishing ownership of it to VisualBasicScript.com and can only claim to have written it which he did not.
< Message edited by TomRiddle -- 3/7/2008 12:37:19 AM >