How Can We Help?

Interact with the Windows registry

You are here:
< Back

Syntax

In order to interact with the windows registry, the “launch command” command needs to be used with the following syntax.

    a) Read a key
            REG QUERY [ROOT\]RegKey /v ValueName [/s]
    b) Add a key
            REG ADD [ROOT\]RegKey /v ValueName [/t DataType] [/d Data] [/f]
    c) Delete a key
            REG DELETE [ROOT\]RegKey /v ValueName [/f]

DataType values :

  • REG_SZ
  • REG_MULTI_SZ
  • REG_EXPAND_SZ
  • REG_DWORD
  • REG_BINARY
  • REG_NONE

ROOT values :

  • HKLM = HKey_Local_machine
  • HKCU = HKey_current_user
  • HKU  = HKey_users
  • HKCR = HKey_classes_root

Exemple  n°1 : Show all keys in the provconnect device agent service folder : 

reg query  “HKLM\SYSTEM\CurrentControlSet\Services\proVconnect Device Agent  Service”

Exemple n°2 : Show a specific  key in the provconnect device agent service folder : 

reg query “HKLM\SYSTEM\CurrentControlSet\Services\proVconnect Device Agent Service” /v ImagePath

Exemple n°3 : Add  a key in the  provconnect device agent service folder :

reg add  “HKLM\SYSTEM\CurrentControlSet\Services\proVconnect Device Agent  Service” /v NewValue /t REG_SZ /d  NewValue /f

Exemple n°4 :Delete a key in the  provconnect device agent service folder :

reg delete  “HKLM\SYSTEM\CurrentControlSet\Services\proVconnect Device Agent  Service” /v NewValue /f

Categories: