Audit local users on machines

So the engineers over at serverfault had a discussion regarding auditing of local users on machines. Evan Anderson snapped together a quick batch script which would do the job. As he mentioned PsExec would be needed in addition an account with the appropriate user rights to connect.

@echo offfor /F “delims=” %%i in (machines.txt) do ( psexec \\%%i NET USER > %%i.txt)

another alternative I found http://sydiproject.com/tools/sydi-audit-localgroups/

Advertisements

About noneil
Rapper turned Rockstar!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: