[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Service Control Manager - Database is locked, I need to unlock it

Posted on 2010-08-27
2
Medium Priority
?
7,009 Views
Last Modified: 2013-08-22
I have a server where the Service Control Manager database has been locked for several days. I've been doing some reading and it looks like it is supposed to lock/unlock when starting services, but unfortunately ours remained locked somehow.

From my research I've found that there is an unlock procedure using the U parameter, but I can't find syntax anywhere. The lock command is 'sc lock'. Does anyone know the unlock command? Can I harm anything by unlocking it after it has entered a frozen locked state?

Thanks in advance!
0
Comment
Question by:tjkre
2 Comments
 
LVL 8

Accepted Solution

by:
SylvainDrapeau earned 2000 total points
ID: 33547750
Hello !

All you need to do is type "SC LOCK" at the command prompt and type U at the message : "To unlock via API, press u:". If you receive "[SC] UnlockServiceDatabase SUCCESS", you should be ok.

Next, you need to find why the Service Database was locked.

Check the event log for a service set to start automatically but that failed to initialize correctly.

Syldra
0
 

Expert Comment

by:ITSIntel
ID: 39431486
sc lock is not working for me :(
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline

834 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