Here is the Action Script Code:
if {((not exists key “HKEY_USERS.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel” of registry) OR (not exists value “{59031a47-3f72-44a7-89c5-5595fe6b30ee}” of key “HKEY_USERS.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel” of registry) OR (value “{59031a47-3f72-44a7-89c5-5595fe6b30ee}” of key “HKEY_USERS.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel” of registry != 0))}
regset “[HKEY_USERS.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]” “{59031a47-3f72-44a7-89c5-5595fe6b30ee}”=dword:0
endif
To make a change that applies to all User Profiles, I’d recommend using Local Group Policy (example https://bigfix.me/fixlet/details/26933), or Startup/Logon Script, or ActiveSetup (example Action That Runs Once per User ) , or (worst-case) use ‘reg load’ to load the ntuser.dat to a new Hive, update that Hive, and then use ‘reg unload’ to unload the ntuser.dat for the Default User profile.
Thank you for your quick response, this solved my issue and it took doubling the braces in several locations to make it work, here is the final code that worked:
if {((not exists key "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" of registry) OR (not exists value "{{59031a47-3f72-44a7-89c5-5595fe6b30ee}}" of key "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" of registry) OR (value "{{59031a47-3f72-44a7-89c5-5595fe6b30ee}}" of key "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" of registry != 0))}
regset "[HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]" "{{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:0
endif