Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Active Directory logon tracking

$
0
0

I have a batch file that runs when a user logs on that prints to a text file: 

echo IN user: %username% computer: %computername% date: %date% time: %time% >> \\XXXX\deploy\Logs.txt

I have the same script set as a logoff script that does the same thing just labeled OUT, since there isn't a way to run a program upon logout:

echo OUT user: %username% computer: %computername% date: %date% time: %time% >> \\XXXX\deploy\Logs.txt

The batch file prints fine, the logoff script prints as well but prints the entire cmd line:

C:\Windows>echo OUT user: XXXX computer: XXXX date: Tue xx/xx/xxxx time: xx:xx:xx.xx  1>>\\XXXX\deploy\Logs.txt

It still shows me who logged in when and where though.

Is there anyway I can get it to stop doing that? The first time the logoff script actually ran it printed correctly, but every time after that it started printing the entire cmd line


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>