Windows セキュリティ構成エディター コマンド ツール
secedit
- C:\Windows\system32\SecEdit.exe /?
Output:
このコマンドの構文は次のとおりです:
secedit [/configure | /analyze | /import | /export | /validate | /generaterollback]
The syntax of this command is:
secedit [/configure | /analyze | /import | /export | /validate | /generaterollback]
Return Code: 0
secedit
管理者権限(Administrator)
- C:\Windows\system32\SecEdit.exe /analyze
Output:
現在のシステムの設定をデータベースに保存されているベースラインの設定と照らしあわせて分析することができます。分析結果はデータベースの別の領域に保存され、セキュリティの構成と分析スナップインで参照できます。
このコマンドの構文は次のとおりです:
secedit /analyze /db ファイル名 [/cfg ファイル名 ] [/overwrite] [/log ファイル名] [/quiet]
/db ファイル名 - 分析に使用するデータベースを指定します。
/cfg ファイル名 - 分析を実行する前にデータベースにインポートするセキュリティ テンプレートを指定します。セキュリティ テンプレートはセキュリティ テンプレート スナップインを使用して作成します。
/log ファイル名 - ファイル名 - 構成処理の状態のログを記録するファイルを指定します。指定されない場合、構成処理に関する情報のログは %windir%\security\logs ディレクトリにある scesrv.log ファイルに記録されます。
/quiet - ユーザーに確認を求めずに分析処理が行われるように指定します。
例:
secedit /analyze /db hisecws.sdb
パスが指定されない場合は、すべてのファイル名に対して現在のディレクトリが使用されます。
Allows you to analyze current systems settings against baseline settings that are stored in a database. The analysis results are stored in a separate area of the database and can be viewed in the Security Configuration and Analysis snap-in.
The syntax of this command is:
secedit /analyze /db filename [/cfg filename ] [/overwrite] [/log filename] [/quiet]
/db filename - Specifies the database used to perform the analysis.
/cfg filename - Specifies a security template to import into the database prior to performing the analysis. Security templates are created using the Security Templates snap-in.
/log filename - Specifies a file in which to log the status of the configuration process. If not specified, configuration processing information is logged in the scesrv.log file which is located in the s%windir%\security\logs directory.
/quiet - Specifies that the analysis process should take place without prompting the user for any confirmation.
Example:
secedit /analyze /db hisecws.sdb
For all filenames, the current directory is used if no path is specified.
Return Code: 1
C:\Windows\system32\SecEdit.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 41984bytes |
| Creation Time | 2019/12/07 18:09:07 |
| LastWrite Time | 2019/12/07 18:09:07 |
| ProductVersion | 10.0.19041.1889 |
| FileVersion | 10.0.19041.1889 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | fe961d8056062e047bcfbd77ebd431b7 |
| SHA1 | 2cd7718827c793f8ca53c9fe0cc11d09e450ea67 |
| SHA224 | 6e7852ab9e39c7f5566ed75a841c65500898c9f777c00edc620b3274 |
| SHA256 | 58348e21fb9ae1582e68aa07bf21f87d58db03fe12123b0df5bfb3a7e168db26 |
| SHA384 | fa57eee9d6f92dcad9c55c6b62ed419ab2908222c94f94ae7ac058b5f76b479f1a58ab23bc5bd7fa5a185f452e643e31 |
| SHA512 | c4ee99ba9ad4e3b725404e564628196a0f68de0c46d267c29fb33007c850a9a79875d007ae12c946e4ba34398b29183327438dc63a23d3f97f8d0702c32b142a |