Advertisement
opexxx

audit.cmd

Feb 3rd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.24 KB | None | 0 0
  1. set outputfile=\\servername\audit\%computername%.txt
  2.  
  3. date /t > %outputfile%
  4. echo %computername% >> %outputfile%
  5. systeminfo >> %outputfile%
  6. net localgroup administrators >> %outputfile%
  7. net user >> %outputfile%
  8. net share >> %outputfile%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement