Solved

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

Posted on 2010-08-27
2
6,626 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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