Over 1 million tech questions and answers.

Help with VBS script to copy/clear event logs.

Q: Help with VBS script to copy/clear event logs.

Windows 2003/2008 server event logs automation question.
Okay, I need help! This is my first post, and if I get an answer that resolves it, I swear that I will donate to the site! (okay, I will anyway, but what other motivation could I offer?)
Problem: I need to collect the system,application and security event logs
from multiple servers that I am testing often. Manually saving the logs and
resetting them is a chore for dozens of systems, each time i run a test.
What I would like is a VBS script that I could call from a shortcut on the
desktop, which points to a COLLECT.VBS script located on a mapped drive. This
would be to allow me to use 1 script on all systems. I could log in and run
it quickly or set it up on the scheduler to run daily.
The code below does the capture and clear of the logs, but i have had to edit one per server. I also have to create a different name or location each time to allow multiple captures to exist together and not overwrite each other.
So, here are the features that I would like some help with how to code a solution to my problem:
1. vbs script called from a desktop icon or tripped off by a daily scheduled
job.
2. must copy then clear the system,security and application logs (code below
does do that, btw)
3. Pickup the system name and date stamp so as to write them on the x:
drive in a location that lets you easily see what they came from and where
they are.
Example- when I click on this from SYSTEM A, it creates the 3 logs they look like this:
/hard coded mapped drive for central storage of logs
| /Name of the System
| | /Name of the Log
| | | /Date (and maybe time?)
| | | |
Z:\drivelogs\SYSTEMAsecuritylog10292008.evt
Z:\drivelogs\SYSTEMAsystemlog10292008.evt
Z:\drivelogs\SYSTEMAapplicationlog10292008.evt
and from SYSTEMB it looks like this:
Z:\drivelogs\SYSTEMBsecuritylog10292008.evt
Z:\drivelogs\SYSTEMBsystemlog10292008.evt
Z:\drivelogs\SYSTEMBapplicationlog10292008.evt

so all the logs can play together in one massive folder on the Z drive. The date on the files will tell me when they were collected.
------------------------------------------------------------
This works to capture and reset the logs...the
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Backup)}!\\" & _
strComputer & "\root\cimv2")
Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile where LogFileName='Application'")
For Each objLogfile in colLogFiles
errBackupLog =
objLogFile.BackupEventLog("c:\scripts\ServerAapplicationlog.evt")
If errBackupLog <> 0 Then
Wscript.Echo "The Application event log could not be backed up."
Else
objLogFile.ClearEventLog()
End If
Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Backup)}!\\" & _
strComputer & "\root\cimv2")
Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile where LogFileName='Security'")
For Each objLogfile in colLogFiles
errBackupLog =
objLogFile.BackupEventLog("c:\scripts\ServerAsecuritylog.evt")
If errBackupLog <> 0 Then
Wscript.Echo "The Application event log could not be backed up."
Else
objLogFile.ClearEventLog()
End If
Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Backup)}!\\" & _
strComputer & "\root\cimv2")
Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile where LogFileName='System'")
For Each objLogfile in colLogFiles
errBackupLog =
objLogFile.BackupEventLog("c:\scripts\ServerAsystemlog.evt")
If errBackupLog <> 0 Then
Wscript.Echo "The Application event log could not be backed up."
Else
objLogFile.ClearEventLog()
End If
Next
----------------------------------------------------------------------

Thanks to any and all that can point me in the right direction. New to VBS scripting and this would really kickstart my use of it.

iSCSIdude

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Help with VBS script to copy/clear event logs.

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 79.2

I haven't been able to find a way to clear all event logs without saving. In Win 7 and vista (I only tested this in win 7) I like to occassionaly clear the administrator alerts without having to go in to each event log area to do so. Sometimes I just want
to wipe the all clean do a reboot and see what happens. There doesn't seem an easy way to clear out everything, so I wrote a simple batch file that does this. If there is another way, please let me know. It's a real simple script, just time consuming to write
it. I used a lot of copy/paste and a macro utility to insert the wevtutil command.

For more info on wevtutil, open a cmd prompt and type wevtutil /?
You can edit this script to save each event log too if you need to. Good luck editing each line though...

Otherwise, maybe others will find this useful. Simply copy and paste the text below in to a batch file (text file with extension bat) then right click and run as administrator to clean out all events in all event logs...

REM - Will clear all event logs in Windows 7 Ultimate without prompting or saving.
REM - Created by Leonard Rivera
wevtutil.exe cl Analytic
wevtutil.exe cl Application
wevtutil.exe cl DirectShowFilterGraph
wevtutil.exe cl DirectShowPluginControl
wevtutil.exe cl EndpointMapper
wevtutil.exe cl ForwardedEvents
wevtutil.exe cl HardwareEvents
wevtutil.exe cl Internet Explorer
wevtutil.exe cl Key Management Service
wevtutil.exe cl MF_MediaFoundationDeviceProxy
wevtutil.exe cl "... Read more

Read other answers
RELEVANCY SCORE 79.2

Hello all,

This Windows 7 utility actually works on Windows 8 Pro (at least it does on my installation).

Event Viewer One Click Clear - Windows 7 Support Forums

Use at your own risk.

Note: There are some that frown on removing historical event logs and I say "To each their own."

Good luck.

Read other answers
RELEVANCY SCORE 72.8

Hi,
I need copy files from one(source) server to another(destination) server and want to log an event in case any failure happens for example if destination server is not available.
I have tested the following command in a powershell script and its just working fine for copy to destination and then moving the files to archive. 

Copy-Item "c:\copy\*" -Destination "\\server1\d$\testcopy" 
Move-Item "c:\copy\*" -Destination "c:\Archive" 


Please advise how can i log event in eventviewer in case of error or if script is not executed.

Read other answers
RELEVANCY SCORE 60

I was running 3DMark06 and got a BSOD code 124. After that every time I boot Event Viewer logs Error Codes ID 3012 and 3011. Attached are screenshots of both.

I googled this and found two different threads where someone suggested to rebuild the performance counters. Both responses were basically the same, below is one. Neither of the OP's came back and said if this worked for them.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Re: LoadPerf 3011, 3012
Hi-
I had the same problem with LoadPerf and here is what I found out:
All performance counter names and explain text are maintained in string tables managed by the performance counter subsystem (Perflib).

The current contents of the performance counter string tables are corrupted and cannot be displayed. To correct the problem, rebuild the string tables.

User Action
To rebuild the string tables, on the computer that displayed the message, at the command prompt, type Lodctr /r
The contents of the string tables are automatically rebuilt.

I hope this helps
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Since this was from 2008 (XP?) and the other response was for Vista I wanted to see if the guru's at SevenForums thought that this was okay before I did this.

Here are the screenshoots of my two errors.

A:After BSOD Event Viewer Logs Event ID 3012 and 3011 every time I boot

Rebuilding the string tables as outlined in my first post fixed the problem.

Read other 1 answers
RELEVANCY SCORE 59.6

After too many unexplained problems, I decided to reinstall Windows 8.1 Pro x64, and migrate off of SBS 2011 Standard. In addition to the primary workstation that can't read any event logs, I built five Server 2012 R2 servers (Hyper-V host, Active Directory
VM, Exchange 2013 VM, SQL Server 2014 VM, and WSUS VM).

I was diagnosing why my workstation's Outlook cannot reach the local Exchange Server.   I tried to look at the event logs, and found the
Event Viewer cannot open the event log or custom view.  Verify that Event Log service is running (it is) or the query is too long (whatever that indicates).  The request is not supported (50)
Looking at the directory of the event logs folder.  It appears that most logs are empty, which is understandable since it's a rebuilt installation.  I found a small number of Applications and Services Logs and it appears nothing was logged since
six days ago on 4/4/2016.   On support forums, I found many have this exact problem on Win 7, Win 8, and Win 10.  Of the solutions posted none of them would even execute on my Win 8.1 Pro x64 machine.  I tried clearing the event logs (WEVTUTIL
CL logfilename) and am told Failed to clear log .... The request is not supported. 
It's very difficult to diagnose why Outlook 2013 cannot reach Exchange 2013, even if Outlook is installed on the Exchange server machine (just as a test).  The web-based Outlook owa, ecp, ... all work fine. ... Read more

Read other answers
RELEVANCY SCORE 58.8

Hi...
Have an issue I've been dealing with for several weeks.  I have a standalone system that certain event IDs such as 4647 and 4634 and others are not populating in the security log.  Success and failures is set in the Local Group Policy,
but they are not being logged.  Performed gpupdate after making changes, and scoured the internet for a solution.  Any ideas?  Was this an issue in the past that an MS patch corrected?  Thanks in advance for any suggestions!!

Read other answers
RELEVANCY SCORE 57.6

Hi, all. I have been trying to figure out a serious of issues that my PC has been having. It's possible they were caused by poorly seated RAM, but the RAM seems to check out now. There is a whole slew of details on the case here: TechNet with a lot more information that will be of help, including posted evtx files. I have always gotten great help here, though, and am in dire need of a second opinion, so I thought I would check with this forum's experts.Here is the basic gist, although there is a ton more detail on the other link:Since building this machine, I've had frequent BSODs, often seemingly-related to middle of the night MSE updates, or possibly other windows updates. These always required a System Restore to recover from, as Windows was unbootable. Often it said the Restore failed, but it seemed to resolved the bootability issue at least.I have removed MSE and reseated some RAM that initially tested poorly, but which now seems to be passing MemTest no problem.I still have a series of issues that occur, and the one that was causing noticeable issues was SuperFetch causing sysmain.dll to fault (Event 1000, posted below) on every boot and periodically throughout the day. I have disabled SuperFetch, which stopped the issue from happening every boot, but it still happens occasionally, so it seems SuperFetch is but one trigger.The other most common error I have is Event 55 (posted below), possibly related to Windows Backup and/or System Restore, which seems ... Read more

Read other answers
RELEVANCY SCORE 56

Event Log Explorer
A tool to help Manage, Analyze and Report Windows Event Logs
For Windows NT/2000/XP/2003 operating systems​
This is a simple, "starter" guide to help use this tool. (Note this tool will only work on Windows NT/2000/XP/2003. It will not work with Windows Vista.) Download and run Event Log Explorer.

One time initialization

Click Tree->Show Tree
Click File->New Workspace
Click File->Save Workspace As (and save your workspace file anywhere you choose)
Example: To Filter / View / Export Recent Error and Warning Log Events

Open an Event Log
>> (e.g Typically, you only need look at the System Log (for System event records) and the Application Log (for Application related events)
Filter the events you want to see (for this example we filter to only see Non-Information events that occured in the last 7 days)
>> Click View->Filter.
>> Uncheck Information. Towards the bottom of the filter window, look for ?Display event for the last? enter 7 days. Click OK
Click File->Export Log to save a copy of the events for later viewing or sending to others
>> Check: Text file, All events, Event Description
>> Uncheck Export Event Data
>> Check Close dialog when done
Click Export and save as a txt file on your Desktop
Help Troubleshooting an Event

Double click an event to see the "Event Description" (which provides more detail about the event)
Click Event ID Database button for an web page a... Read more

A:"Event Log Explorer" tool helps manage/analyze/report on your Windows Event Logs

I use the subscription to EventID.net. It has been greatly helpful. I don't have this analyser but am a big believer in using the Event Viewer. I'll add a description I have written up which will help in determining the Events: This may be useful in addition to the Event Analyzer.

One thing I have not been able to do is keep the filters set with the software in the OS.

Find the Error(s)in the Event Viewer that correspond to the crash/freeze/error message/blue screen, etc.:

Description of the Event Viewer:




Unfortunately, many Windows XP users aren't aware of the Event Viewer, what it is, where it is, how it can help with a problem:
The Event Viewer has logs for everything that happens on the computer. There are three sets of logs: System, Applications and Security. By opening the first two to display the Events, you can look for Errors that correspond to the time of the problem- in your case, the crash.

There are three types of Events in the System and Apps logs:
1. Information (white circle w/blue i): this is just basic documentation of the normal working of the System or Apps.
2. Warnings (yellow triangle w/black exclamation mark) noting some problem at that moment. Warnings usually resolve on their own. If they do not, they become>>>
3. Errors (red circle w/white X- they document something that didn't work or isn't happening as it should. Each Errors has three parts: an ID#, a Source and a Description. By doing a right clic... Read more

Read other 1 answers
RELEVANCY SCORE 56

hi,
how can i clear a particular event in the windows 2000 system event log?
thanks
 

A:clear event from sys log

Maybe this will help you?
good luck
 

Read other 1 answers
RELEVANCY SCORE 55.2

In the Event Viewer help, it says that in order to clear events, go to the Action menu and click 'Clear'. I have already saved everything in an external file but in the Action menu there is no option to clear. What am I missing?

Richard Rein

A:How do I clear Event Viewer

Let me Google that for you...

Read other 4 answers
RELEVANCY SCORE 55.2

When exactly is it a good time to clear the event viewer logs in Windows XP? My computer is having problems recently you see. If I take it a repair shop would I be doing a disservice to myself by clearing the event viewer? Is it something that would at all help the repairman diagnose what's wrong with my computer? Any help would be greatly appreciated.

A:Help. When to clear the event viewer.

Event Viewer can be very useful because it can provide more detailed information on error messages that appear during Windows operations. It can also log events that you don't see elsewhere.

I would say that a good time to clear event logs is when you are not having any issues. That's not to say a repair tech would necessarily even use Event Viewer to help diagnose and solve your problem, because it depends on the problem. Why do you want to clear it?

Read other 6 answers
RELEVANCY SCORE 54.8

Hi Everyone,

Been using this code for a while to clear out event logs

@echo off
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
echo.
echo goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
exit

Since I'm not a coder I would appreciate someone to take a look at this. What happens is I run this .bat file as an admin and the box opens then closes. Normally I get a scrolling list of everything that it clears, but thats no longer the case.

Help is appreciated.
 

A:Solved: Clear Event Viewer.bat

Read other 16 answers
RELEVANCY SCORE 54

Hi:

Does anyone know how to clear the Administrative Events log listed under Custom Views in the Event Viewer?

All the logs listed under the Windows logs have options to clear, but the above does not.

Thanks,

ColTom2

A:How To Clear Administrative Events Log - Event Viewer

Thats just a filter. I dont know of any way to clear it other than clearing all events that appear in it under: System, Security and Application event logs.

Read other 9 answers
RELEVANCY SCORE 54

I had the google redirect virus and want to make sure I am clean of everything.
All removal programs come up clean except Hijack and DDS which show the .exe files in my temp folder. I ran autorun and unchecked them, which removed them from Hijacks log but not DDS, I am wondering if this is a problem and if there are still traces of the infection somewhere.

I have OTL/DDS/etc,etc logs if needed.

.
DDS (Ver_11-05-19.01) - NTFSx86
Internet Explorer: 9.0.8112.16421 BrowserJavaVersion: 1.6.0_25
Run by Caitlynn at 17:23:09 on 2011-06-06
Microsoft? Windows Vista? Home Premium 6.0.6002.2.1252.1.1033.18.3061.1734 [GMT -4:00]
.
AV: AntiVir Desktop *Enabled/Updated* {090F9C29-64CE-6C6F-379C-5901B49A85B7}
SP: Windows Defender *Enabled/Updated* {D68DDC3A-831F-4fae-9E44-DA132C1ACF46}
SP: AntiVir Desktop *Enabled/Updated* {B26E7DCD-42F4-63E1-0D2C-6273CF1DCF0A}
.
============== Running Processes ===============
.
C:\Windows\system32\wininit.exe
C:\Windows\system32\lsm.exe
C:\Windows\system32\svchost.exe -k DcomLaunch
C:\Windows\system32\svchost.exe -k rpcss
C:\Windows\System32\svchost.exe -k secsvcs
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted
C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted
C:\Windows\system32\svchost.exe -k netsvcs
C:\Windows\system32\svchost.exe -k GPSvcGroup
C:\Windows\system32\SLsvc... Read more

A:Cleaned, but clear? DDS logs showing trojan .exe's in services

Hello and welcome to the forums!My secret agent name on the forums is SweetTech (you can call me ST for short), it's a pleasure to meet you. I am very sorry for the delay in responding, but as you can see we are at the moment being flooded with logs which, when paired with the never-ending shortage of helpers, resulted in the delayed responding to your thread.I would be glad to take a look at your log and help you with solving any malware problems.If you have since resolved the issues you were originally experiencing, or have received help elsewhere, please inform me so that this topic can be closed. If you have not, please adhere to the guidelines below and then follow instructions as outlined further below:Logs from malware removal programs (OTL is one of them) can take some time to analyze. I need you to be patient while I analyze any logs you post. Please remember, I am a volunteer, and I do have a life outside of these forums.
Please make sure to carefully read any instruction that I give you. Attention to detail is important! Since I cannot see or directly interact with your computer I am dependent on you to "be my eyes" and provide as much information as you can regarding the current state of your computer.
If you're not sure, or if something unexpected happens, do NOT continue! Stop and ask!
In Windows Vista and Windows 7, all tools need to be started by right clicking and selecting Run as Administrator&#... Read more

Read other 3 answers
RELEVANCY SCORE 53.6

I was recently infected with vitrumonde. Did most of the cleaning manually using hjt logs and combofix.
Please let me know if this system appears clean.
Thank you!
DDS (Ver_09-02-01.01) - NTFSx86
Run by xxxx at 18:07:33.39 on 2009-02-17
Internet Explorer: 7.0.5730.11 BrowserJavaVersion: 1.6.0_11
Microsoft Windows XP Professional 5.1.2600.2.1252.1.1033.18.2038.1362 [GMT -5:00]

AV: VirusScan Enterprise + AntiSpyware Enterprise *On-access scanning disabled* (Updated)

============== Running Processes ===============

C:\WINDOWS\system32\ibmpmsvc.exe
C:\WINDOWS\system32\svchost -k DcomLaunch
svchost.exe
C:\WINDOWS\System32\svchost.exe -k netsvcs
C:\Program Files\Intel\Wireless\Bin\EvtEng.exe
C:\Program Files\Intel\Wireless\Bin\S24EvMon.exe
svchost.exe
svchost.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\ThinkPad\ConnectUtilities\AcPrfMgrSvc.exe
C:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDeviceService.exe
C:\Program Files\Bonjour\mDNSResponder.exe
C:\program files\cscmarimba\tuner\Tuner.exe
C:\WINDOWS\system32\inetsrv\inetinfo.exe
C:\Program Files\Java\jre6\bin\jqs.exe
C:\Program Files\McAfee\VirusScan Enterprise\mcshield.exe
C:\Program Files\McAfee\VirusScan Ent... Read more

A:vitrumonde free? symptoms clear; request check of logs

Hello Alimo20 and welcome to Bleeping Computer,1. Please download GooredFix and save it to your Desktop.Select "2. Fix Goored" by typing 2 and pressing Enter. Make sure all instances of Firefox are closed at this point. Type y at the prompt and press Enter again. A log will open, please post the contents of that log in your next reply (it can also be found on your desktop, called GooredLog.txt).Note: If you receive a message saying that GooredFix needs your system to be restarted, please close all applications and reboot your system. Please also allow any registry changes that may be prompted by any of your security programs.2. Please read this tutorial carefully to download ComboFix from one of the locations specified, and save it to your Desktop.Double click the ComboFix icon to run it.If ComboFix askes you to install the Recovery Console, please do so..The Windows Recovery Console will allow you to boot up into a special recovery mode, in case your computer has a problem after an attempted removal of malware. This allows us to help you.Once the Recovery Console is installed, continue with the malware scan.Note: Make sure not to click ComboFix's window while it's running. That may cause it to stall or freeze.Please post the log from ComboFix (can also be found as C:\ComboFix.txt) in your next reply. If you have any questions along the way, STOP and ask them before proceeding !!Greetings,Thunder

Read other 1 answers
RELEVANCY SCORE 53.6

Sorry for re-posting, not sure how I doubled up in my earlier post, but when I re-read it it looked backwards and I though people may not realize the most recent data was way down in the second half of the post.

Been trying to get some help on this trojan/spyware I've been dealing with. I went ahead and followed the posts by cybertech in some other threads. Below is the SDFix report from after I ran SDFix, and a new Hijackthis log. Again, many thanks for any help!!

SDFix: Version 1.205
Run by Rob on Wed 07/16/2008 at 11:51 AM

Microsoft Windows XP [Version 5.1.2600]
Running From: C:\SDFix

Checking Services :
Restoring Default Security Values
Restoring Default Hosts File
Restoring Default Desktop Wallpaper

Rebooting
Checking Files :

Trojan Files Found:

C:\WINDOWS\SYSTEM32\PPHCGO~1.EXE - Deleted
C:\WINDOWS\SYSTEM32\PHCGOL~1.BMP - Deleted
C:\Documents and Settings\All Users\Start Menu\Programs\Antivirus XP 2008\Antivirus XP 2008.lnk - Deleted
C:\Documents and Settings\All Users\Start Menu\Programs\Antivirus XP 2008\How to Register Antivirus XP 2008.lnk - Deleted
C:\Documents and Settings\All Users\Start Menu\Programs\Antivirus XP 2008\License Agreement.lnk - Deleted
C:\Documents and Settings\All Users\Start Menu\Programs\Antivirus XP 2008\Register Antivirus XP 2008.lnk - Deleted
C:\Documents and Settings\All Users\Start Menu\Programs\Antivirus XP 2008\Uninstall.lnk - Deleted
C:\Documents and Settings\Rob\Application Data\Microsoft\Internet Explorer\Quick Launch... Read more

A:Please check these SDFix and Hijackthis logs trying to clear out trojan/spyware

Please do not create multiple threads for the same problem! Read >>Posting help read first<< if you feel you are not getting help.

Continue here: http://forums.techguy.org/malware-removal-hijackthis-logs/731058-ran-sdfix-please-take-look.html
 

Read other 1 answers
RELEVANCY SCORE 52.8

Hi,

Having issues with the Windows Event Log. It won't show. Even tried to clear it with this error. Even if I try to clear it using PowerShell I always end up in "Failed to clear log xxx. The request is not supported.".

Already tried sfc /scannow, of course restarting...

Help?

Running Windows 8.1 x64

Read other answers
RELEVANCY SCORE 52.8

Windows Logs and Applications and Services Logs have a "clear log" option; however, I am puzzled how to edit/delete Administrative Events?Eighter from Decatur, county seat of Wise (of course it's in Texas)

A:How does one clear Custom Views (Administrative Events) in the Event Viewer?

Ronnie Vernon said: Hi p010neThe Custom View / Administrative Events is a compilation of all the other event logs in the Event Viewer. Entries in this log will be removed when the log where the event originated from is cleared.Hope this helps.

Ronnie Vernon MVPI thought that was the case; however, I cleared all the other logs! This is an example of an entry in this log: Log Name:      Microsoft-Windows-Dhcpv6-Client/AdminSource:        Microsoft-Windows-DHCPv6-ClientDate:          1/17/2009 7:52:33 AMEvent ID:      1001Task Category: Address Configuration State EventLevel:         ErrorKeywords:      User:          LOCAL SERVICEComputer:      Windows7Description:Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x000129F558C5.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  <System>    <Provider Name="Microsoft-Windows-DHCPv6-Client" Guid="{6A1F2B00-6A90-4C38-95A5-5CAB3B056778}" />    <EventID>1001</EventID>    <Version>0</Version>    <Level>2</Level>    <Task>3</Task>    <Opcode>74</Opcode>    <Keywords>0x8000000000000000</Keywords>    <TimeCreated S... Read more

Read other 9 answers
RELEVANCY SCORE 52.8

Hi
Possible to clear the COPY TO or MOVE history list in Explorer please?
Also, the peculiar numbered folders that keep appearing eg. 00000081, prevent those from appearing somehow?

Cheers

A:Clear COPY TO or MOVE history?

Hello Hugoboss,

Could you post a screenshot showing this just for us to be sure of what you mean?

Read other 7 answers
RELEVANCY SCORE 52.8

Office 2010.

Scenario:
Outlook rule moves emails upon receipt from specified senders to an Outlook folder.
Outlook rule then runs a script that saves Excel attachments a directory on the PC, applying filename and filetype.
What I'd like to do is open the Excel file in the background and run some code on it before it is saved to the PC directory.
The code is just some simple clearing of formatting on each sheet:

Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
On Error Resume Next
ws.Activate
Cells.Select
Selection.ClearFormats
Range("A1").Select
Next wsClick to expand...

I have added the MS Excel 14.0 Object Libray to Outlook.

How do I tell Outlook to run Excel code?! Or is there another way to cleanse the formatting from the Excel files?
 

A:Solved: Outlook script to open Excel, clear formats, save

I've just found that the attachments we received can be in csv, xls or xlsx format, and all need to be saved as xls.
In testing a heavily formatted xlsx doc as an xls file, I find the resultant file is all full of horrible. Seems this is due to the compatibility between Excel 2010 and Excel 97-2000 (simply copying the data from the xlsx to an xls file produces the old Minor Loss of Fidelity window). I had wondered whether an alternative way to do it would be to open the attachment, copy the data and paste into an xls document (all using code). But it seems this would actually be more hassle.

If I (manually) clear formats from all worksheets in a workbook and save it as xls, I then can open the file (in compatibility mode) with no loss of fidelity warnings, and obviously no incomprehensible formatting characters.

This doesn't change anything from my original request, it just highlights the need to run Excel code prior to Saving As xls.
 

Read other 1 answers
RELEVANCY SCORE 52

Hello, I am using Windows 8 Home Premium.

This question pertains to Explorer.

In Explorer's HOME ribbon, there are icons for Move To and Copy to. There is a drop down list of destinations for each icon.

Is there any way at all to clear these lists? I haven't found a way yet.

Thank you for your help! J. Danniel

A:Can I Clear Out the Move To and Copy To Lists in Explorer?

I don't think you can clear the default list such as: Desktop, Documents etc...
But for the folders that you recently used to move/copy, the lists are stored in: C:\Users\USER\AppData\Roaming\Microsoft\Windows\Recent

Where USER is your user name.

Read other 2 answers
RELEVANCY SCORE 51.6

Is there any way to clear all windows 8 event logs..

A:Event logs

Event Viewer One Click Clear - Windows 7 Forums
This was for windows 7 but is still working for windows 8.I'm using it.Just run it as administrator

Read other 2 answers
RELEVANCY SCORE 51.6

Hi
Attached is two event log files, one is the system events "EVENT LOG.csv, the other is application events "APPLICATION LOG.csv.
Can you please tell me what happend, or what could have happend to this pc on the 7 October 2008 at 7 in the morning. The time and date reset after that, or it was changed by someone and i need to find out if it was the pc or someone.
thank you
 

Read other answers
RELEVANCY SCORE 51.6

Been snooping through event logs because my pc randomly freezes.I have the asus striker II extreme moboIntel Core2 Quad Q9400 Well Im getting stupid kernel errors. I want them fixed. Running windows 7 Ultimate with all updates.Log Name: SystemSource: Microsoft-Windows-Kernel-Processor-PowerDate: 9/23/2010 10:50:48 PMEvent ID: 35Task Category: (2)Level: ErrorKeywords: User: SYSTEMComputer: Vaine-PCDescription:Performance power management features on processor 0 in group 0 are disabled due to a firmware problem. Check with the computer manufacturer for updated firmware.Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-Kernel-Processor-Power" Guid="{0F67E49F-FE51-4E9F-B490-6F2948CC6027}" /> <EventID>35</EventID> <Version>0</Version> <Level>2</Level> <Task>2</Task> <Opcode>0</Opcode> <Keywords>0x8000000000000000</Keywords> <TimeCreated SystemTime="2010-09-24T02:50:48.657200000Z" /> <EventRecordID>38790</EventRecordID> <Correlation /> <Execution ProcessID="4" ThreadID="60" /> <Channel>System</Channel> <Computer>Vaine-PC</Computer> <Security UserID="S-1-5-18" /> </System> <EventData> ... Read more

A:Event Logs

Disable Speedstep, and see if the issues go away. If it does, then you need to update your chipset drivers or keep speedstep disabled.

Read other 13 answers
RELEVANCY SCORE 51.2

Hi everyone. I was just wondering if there was any real purpose in cleaning up the event/security logs ?
The actual size they take up seems minimal and I'm pretty sure mine are set to overwrite themselves when they are full.
So I guess my question is - to clean or not to clean ? pro's/con's
Thanks.

A:Event Logs - clean up or not ?

IMHO, no.

Read other 9 answers
RELEVANCY SCORE 51.2

Hi guys
For the last 4 weeks i get the following 4 errors at boot in the event viewer never get anything else just these.Can anyone translate the squiggles for me and tell me if there is anything to be worried about or not
Thankyou

A:Event viewer logs

Look in the text document you attached cuz i've put them by Event ID (written in the text document):
Event ID: 40968
Discription:
The Security System has received an authentication request that could not be decoded. The request has failed.

Problem with your system.
----------------------------------------------------------------------------------------------
Event ID: 1060
Description:
\??\C:\Windows\SysWow64\drivers\mdvrmng.sys has been blocked from loading due to incompatibility with this system. Please contact your software vendor for a compatible version of the driver.

it's either replaced by a recently installed software or infected by a virus.
----------------------------------------------------------------------------------------------
Event ID: 7000
Description:
The Mobile IP Route Manager service failed to start due to the following error:
This driver has been blocked from loading

Again it's either a virus blocking it from running or the driver got messed up.
----------------------------------------------------------------------------------------------
Fixing:
1- Event ID: 40968
Since it has the Level: Warning then I think you better try System Restore Point, if still does the same problem, run a full system scan for viruses and if you find viruses in C:\WINDOWS, then you should Format / Reinstall Windows cuz if viruses can't be fixed they will be autmoticly quarentined and leads to lose of files for windows.

2- Event ID: 1060
Since it's in the windows Fold... Read more

Read other 1 answers
RELEVANCY SCORE 51.2

http://www.microsoft.com/technet/scr....mspx?mfr=true

Microsoft Corporation

You can list the contents of an event log, sort by source, group by message type and more. To get the a whole log use the following command: get-eventlog [log name] get-eventlog Application

If you wish to sort the records by source use this command: get-eventlog Application | sort Source You can also group the records by Source, it can take a while depending on the number of records, but it is handy! Just run:
get-eventlog Application | group Message

Now event logs can get quite large and hold thousands and thousands of records. You can use the -Newest ### switch to retrieve a set number of the latest events recorded And, of course, these can all be combined to get exactly what you are looking for.
get-eventlog Application -newest 100 | sort source

Read other answers
RELEVANCY SCORE 51.2

Win XP: in Event Viewer there are a bunch of event logs. Is it 'safe' to delete all these logs? of course, some of them have 'red' warnings and some 'yellow'....but my pc is working just fine now. Thanks for any advice.
 

A:Event Viewer logs

It's just a log file. If you want to clear it, it'll just clear all previous events and start from scratch. It wont cause you problems.
 

Read other 1 answers
RELEVANCY SCORE 51.2

Is any way to join several event logs in one?

A:Join Event logs

If you are talking about Windows Logs, actually there is a way. When you open Event Viewer, you will see a 'Custom Views' group in the left sidebar. By right clicking on it you get a menu from which you can select 'Create Custom View'. That opens a new window, where you have to check the first radio button that says "by log" (it is checked by default but make sure), and on its right side there is a dropdown menu from which you can pick logs that you want. After clicking OK and naming your custom view, you will have a list of all the events from all the logs you selected.

Read other 1 answers
RELEVANCY SCORE 51.2

Hi, I have a huge problem with my power supply and video cards. I have tried to include the event log files. I just started having trouble last week, but I can see by the logs that are in the Thousands. I have Reformatted my Hard Drive, Once already. I dont know where to start, or if I should Reformat it again. I am not the best with computers, and I am sure that I have Downloaded some Crap and I am Paying for it now. I have just tried to upload my Event Logs, but it says the file is Too Large. Any Help is Greatly Appreciated. Thx

A:Event Logs in the Thousands

Firstly welcome.
Now, a description of the fault/s and any error code that may have been displayed would be a good place to start.

Read other 3 answers
RELEVANCY SCORE 51.2

Hi guys
i dont really look into my event logs because usually, i dont have the need too.

i randomly decided to look into my event log (while doing some maintenance on my setup)
and found some strange events.

two distinct event logs which are somewhat related.

Problem 1. I can cause the following event by removing my iPod from my pc via iTunes (remove virtually not physically)

Following events have
Log name: Microsoft-Windows-WMI-Activity/Operational
Event ID: 5858
Level: Error

Event 1:
Id = {00000000-0000-0000-0000-000000000000}; ClientMachine = SHADY-PC; User = NT AUTHORITY\SYSTEM; ClientProcessId = 2992; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\wmi : select * from WDMClassesOfDriver where ClassName = "MSStorageDriver_ClassErrorLogEntry"; ResultCode = 0x80041032; PossibleCause = Unknown

Event 2:
Id = {00000000-0000-0000-0000-000000000000}; ClientMachine = SHADY-PC; User = NT AUTHORITY\SYSTEM; ClientProcessId = 2992; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\wmi : select * from WDMClassesOfDriver where ClassName = "MSStorageDriver_ClassErrorLog"; ResultCode = 0x80041032; PossibleCause = Unknown

Event 3:
Id = {00000000-0000-0000-0000-000000000000}; ClientMachine = SHADY-PC; User = NT AUTHORITY\SYSTEM; ClientProcessId = 2992; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\wmi : select * from WMIBinaryMofResource where Name = "IDE\\DiskOCZ-VE... Read more

A:Strange event logs

anyone?

these errors only occur when removing a USB device.

Read other 9 answers
RELEVANCY SCORE 51.2

hi all,
i need to print out security logs of windows 2000 servers on a daily basis.
does anyone knows how to automate this?

Thanks
 

A:printing event logs

Why not create a batch file using the Print command
then include the batch file as a scheduled task

Print [/D:device] [[drive:][path]filename[...]]

/D:device specifies the print device
 

Read other 2 answers
RELEVANCY SCORE 51.2

I have events from Anonymous log ons. What are those? In the security log!

For example: NT AUTHORITY\ANONYMOUS LOGON
Successful Network Logon:
User Name:
Domain:
Logon ID: (0x0,0x10FF3)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name:
Logon GUID: -
This is the only on in almost a month!

Thank you lots!!

A:Event Viewer logs

Probably nothing to be concerned about, those are typical entries on my system.Comments from http://www.dslreports.com/forum/remark,655...ty,1~mode=flat:"A successful user logon is always listed as an event ID 528 and then you'll see a type which can be anything from 2 to 7. If it's not 528, then it's not an actual user and it's not necessarily successful.Event ID 538 is a successful logoff and not necessarily by an actual user.Event ID 540 is a successful "network" logon as in mapping a network drive. Your computer keeps checking for Network connections or shared folders, etc... on a regular basis to make sure you are connected."LouisWhat Is Anonymous Logon?

Read other 1 answers
RELEVANCY SCORE 51.2

Hello, everyone, I am using Windows 8.1.

This question has to do with File Explorer?s Move/Copy To options in the ribbon. I?d like to know if it?s possible to completely clear that list. I?m not interested in editing the list, just clearing it.

I found this thread on this forum, but it seems like it deals with editing the list, not clearing it.

http://www.eightforums.com/customization/13729-move-copy-explorer-ribbon.html

It doesn?t seem like it can be cleared. Am I wrong? Thank you! Jd

PS: I know how to add the Move To and Copy To options to the context menu. But I really do want the Move/Copy To ribbon menus cleared, that?s all. Thanks again.

A:Can I Clear/Empty File Explorer's Move/Copy To Lists?

Can you post a picture showing what you want to clear?

The only Move to and Copy to I see is under Home. Is that what you want to get rid of?

Read other 4 answers
RELEVANCY SCORE 50.4

Before I post my BSOD thread, what I'd like to is see where it is in event viewer, I can't find it. It happened at 11:45 yesterday (it's 12:57AM here now) the computer was off for about an hour, but the last event it shows under system is 11:06 and it's just an information event.

A:BSOD not showing in event logs, why?

There may not be a event logged depending on the type/cause of the bsod.

Read other 1 answers
RELEVANCY SCORE 50.4

I have read that I need to be checking firewall logs every day (ZDNet suggested this), and I know where to find the info. What I do not understand is how to interpret what I see. Is there a place to post here to have someone look at it, or can someone recommend other web sites that might be able to help? I have some concerns since I am seeing a lot of dropped packets.

Same question re event viewer. I see 'warnings' and dhcp and 1,000 events, but I don't know what that means, or whether I should be concerned, or take action in some way. Again, is that info something that can be looked at here, or where do I learn more about how to interpet the data?

Any suggestions/recommendations would be greatly appreciated.

A:Event Viewer and Firewall Logs

I have read that I need to be checking firewall logs every day (ZDNet suggested this),Hi Anonix -Unless you are having problems I see no reason to do this. Your Antivirus will keep a check on any problems usually.http://www.malwarebytes.org/ - or - http://www.superantispyware.com/downloadfile.html?productid=SUPERANTISPYWAREFREEIf you think you have problems then run Malwarebytes or SUPERAntiSpyware programs.(Both free)If there is a serious problem please post in the Malware removal area of this forum -Thank You -

Read other 4 answers
RELEVANCY SCORE 50.4

By mistake, I have executed a wrong command (SL /e:false to disable all event logging instead of clearing it. Got it from another website ).

Now I would like to reset all my event logs to default.
Has someone an idea, how I could apply the steps from this article:
Reset an event log to default settings: Management Services (which is for Windows Server only!)
to my Windows 10 machine?

A:I would like to reset all my event logs to default

Originally Posted by WTenNewbie


By mistake, I have executed a wrong command (SL /e:false to disable all event logging instead of clearing it. Got it from another website ).

Now I would like to reset all my event logs to default.
Has someone an idea, how I could apply the steps from this article:
Reset an event log to default settings: Management Services (which is for Windows Server only!)
to my Windows 10 machine?



WTenNewbie... what was the exact command you entered, the full command?

Read other 2 answers
RELEVANCY SCORE 50.4

Hello,
I am doing proof of concept testing and I am running into a lot of scenarios where EMET blocks an exploit attempts but does not generate a log or notification. For example CVE-2015-5119. I can compromise a vulnerable test machine no problem. When I apply
EMET to IE the exploit is stopped (application crashes) but I get no event. I have been unable to generate an EMET event for IE (flash plugin) or Java so far this way. The only way that I get an EMET notification is for when I have it protecting another application
like notepad or audioconverter. I have also tried CVE-2012-4969 and CVE-2011-3544 which is a java exploit and EMET mitigates it but not message or Event log. The vulnerable system running EMET is Windows 7 SP1 with IE 8. I have tried both EMET 5.2 and
5.5. Any thoughts?

Thanks!

Read other answers
RELEVANCY SCORE 50.4

Hello Support,
I'm investigating a case where a log entry has been found when exporting that event file(opened in eventviewer) to text file but its not found when searching in Event Viewer.
I've done multiple searches and its not seen in event viewer but can be seen once i export the same event into text files.
Please suggest some solutions asap.

Thanks in advance.

Read other answers
RELEVANCY SCORE 50.4

I have been encountering slow shutdown times on my desktop recently. I looked in the event logs to try and find some clue but they were not that helpful to the less than technically minded

1: EVENT_TCPIP_TCP_CONNECT_LIMIT_REACHED
I had a lot of the above that were listed both as information and warning

2: also W32time came up several time as both info and warning

3: NetBT came up several times - with
"the name MSHOME could not be registered on the interface with IP address xxx, the machine with the ip address yyy did not allow the name to be claimed by this machine.

The only hardware I have installed recently is a Belkin wireless card (whose problems I have posted elsewhere ) This may have something to do with it but I am not sure. Briefly my setup is a wireless laptop (no problems) and a wired desktop (which has been re-configured to run on wireless)

I am running Windows XP pro with SP2 on an AMD system with 2 gigs ram

I have run several virus checks and I run spybot regularly, I have a belkin router to connect through to my blueyonder broadband.

Any advice?
 

A:XP very slow shutdown - event logs

Read other 13 answers
RELEVANCY SCORE 50.4

How can you clear the event logs without an event being created stating that the logs were cleared in Powershell? The "clear-eventlog" command does clear the events, however it leaves behind an event that states that the logs were cleared.
Anyway to get around this and totally clear the logs?
Thanks,

Read other answers
RELEVANCY SCORE 50.4

Hi guys ,
I'm seeking help to troubleshoot my PC at times running slowly with CPU usage reeching 100%.
I'm on win2000 SP4
P4 HT 2.8
1 GB ram
5 hdd ( 40GB ata , 80GB SATA ,160GB SATA , 200GB SATA , 500 GB SATA )
I saw at event viewer these logs
Event ID - 51 - An error was detected on device \Device\Harddisk2\DR2 during a paging operation
Event ID - 51 - An error was detected on device \Device\Harddisk3\DR3 during a paging operation.
I had run chkdsk with the /F /R commands , also defrag the disks , cheched for virus , adware , spyware , trojans , checked the connections at the motherboard , repair the windows instalation but the problem insists and drives me crazy for weeks now
Any help please ?
 

Read other answers
RELEVANCY SCORE 50.4

http://tinyurl.com/gpc3c

Event Viewer in pre-Vista platforms suffers from several limitations that make it underperform as a troubleshooting tool. These limitations include a lack of support for centralized logging, inability to query across multiple logs, limited event filtering capability, and a general lack of "software intelligence" in terms of helping you understand how different events correlate with possible problems and how they can be resolved.

Windows Vista's enhanced version of Event Viewer is a big improvement in many of these areas, and while it's still not perfect (especially in the area of software intelligence) it's still a good step forward over the previous version of the tool. Let's walk through using some of these new features so you can learn how to use their capabilities for troubleshooting purposes.
 

A:Monitoring Event Logs in Vista

Wooohoo something I have been praying for since the Windows NT days has come true!
 

Read other 1 answers
RELEVANCY SCORE 50.4

I'm curious if there are any windows events, either system or application, that would tell me the Time Zone the system is in. If I get event logs (*.evtx) from windows 7 system from customer, how would I find out TimeZone.
Thanks,
MDExch

Read other answers
RELEVANCY SCORE 50.4

Hello,
I was told that internet explorer logs are located in Event viewer > windows logs > application. After looking through that tree, I was unable to find any IE logs. How would I filter the view to only get IE; also, what would the source of IE be? Fixing
IE is a pain.

Edit: this is for Windows 10 1709.

Read other answers