Jump to content

Recommended Posts

Posted

Hi, is there a way of getting the computers/servers to log when and where accounts are logged in? if so how do i do it...

 

if not... why? :p

 

thanks in advance

Posted

You can set up a Group Policy on your Server to use an audit log which lets you audit account logon events.

The Group Policy is in Computer Configuration->Windows Settings->Security Settings-Local Policies->Audit Policy

Don't log everything cos they can take up a fair amount of space

Posted
i find it more usable to log details from the login script to text files i.e. Logging Logins

 

so do i just copy this:

 

for /f "tokens=1,2,3* delims=/ " %%a in ('date /t') do set date=%%a%%b%%c%%d

for /f "tokens=1,2 delims=:" %%a in ('time /t') do set time=%%a%%b

 

echo %date%,%time%,%username% >> \\server\computer$\%computername%.txt

echo %date%,%time%,%computername% >> \\server\user$\%username%.txt

 

into the logon script? (ovbiously changing the server bit to a working link?)

Posted
so do i just copy this:

 

for /f "tokens=1,2,3* delims=/ " %%a in ('date /t') do set date=%%a%%b%%c%%d

for /f "tokens=1,2 delims=:" %%a in ('time /t') do set time=%%a%%b

 

echo %date%,%time%,%username% >> \\server\computer$\%computername%.txt

echo %date%,%time%,%computername% >> \\server\user$\%username%.txt

 

into the logon script? (ovbiously changing the server bit to a working link?)

 

yup. & everyone needs read/write on the share tho cos its appending files under their logon. u dont have to have 2 different shares. i use logs$ with \users\ and \computers\

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...