Shortcut Setting Log-On Credentials for Windows Services


Autonomy IDOL with a bunch of fetches (especially the file system fetch/connector with a pair of security services each) can amount to a painful deployment when it comes to configuring the Windows Services.

When everything is installed, you can turn to sc.exe (part of the OS in Windows Server 2003, used to be in the Resource Kit) to help automate the credentials change:

sc.exe config "Service Name" obj= "DOMAINUser" password= "password"

Note that the space after the equals is important.  You can also set the startup type with:

sc.exe config "Service Name" start= auto

A bunch of these in a script can help immensely with deployments.  Run sc.exe by itself on the command-line to see a number of other powerful options (including controlling remote services).

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: