次の方法で共有


Sc querylock

 

Applies To: Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, Windows Server 2003 with SP2, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012, Windows Server 2003 with SP1, Windows 8

Queries and displays the lock status for the Service Control Manager database.

For examples of how to use this command, see Examples.

Syntax

sc [<ServerName>] querylock

Parameter

Parameter

Description

<ServerName>

Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.

/?

Displays help at the command prompt.

Examples

To display the lock status for the Service Control Manager database on the local computer, type:

sc querylock

Additional references

Command-Line Syntax Key