January 14, 2008

Change service configuration using CLI

How to modify service configuration using Command Line Interface?

Microsoft provide sc.exe to help us.

As example, I want to change messenger service status from disable to automatic started. Currently, messenger service is disabled by microsoft because of security reason.

1. The following command to enable Messenger
> sc config Messenger type= interact type= own start= auto binPath= "C:\WINDOWS\system32\svchost.exe -k netsvcs"
2. This is to start the service.
> sc start Messenger

To see other options, just enter command sc /?

No comments:

Cerita BukuMuka

Cari dalam cerita ini