≡ Menu

Enable disable event log service

Windows has commands to manage system services from command line. Below you can find commands for starting/stopping/enabling/disabling event log service.

Also see View event logs from command line

Command for disabling event log service:

sc config eventlog start= disabled

You need to have administrator privileges to run this command successfully.

To enable event viewer service:

sc config eventlog start= auto

Command to start the service :

net start eventlog

For some reason, stopping the event log service is disabled. We get the below error when we try to stop the service in Windows XP.

C:\>net stop eventlog
The requested pause or stop is not valid for this service.

More help is available by typing NET HELPMSG 2191.

However, in Windows 7 we can stop the service. Below is the command for this

net stop eventlog

In Vista and Windows 7 all these commands should be run from elevated administrator command prompt. Otherwise it would throw up ‘Access denied’ error like below.

c:\>sc config eventlog start= disabled
[SC] OpenService FAILED 5:

Access is denied.
1 comment… add one
  • Anon-y-mouse

    net stop eventlog does not work in Vista/7, even from an elevated command prompt.

Leave a Comment