Jump to content



Recommended Posts

Hi everyone,

anyone know a way of obtaining a list of services running in the background of a machine, but also the date/time these were started\stopped and the ver numb?

would prefer it to be a script/bat type operation.

Basically I want to know what services have been started/stopped by service pack installs on our Server Box.

Our 3 servers are running win2k server and 2 x win2003 server.

Cheers for comments peeps


Link to comment
Share on other sites

You could try parsing the System Eventlog for events with the 7035 or 7036 Id, issued by the Service Control Manager to determine when services where started/stopped.

You can also use the sc query command from a command prompt to get a list of currently running services.

Link to comment
Share on other sites

Thanks for the reply.

The SC command is very helpful.

I have managed to Lock the services Database using SC Lock.

But this only applys when the window is left open.

Is it possible to make this change current, I would imagine, on a restat, even if you were to use a bat file at startup, the lock would only apply once all the services had been loaded.

I.e. if I install service pack with Lock on, then it restarts any services that were held down by the lock would then be able to start, then the lock would come in to play.

Also could you go into more detail concerning parsing the Event Log.

Ie how would I go about doing this?



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...