I haven't tried testing your code, but at first glance you haven't set VALUEON and VALUEOFF for your registry setting.
You can see something similar here..
http://www.gpanswers.com/faq/?id=14
heres my adm what am i doing wrong
CLASS USER
CATEGORY "Software\Microsoft\Windows\CurrentVersion\Policie s\Explorer"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Policie s\Explorer"
POLICY "NoAddPrinter"
PART "NoAddPrinter"
NUMERIC
VALUENAME "NoAddPrinter"
END PART
END POLICY
END CATEGORY
and also it is not showing up in the settings report
and the name is showing up as
Software\Microsoft\Windows\CurrentVersion\Policies \Explorer in GPMC
thanks CHEMICAL
I haven't tried testing your code, but at first glance you haven't set VALUEON and VALUEOFF for your registry setting.
You can see something similar here..
http://www.gpanswers.com/faq/?id=14
thanks that link and your suggestion worked![]()