Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SQLSERVERAGENT NT Service

Author  Topic 

tgvBuildmaster
Starting Member

1 Post

Posted - 2007-05-22 : 17:37:34
This may be more of an IT question, but I hope someone here will have the answer.

I am trying to change the "Log on as" for SQLSERVERAGENT NT Service through Windows Registry. I am able to find HKLM\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT\ObjectName and change it but I dont know how to specify a password to go with it. If I simply change it to .\Administrator (from Local System) it errors out.

Ideally I would like to script this so I can change the logon without having to go though the Services Control Panel or SQL Management Studio.

Thanks.


Mark

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-22 : 22:49:02
OS handles local system password, you can't get it.
Go to Top of Page
   

- Advertisement -