Solved

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

Posted on 2009-05-15
9
1,399 Views
Last Modified: 2013-11-29
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
Comment
Question by:jl66
  • 4
  • 4
9 Comments
 

Author Comment

by:jl66
Comment Utility
With sc config .... the password is setup the wrong one. I crosschecked it. What should I do to correct this?
0
 
LVL 2

Assisted Solution

by:Usurpatirus
Usurpatirus earned 20 total points
Comment Utility
may be you lost Domain?
sc config svc1 obj= ".\adm1" password= "pwd1"
0
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 480 total points
Comment Utility
Does the password contain any special characters like &!% ?
0
 

Author Comment

by:jl66
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 480 total points
Comment Utility
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
 

Author Comment

by:jl66
Comment Utility
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
 
LVL 68

Accepted Solution

by:
Qlemo earned 480 total points
Comment Utility
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
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 480 total points
Comment Utility
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
 

Author Closing Comment

by:jl66
Comment Utility
Qlemo, you are excellent.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now