phileoca
asked on
logging users info: Time Zoning it.
greetings,
I currently have in place a policy script that is logging user info upon log on and log off.
Is there a way to either:
a) append the time zone to the log file
b) log the time in GMT.
my current script looks like this:
@echo off
rem me 04/11/2006
:Logging
If Exist "\\ServerName\SYSVOL\Logs\ LogOns.Log " GoTo START
Echo Log File > "\\ServerName\SYSVOL\Logs\ LogOns.Log "
:START
Echo Log On,%USERNAME%,%COMPUTERNAM E%,%Date:~ 0,12%,%Tim e:~0,5%>> "\\ServerName\SYSVOL\Logs\ LogOns.Log "
rem Netstat -an |find "3389" |find /I "established" >> "\\ServerName\SYSVOL\Logs\ LogOns.Log "
I currently have in place a policy script that is logging user info upon log on and log off.
Is there a way to either:
a) append the time zone to the log file
b) log the time in GMT.
my current script looks like this:
@echo off
rem me 04/11/2006
:Logging
If Exist "\\ServerName\SYSVOL\Logs\
Echo Log File > "\\ServerName\SYSVOL\Logs\
:START
Echo Log On,%USERNAME%,%COMPUTERNAM
rem Netstat -an |find "3389" |find /I "established" >> "\\ServerName\SYSVOL\Logs\
Nevermind about the above command line...that is for xp not 2000.
How many different time zones do you have that would be logged and are you in a domain?
How many different time zones do you have that would be logged and are you in a domain?
ASKER
1) yes it's a domain
2) all workstations are XP, but the domain policy in on a win2k server
3) time zones... 10+ that's why a GMT would be ideal
2) all workstations are XP, but the domain policy in on a win2k server
3) time zones... 10+ that's why a GMT would be ideal
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
reg query hklm\system\currentcontrol
then appened it to the log. How many different time zones do you have that would be logged and is it in a domain?