How to Clean Windows XP Security Log via Command Line

Written by erika cole
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Clean Windows XP Security Log via Command Line
(NA/PhotoObjects.net/Getty Images)

Windows XP logs all system events for security purposes and to collect troubleshooting information. Security logs can be viewed and managed from the Windows Event Viewer. However, if you’re unable to open Windows normally, you will have to access and clean the security logs via the command line.

Skill level:
Moderate

Other People Are Reading

Instructions

  1. 1

    As the computer is starting up, press the F6 key to display the Boot Options menu (this key may differ depending on the manufacturer of your computer).

  2. 2

    Choose “Safe Mode with Command Prompt.”

  3. 3

    When the command prompt is displayed, type the following string exactly as shown and press Enter:

    sc config eventlog start= disabled

    If you have successfully entered the command, the system displays a “SUCCESS” message.

  1. 1

    Type the following command and press Enter to restart Windows:

    SHUTDOWN -r

  2. 2

    As the computer is rebooting, press the F6 (or other) key and choose “Safe Mode with Command Prompt” from the Boot Options menu again.

  3. 3

    When the command prompt is displayed, type the following command and press Enter to delete the security log:

    del c:\windows\system32\config\SecEvent.evt

  4. 4

    Type the following exactly as shown and press Enter to enable the EventLog service to start normally next time you start the computer:

    sc config eventlog start= auto

    If you have successfully entered the command, the system displays a “SUCCESS” message.

  5. 5

    Type the following command and press Enter to restart Windows in normal mode:

    SHUTDOWN –r

    When Windows loads, it will automatically re-create a new security log.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.