regset64

Regset64 uses the same syntax as the regset command, but places a call to Wow64DisableWow64FsRedirection before launching the 64-bit version of Regedit to set the registry. This allows you to use the native 64-bit registry to set a registry key to the given name and value. If the key doesn't already exist, this command creates the key with this initial value.

Syntax

regset64 "<registry key>" "<value name>"=<value>

Where registry key is the key of interest and value name is the key value to set to value. These values are entered just as they are in a REGEDIT4 registry file, in keeping with the rules for Regedit, the Windows program that edits the registry. String values are delimited by quotes, and the standard 4-byte integer (dword) is identified using dword: followed by the numeric value entered in hexadecimal (with leading zeroes) as shown below.

Examples

regset64 "[HKEY_CURRENT_USER\Software\Microsoft\Office\9.1\Word\Security]"
    "Level"=dword:00000002

This example sets the Level value of the specified registry to a double-word 2.

regset64 "[HKEY_CURRENT_USER\Software\BigCorp Inc.]" "testString"="bob"

This example sets the testString value of the specified registry key to bob.

regset64 "[HKEY_CLASSES_ROOT\ShellScrap]" "AlwaysShowExt"="" 

This example clears the data of the specified registry value.

Note:

This command is Windows-only. It will cause an action script to terminate on a UNIX agent.

Notice in these examples that square brackets [ ] are used to enclose the name of the registry key. Again, this is in keeping with the rules for REGEDIT4 registry files. This syntax is necessary for the RegSet command, but not for registry Inspectors.

When you use the regset64 command, keep in mind that the IBM BigFix Client dynamically builds the .reg file that you would have had to create manually to update the registry and then it executes that resulting .reg file for you. One of the rules of the .reg file is that any \'s in the value field need to appear as double slashes, that is \\.

So if you were trying to assign the value SourcePath2 of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion to c:\I386, the command that you would define would look like this:

regset64 "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]" 
   "SourcePath2"="c:\\I386"
regset64 "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]" 
   "SourcePath2"={escape of "c:\I386"}

The last example uses the escape relevance clause to automatically convert backslashes to double backslashes.

If the specified key doesn't already exist, it will be created by this command.

Version 6.0 and above -- Windows Only