Create a script

There are 3 main event logs [security, system, application] in Windows server.

Each day at 00.01 a job should run to export the current events into a file, mail that file to staff then clear the event log.

To do this you can use the command line utility WEVTUTIL (Windows 2008 servers only), particularly the epl and cl parameters of this command

Create a script that will:

(i) Define the 3 parameters YY, MM and DD for Year, Month and Date respectively

(ii) Export each event log using "WEVTUTIL EPL <event log> <filename>"

where <event log> is one of the 4 event logs mentioned above and

<filename> is [url removed, login to view], where app is for the application log, sec will be the security log etc.

(iii) The export log should be stored on the D:\ partition of each server (e.g. D:\)

(iv) Mail these files to pertinent staff using the postie app

(v) Then clear the event log using "WEVTUTIL CL <event log>", ready for the next day's events.

(vi) This job will then be configured to run in the Scheduler (use the SchedulerSRV account for this).

I would prefer if you used VB Script as this runs seamlessly on Windows

Habilidades: VB.NET, Servidor Windows

Veja mais: net scheduler, define application security, date utility, c# net scheduler, yy, security log, file partition, EPL, windows log script, create script windows, windows script 2008, windows command script, scheduler application, scheduler net, event log app, windows mail app, windows 2008 mail server account, windows scheduler, event log windows, windows event log

Acerca do Empregador:
( 22 comentários ) Doha, Qatar

ID do Projeto: #6441672

Concedido a:


Hello, I have 7 Years of Corporate proven experience in IT Infrastructure Services and I have worked for large enterprises across the world. I am VMware Certified Professional 5 – Data Center Virtualization, Microso Mais

$25 USD em 1 dia
(1 Comentário)

6 freelancers estão ofertando em média $28 para esse trabalho


Hello Sir, Greeting for the day, Hope you are doing well. I am Working with Data Center Organization as a Linux and windows Expert, I have more than 8 years’ experience in Web hosting and migration, working on more Mais

$35 USD em 1 dia
(23 Comentários)

Hello mate, a systems engineer with 3 years of indestry experiences. I can start it right now if you want. This thing cab be done through a batch script as well. Of course you can pay me after I complete your work. If Mais

$30 USD in 3 dias
(1 Comentário)

Hi, We are a 1000 + employee firm. Charging 6$ an hour. Can start any technology immediately. Direct access to developers via skype, G talk and hotline – 24/7 availability for all 1000+ resource. We can bet you th Mais

$23 USD em 1 dia
(0 Comentários)

I have much experience in the use VBScript (WMI interface) to do the administrators Windows system auto I have MCSA certification, and daily work on linux, proficient in the use of CLI for Windows and Linux I bel Mais

$25 USD em 1 dia
(0 Comentários)

Thanks for considering me for this project! I'm a programmer/systems administrator in upstate NY. I look forward to working with you!

$30 USD em 1 dia
(0 Comentários)

Hello, I have build such script in PowerShell that performs the desired actions and can be easily expanded or modified. Let me know if you are interested and I can provide it\modify it to your needs. Regards, T Mais

$30 USD em 1 dia
(0 Comentários)

Before of all i suggest you to make log backup before mail and clean logs for the case of not working internet. I can include this function into script. I have written and tested script. I have tested it with one at Mais

$25 USD in 0 dias
(0 Comentários)