Jump to content

regwrite a registry dword value


Recommended Posts

i am looking at a remote pc registry entry

$reg = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Office12-HP4350DTN\PrinterDriverData", "Forms?")

it returns a value of "2173314341"

when i write that value

RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Office14-HP4350DTN\PrinterDriverData", "Forms?", "REG_DWORD", $reg)

the value changes to "2147483648"

any ideas?

Edited by gcue
Link to comment
Share on other sites

It's an unsigned 32-bit value, so the max value is 2^32 - 1 = 4294967295 (4Gig) = 0xFFFFFFFF:

$reg = 4294967295
RegWrite("HKCU\SOFTWARE\AutoIt v3", "TestData", "REG_DWORD", $reg)

:blink:

Edit: Larry already saved it! ;)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...