LoginSignup
1
1

More than 3 years have passed since last update.

Windowsサービスの依存関係の解除方法

Posted at

はじめに

サービスの依存性解除は、予期せぬ不具合が発生する可能性もあるため注意すること。

サービス依存関係設定

サービスのステータスを確認し、依存関係を解除する。

サービスステータス確認

サービス名はサービスのプロパティから確認できる

sc qc XX(サービス名)

依存関係のサービスを確認

「DEPENDENCIES」に依存しているサービスが表示がされるのを確認する。

依存関係解除

以下のコマンドを実行し、依存関係を設定する。
xxで指定したものが、依存関係となる。
依存関係を解除したい場合は、解除したいサービス以外を指定する。

sc stop XX
sc config XX depend=xx/xx/xx/

サービス自動起動

サービスの起動と自動起動を設定する

sc config XX start= auto
sc start XX
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1