HKCU logon script problems
I have a HKCU script that I would like to run for each user when they logon to set the Internet Explorer homepage. The script works but I'm able to get it to run for each user that logs on at the time they log on. Any suggestions would be greatly appreciated.
Answers (2)
This sounds like the type of thing that might be better handled via group policy.
- Run group policy from gpedit.msc or Administrative Tools.
- Click to: User Configuration>Administrative Templates>Internet Explorer
- On the right, click on Disable change home page settings and check Enable.
- Type the home page name, which I assume to be: http://www.itninja.com
- Close to save the settings.
That said, to determine the issue with the script probably means working in some error checking. For a problem like this I would probably have the script generate a log file with each thing it does and the error code returned. That way you can ensure that it is running and that if it is failing the error code should go along way to explaining the issue.
Comments:
-
If I do gpedit can I update all the systems in kbox when they are built to have that home page? - ckubaska 12 years ago
You can use ActiveSetup to run the script for every user.
Comments:
-
True piyushnasa, but active setup will only run once for each user. If the user changes the home page it won't get reset by active setup. You could do it with a HKLM Run key but bkelly has a better solution (in my opinion). - olditguy 12 years ago