Hi all, does any one have a script that I can put in users logon scripts in AD that writes to a central file recording the users logon time date name etc?
Thanks
set objFSO = CreateObject(Scripting.FileSystemObject")
set objFile = objFSO.OpenTextFile("c:\loginAudit.txt")
set objShell = CreateObject("WScript.Shell")
strWindowsUser = objShell.ExpandEnvironmentStrings("%UserName%")
objFile.WriteLine strWindowsUser & ": " & date & " " & time
objFile.Close
unrelated to the script but a word of caution, previously i have had to get permission from HR and Union reps to explicitly store this type of information
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.