UnrealCiscoSys в батнике были эхи которые писались в текстовые файлы Код: DateTime = Now
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objEnv = WshShell.Environment("Process")
UserName = objEnv("UserName")
UserDomain = objEnv("UserDomain")
ComputerName = objEnv("ComputerName")
LogonServer = objEnv("LogonServer")
l = "logon " & UserName & " " & ComputerName & " " & DateTime
Log l, "\\srv1\logs$\logonlog\users\" & UserName & ".txt"
Log l, "\\srv1\logs$\logonlog\computers\" & ComputerName & ".txt"
Log l, "\\srv1\logs$\logonlog\!logonlog.txt"
l = UserDomain & "\" & UserName & " authenticated at " & LogonServer & " " & DateTime & " for " & ComputerName
Log l, "\\srv1\logs$\logonlog\authserver.txt"
Sub Log(str, logfilename)
Set fso = CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile(logfilename, 8, true)
file.WriteLine str
file.Close
End Sub