• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1424
  • Last Modified:

can't setup password with sc config svc1 obj= adm1 password= pwd1

I could not setup the pwd1 for service svc1 under user adm1 sc config ..... However if I use the GUI, I was able to do it.
Does anyone know the reason?
0
jl66
Asked:
jl66
  • 4
  • 4
5 Solutions
 
jl66Author Commented:
With sc config .... the password is setup the wrong one. I crosschecked it. What should I do to correct this?
0
 
UsurpatirusCommented:
may be you lost Domain?
sc config svc1 obj= ".\adm1" password= "pwd1"
0
 
QlemoDeveloperCommented:
Does the password contain any special characters like &!% ?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
jl66Author Commented:
Thanks for info. The close real situation like this
sc config abcabcabcabcabcabc obj= aaa\abcabcabc password= xyzxyzxyz111
Only one special character / is in obj. I noticed that if the password was not set or not set right.
Any idea??
0
 
QlemoDeveloperCommented:
You do not change the obj, do you? If so, there is a bug - the account needs to get extended privileges to be able to serve as a service account. If you set account info with GUI, that privilege is given automatically, but not with sc.

Else I cannot see any potential problem in your command.
0
 
jl66Author Commented:
Thanks for the update. I do need to change obj. Can we give the extended privilege to the account before doing anything? how to change it?
0
 
QlemoDeveloperCommented:
You can do this with Local Security Policy editor (and analogous for Domain and Domain Controller), or via commandline with ntrights (contained in W2003 Resouce Kit Tools, http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en).

ntrights +r SeServiceLogonRight -u aaa\abcabcabc
sc config abcabcabcabcabcabc obj= aaa\abcabcabc password= xyzxyzxyz111
0
 
QlemoDeveloperCommented:
For available privileges and rights, see http://technet.microsoft.com/en-us/library/dd277460.aspx, as the help of ntrights does only show privileges, and no rights.
0
 
jl66Author Commented:
Qlemo, you are excellent.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now