2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windowsでレジストリの追加or更新をコマンド(bat)で実行

Last updated at Posted at 2022-12-28

やり方

『管理者権限で開いたコマンドプロンプトで実行』などの 管理者権限が必要

サンプルコード
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t "REG_SZ" /d "1" /f

サンプルコードの詳細

reg レジストリ操作コマンド。
add "レジストリーフォルダーパス" 無ければ追加、存在したら更新。(パスの末尾に\は不要)
/v "項目の名前" 『value』の『v』。
/t "項目の種類" 『type』の『t』。
/d "項目の値" 『data』の『d』。
/f 確認を挟まずに強制的に処理。『force』の『f』。

参考サイトさん

バージョン

Windows 10 Pro 21H2 OSビルド 19045.2364

2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?