Jump to content

REGWRITE Problems


Recommended Posts

Hello, I am wondering if someone can help out. I am trying to write a registry key value.

Here is the key I want to write

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\P3P\History\mydomain.com

Then a dword value named default after the mydomain.com with a value of 1

I have tried this using the examples in the help file to no avail.

Here is what I tried

RegWrite, REG_SZ, HKEY_CURRENT_USER,Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\P3P\\History\\mydomain.com, Default

Link to comment
Share on other sites

RegWrite, ValueType, RegKey, RegSubKey, ValueName, Value

Similar to the RegRead command, this command will allow you to create or modify a registry key. If the command is successful %ERRORLEVEL% is set to 0, otherwise it is set to 1.

e.g. To change the wallpaper of the current user:

RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\\Desktop, Wallpaper, C:\\Mycrazybitmap.bmp

and this is what's said a few lines above (in the AutoIt 2 help)

... ValueType must be "REG_DWORD" or "REG_SZ".

so I guess it should look/work like this:

RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\P3P\\History\\mydomain.com, Default, 1

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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