Solved

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

Posted on 2010-08-27
2
6,242 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 500 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

17 Experts available now in Live!

Get 1:1 Help Now