cancel
Showing results for 
Search instead for 
Did you mean: 

SetOption is changing a REG_DWORD to a REG_SZ

SOLVED
Highlighted
Ryu
Contributor

SetOption is changing a REG_DWORD to a REG_SZ

I am at least a little familiar with coding, but I haven't really done much of it in 10-ish years, so I am very rusty.  When running the following code snippet (I'm using python) in a test, instead of just changing the subkey to the selected value, it also changes the subkey type from REG_DWORD to REG_SZ.  Can someone please tell me what am I doing wrong, here?  Thanks!

 

def registryChange():
key = Storages.Registry("SOFTWARE\\WOW6432Node\\folder", HKEY_LOCAL_MACHINE)
key.SetOption("SyslogToFile", "1")

1 ACCEPTED SOLUTION

Accepted Solutions
Ryu
Contributor

Re: SetOption is changing a REG_DWORD to a REG_SZ

Never mind - I figured it out.  I need to use key.SetOption("SyslogToFile", 1) instead of key.SetOption("SyslogToFile", "1").  Smiley Happy

View solution in original post

1 REPLY 1
Ryu
Contributor

Re: SetOption is changing a REG_DWORD to a REG_SZ

Never mind - I figured it out.  I need to use key.SetOption("SyslogToFile", 1) instead of key.SetOption("SyslogToFile", "1").  Smiley Happy

View solution in original post

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors