Jump to content

Reg write Help.


Recommended Posts

Hi,

How can I add this reg record for Windows 10 Enterprise LTSC 64 bit. to the code I prepared?

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main]
"PlaySounds"=dword:00000001
"Play_Background_Sounds"="yes"

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main]
"PlaySounds"=dword:00000001
"Play_Animations"="yes"

Thanks for your help in advance.

Edited by mucitbey
Link to comment
Share on other sites

RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main', 'Display Inline Images', 'REG_SZ', 'yes')
RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main', 'Play_Animations', 'REG_SZ', 'yes')
RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main', 'Display Inline Videos', 'REG_SZ', 'yes')
RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main', 'Play_Background_Sounds', 'REG_SZ', 'yes')

I found it ok, it worked that way. Thank you. :frantics:

Link to comment
Share on other sites

No problem, you can use the abbreviated versions for the root hive, important when using 32-bit compiled script and want to write to HKEY_LOCAL_MACHINE\SOFTWARE on 64-bit system (see below):

Compiled 32-bit script

  • HKEY_CURRENT_USER\... = HKCU\...
  • HKEY_LOCAL_MACHINE\SOFTWARE\... = HKLM64\SOFTWARE\...
  • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\... = HKLM\SOFTWARE\...

Compiled 64-bit script

  • HKEY_CURRENT_USER\... = HKCU\...
  • HKEY_LOCAL_MACHINE\SOFTWARE\... = HKLM\SOFTWARE\...
  • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\... = HKLM\SOFTWARE\WOW6432Node\...

Also just use RegEdit to get the Reg Type, paramater.

image.png.967b1f1f0935944c3c09739e20c3a1df.png

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...