で変更登録前に通知すbat/.cmdスクリプト?
-
02-07-2019 - |
質問
この変更は、レジストリ値(文字列またはDWORD)。bat/.cmdスクリプト?
解決
利用できる字コマンドです。から http://www.ss64.com/nt/reg.html:
Syntax:
REG QUERY [ROOT\]RegKey /v ValueName [/s]
REG QUERY [ROOT\]RegKey /ve --This returns the (default) value
REG ADD [ROOT\]RegKey /v ValueName [/t DataType] [/S Separator] [/d Data] [/f]
REG ADD [ROOT\]RegKey /ve [/d Data] [/f] -- Set the (default) value
REG DELETE [ROOT\]RegKey /v ValueName [/f]
REG DELETE [ROOT\]RegKey /ve [/f] -- Remove the (default) value
REG DELETE [ROOT\]RegKey /va [/f] -- Delete all values under this key
REG COPY [\\SourceMachine\][ROOT\]RegKey [\\DestMachine\][ROOT\]RegKey
REG EXPORT [ROOT\]RegKey FileName.reg
REG IMPORT FileName.reg
REG SAVE [ROOT\]RegKey FileName.hiv
REG RESTORE \\MachineName\[ROOT]\KeyName FileName.hiv
REG LOAD FileName KeyName
REG UNLOAD KeyName
REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/v ValueName] [Output] [/s]
REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/ve] [Output] [/s]
Key:
ROOT :
HKLM = HKey_Local_machine (default)
HKCU = HKey_current_user
HKU = HKey_users
HKCR = HKey_classes_root
ValueName : The value, under the selected RegKey, to edit.
(default is all keys and values)
/d Data : The actual data to store as a "String", integer etc
/f : Force an update without prompting "Value exists, overwrite Y/N"
\\Machine : Name of remote machine - omitting defaults to current machine.
Only HKLM and HKU are available on remote machines.
FileName : The filename to save or restore a registry hive.
KeyName : A key name to load a hive file into. (Creating a new key)
/S : Query all subkeys and values.
/S Separator : Character to use as the separator in REG_MULTI_SZ values
the default is "\0"
/t DataType : REG_SZ (default) | REG_DWORD | REG_EXPAND_SZ | REG_MULTI_SZ
Output : /od (only differences) /os (only matches) /oa (all) /on (no output)
他のヒント
@Franci Penov-変更 は 可能という意味の 上書き と /f
, 例えば
reg add "HKCU\Software\etc\etc" /f /v "value" /t REG_SZ /d "Yes"
はい、できるスクリプトを使用 reg
コマンドです。例:
reg add HKCU\Software\SomeProduct
reg add HKCU\Software\SomeProduct /v Version /t REG_SZ /d v2.4.6
こうした成長の鍵 HKEY_CURRENT_USER\Software\SomeProduct
, 追加の文字列値が".phpがv2で増えたファイルです。4.6"名前"バージョン"をキーに対する
reg /?
は、詳細を入力します。
こうしてできる変更登録がな無迅速かつも忘れずに管理者権限で実行して
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\etc\etc /v Valuename /t REG_SZ /d valuedata /f
以下は実例の設定internet explorerとしてデフォルトのブラウザ
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice /v ProgId /t REG_SZ /d IE.HTTPS /f
/f力:力を更新せずに促す"価値が存在し、上書き Y/N"
/dデータ実際のデータを店舗としての"文字列",integerなど
/v値:値の名前例ProgId
/tのデータ型:REG_SZ(デフォルト)|REG_DWORD|REG_EXPAND_SZ| REG_MULTI_SZ
学読の設定または削除のレジストリキーと値の保存および復元すから。REGファイルです。から こちらの
できる。regファイルおよび通話の開始します。きの輸出は一部のレジストリとしregファイルの形式です。
形式はこちら
http://support.microsoft.com/kb/310516
これを実行Windowsマシンをインストールせずにその他のソフトウェアです。
そうです。利用できるreg.exe 付属のOS、追加、削除、またはクエリのレジストリ値です。Reg.exe なって明示的に変更コマンドで行うことができるのでによって削除します。
のほか、reg.exe高く評価することをお勧めのチェックアウトもpowershell、その大き、そのレジストリ。