メイン コンテンツへスキップ
サポート
Microsoft アカウントでサインイン
サインインまたはアカウントを作成してください。
こんにちは、
別のアカウントを選択してください。
複数のアカウントがあります
サインインに使用するアカウントを選択してください。

概要

この記事では、MS-DOS バージョン (Scanreg.exe) または Windows バージョン (Scanregw.exe) のレジストリ チェッカー ツールの実行時に指定できるコマンド ライン スイッチについて説明します。

詳細情報

構文

MS-DOS バージョン :


Scanreg.exe [/backup] [/restore] ["/comment=<テキスト>"] [/fix]
Scanreg.exe [backup] [/restore] ["/comment=<テキスト>"] [/fix] [/opt]


Windows バージョン:


Scanregw.exe [/backup] ["/comment=<テキスト>"] [/autoscan] [/scanonly] [filename]

スイッチの説明

次の表に、各コマンド ライン スイッチとその説明を示します。


Switch Description
----------------------------------------------------------------------
/backup Backs up the registry and related files without
displaying any prompts.

/restore Displays a list of available backup files, sorted
by the date and time the backup was created.

"/comment=<text>" Enables you to add a descriptive comment to the
registry backup.

/fix Repairs any damaged portions of the registry, and
optimizes it by rebuilding it without unused space.

/autoscan Automatically scans the registry and backs it up
without displaying any prompts if there is no
backup for that date.

/scanonly Scans the registry and displays a message if any
errors are found. This switch does not back up the
registry.

filename Scans the registry file specified and displays a
message indicating whether or not any errors were
found. This switch does not back up the registry.

/opt The /opt command-line switch causes the
Registry Checker tool to optimize the
registry by removing unused space.

[レジストリ スキャンの結果] ダイアログ ボックスが表示されるのは、コマンド ライン スイッチを指定せずに、Scanregw.exe を実行した場合のみです。 Scanregw.exe の実行時にレジストリ エラーが見つからなかった場合は、現在のレジストリのバックアップ コピーの作成を促すダイアログ ボックスが表示されます。


"/comment=<text>" スイッチは、単独で使用することも、/backup スイッチと一緒に使用することもできます。 たとえば、コマンド プロンプトで次のいずれのコマンドも実行可能です。


scanreg.exe "/comment=this is a registry backup"


scanreg.exe /backup "/comment=this is a registry backup"


最初のコマンドでは、レジストリ チェッカー ツールのグラフィカル ユーザー インターフェイス (GUI) が起動し、レジストリのバックアップを作成するかどうかを尋ねるダイアログ ボックスが表示されます。 2 つめのコマンドでは、レジストリ チェッカー ツールの GUI を起動せずに、レジストリのバックアップ コピーが作成され、コメントが追加されます。


レジストリ チェッカー ツールの関連情報を参照するには、以下の「サポート技術情報」 (Microsoft Knowledge Base) をクリックしてください。

183887 Windows レジストリ チェッカー ツール (Scanreg.exe) について

183603 レジストリ チェッカー ツールの設定をカスタマイズする方法

201655 エラー メッセージ: 良いレジストリを復元しました
レジストリ チェッカー ツールについては、[スタート] ボタンから [ヘルプ] をクリックし、[インデックス] タブをクリックしたら、レジストリと入力してから [レジストリ チェッカー] トピックをダブルクリックします。

ヘルプを表示

その他のオプションが必要ですか?

サブスクリプションの特典の参照、トレーニング コースの閲覧、デバイスのセキュリティ保護方法などについて説明します。

コミュニティは、質問をしたり質問の答えを得たり、フィードバックを提供したり、豊富な知識を持つ専門家の意見を聞いたりするのに役立ちます。

この情報は役に立ちましたか?

言語の品質にどの程度満足していますか?
どのような要因がお客様の操作性に影響しましたか?
[送信] を押すと、Microsoft の製品とサービスの改善にフィードバックが使用されます。 IT 管理者はこのデータを収集できます。 プライバシーに関する声明。

フィードバックをいただき、ありがとうございます。

×