I am wondering is there a way to refresh the HKLM registry key HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer - without restarting the shell.
Try sending the WM_SETTINGCHANGE message with wparam=0 and lparam="Policy" to the taskbar, not sure if this can be done with scripting