Werezwolf

GPO - Login - LogonReport

Mar 24th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.24 KB | None | 0 0
  1. @ECHO OFF
  2. ::Set Record Location
  3. SET location=\\192.168.0.2\data\~Server\Logs\ComputerInventory
  4. ::Report
  5. mkdir %location%\%COMPUTERNAME%
  6. QUERY USER >> %location%\%COMPUTERNAME%\user.txt
  7. QUERY PROCESS >> %location%\%COMPUTERNAME%\user.txt
Advertisement
Add Comment
Please, Sign In to add comment