windows logs
Dear All, Im collecting logs for a company that is doing some auditing in my company. Is that a way to automate the copy of that ? What im doing is that: 1. Save logs into c:\ of the server (application, system, security) 2. Copy into a share in a central server 3. Generate a DVD of all Anyone knows any way to automate that ?Guilherme Teles
November 18th, 2009 7:30pm

Hello my friend:I can not understand what do you want exactly , Is there any System Logs ??? what do you mean from log ?Do you need any application to store such logs ?What do you mean from automation ?Network is my LOVE
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2009 4:54pm

You can use Powershell to get event logs http://technet.microsoft.com/en-us/library/ee176846.aspx Then use it to output them to a folder. http://technet.microsoft.com/en-us/library/dd315303.aspx You could design a Powershell script that does this, and then schedule it with task scheduler. http://www.searchmarked.com/windows/how-to-schedule-a-windows-powershell-script.php Then schedule a regular backupBits of Fury
December 10th, 2009 7:59pm

create a backupEvt.vbs file with following content and launch with cscript backupEvt.vbs at dos prompt strComputer="." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate,(Backup,Security)}!\\" & _ strComputer & "\root\cimv2") Set colLogFiles = objWMIService.ExecQuery _ ("Select * from Win32_NTEventLogFile") For Each objLogfile in colLogFiles objLogFile.BackupEventLog("C:\temp\" & objLogFile.LogFileName) objLogFile.ClearEventLog() Next ENJOY!!!! Plz mark it as answer SV
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2009 9:38pm

I think Attrib75 and Vai2000 have the right idea.For additional help with scripts, try the Scripting Guys Forum. See also the blogs at the Script Center.
December 10th, 2009 10:58pm

Hi vai2000, Is there a way to modify the saved name of the log file ? Instead of system.log nameoftheserver-system.log And another question is, to save in a share for example \\server1\logs$ ?Guilherme Teles
Free Windows Admin Tool Kit Click here and download it now
December 28th, 2009 6:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics