mucitbey Posted March 16, 2020 Share Posted March 16, 2020 (edited) 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 March 16, 2020 by mucitbey Link to comment Share on other sites More sharing options...
Subz Posted March 16, 2020 Share Posted March 16, 2020 Just look at help file for RegWrite function, example : RegWrite("HKCU\SOFTWARE\Microsoft\Internet Explorer\Main", "PlaySounds", "REG_DWORD", 1) mucitbey 1 Link to comment Share on other sites More sharing options...
mucitbey Posted March 16, 2020 Author Share Posted March 16, 2020 4 minutes ago, Subz said: Just look at help file for RegWrite function, example : RegWrite("HKCU\SOFTWARE\Microsoft\Internet Explorer\Main", "PlaySounds", "REG_DWORD", 1) I tried this, but it doesn't work. Link to comment Share on other sites More sharing options...
mucitbey Posted March 16, 2020 Author Share Posted March 16, 2020 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. Link to comment Share on other sites More sharing options...
Subz Posted March 16, 2020 Share Posted March 16, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now