Need some tricks to Audit a Domains login scripts

Hi All,

I need to Audit a company's Domain which has for some reason been creating a script for every single user in a /netlogon/users folder.

There is over 1600 .bat files and I was hoping that someone may know of a tool that can process them all and output the differences or something. I imagine that majority of the scripts are the same however they have been using username's instead of a variable %username% etc.

Some users are recieving different paths for drives as well.

Any assistance would be much appreciated

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Easiest place to figure this out would be to go into ADUC and check the users Profile tab and look and see what their login script is there.

It could be that everyone has the same base script but that script calls some actions to create new batch files for each user or something similar.

Check there first and report back the login script itself if it is the same for multiple users (the one in the profile tab of their account.

ALSO CHECK GROUP POLICY as well to see if there are login scripts there based on OU and not in their individual user accounts in ADUC.  Same thing applies though, look and see if there is a base script out there that everyone runs and track it sequentially from there.
use the FC command ( file compare ) or any  other  similar utility.

You may need to run it in a batch file to go through all the directories to give you results.

I would ask this question in the VB script or the MS DOS TA  section since that is where most of the batch/ scripting guys hand out.

I hope this helps !
Along the lines of what sysExpert is saying, I know that Primalscript has a built in comparison feature, but it is limited to 2 files, not 1600.  It will tell you which lines are different, etc.

I thought you were stating that it was creating 1600 batch files based on their login scripts...
mishramanujAuthor Commented:
Thanks for your info, basically I just used a nice little

type *.bat > all.txt

Then cut and copied to Excel - created a list and selected all sentences that started with MAP. Then I removed the duplicates and I was left with all Map commands.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Analysis

From novice to tech pro — start learning today.