Link to home
Start Free TrialLog in
Avatar of peparsons
peparsons

asked on

Setting the same Internet Explorer Home Page on a specific PC for all users.

I want to force the Internet Explorer Home Page to be the same for all users when they use one specific PC on the network.  They can set it to be whatever they like on the other PCs but I need to keep it the same on this one.
How do I do it?
Thank you
Avatar of Debsyl99
Debsyl99

Hi try this
Run regedit from a command prompt and navigate to the following key
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main
First right click on main and select export to back up the registry key - selected branch only so if you need to you can restore it.
Then delete the following key only : Start Page
Then browse to the following key branch
HKEY_ LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main
Double-click on the key Start Page and set it to the home page you want

Hopefully that should do it so test it out,
Deb :))
Avatar of peparsons

ASKER

Deb
So, what is happening here.  If there is an entry in HKEY_CURRENT_USER does that override the entry in HKEY_ LOCAL_MACHINE.  If there isn't  one in the HKEY_CURRENT_USER then it just uses the one I have set in HKEY_LOCAL_MACHINE?

I have done that and it does use the home page set in HKEY_LOCAL_MACHINE.  However if someone sets a new home/start page then it recreates the HKEY_CURRENT_USER entry.

Obviously it would be nice if the users could not alter the home page but I imagine that would need to be done with group policies and I don't really understand them.  How about running a batch file in Startup that sets the HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\Start Page?  I don't know how you set registry files in a batch file.

Any further ideas?
"If there is an entry in HKEY_CURRENT_USER does that override the entry in HKEY_ LOCAL_MACHINE" - yes it does - but if they're just changing it back then no dice.

Are the users logging on to this pc local admins? If not you could either enable the local policy settings of the pc - or if it's on a domain apply a group policy. It's fairly straighforward - and easier than running a batch file at startup. Let me know what your setup is and I can step you through it.
The people logging on are domain admins.  I don't know about local admins.  I think that all domain admins are local admins.  It is on a domain.  I would not want to apply a group policy to all the users though because I would like them to have freedom on the other PCs.  Can you  set a policy on the server that will just apply to this specific PC (psa008 is the name of the PC)?
If they're domain admins then it's going to be very difficult if not impossible to restrict them - you'd need to change their status to stop them changing this page.
Best you can do is this: An ad users and computers Create an OU for this pc - a sub OU will do if it's already in it's own OU.
Move the pc into this OU and then set the following policy that you link to that OU - Computer Configuration - Administrative Templates - Windows Components - Internet Explorer - Internet Control Panel - Set the policy to disable the general page to enabled. Check that domain computers have the right to read and apply this policy. Then run gpupdate /force from a command prompt on the pc. Then remove the start page from the HKCU registry key and set the HKLM key as described previously. The policy setting applies to the computer, not the user so they shouldn't be able to change it back. However if they're domain admins it probably won't be long before they're in ADUC disabling that policy!
I'm assuming that they must need to be domain admins - if so then unless you want to start creating new accounts for them and delegating parts of AD for them to manage whilst excluding this one - ultimately other than slowing them down there'd not a lot you can do.
OK, what about the batch file in startup?  Do you know how to write such a batch file?

ASKER CERTIFIED SOLUTION
Avatar of Debsyl99
Debsyl99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry - above should read -
Then in active directory users and computers - double click on their user account - select the profile tab and enter the name of the bat file you just created in the logon script box - note you don't need to put a path.
Deb
>Yep - you can run a batch file at logon - but they can still change it by editing the logon scripts - they're domain admins.
It doesn't matter.  They wouldn't work it out even if it were on the desktop.

>[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]

>"Start Page"=-

Does that delete the current user key like we did previously? Why are we doing that?  Why don't we just set the current user key to the start page that we want and leave out the....

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]

"Start Page"="http://yourpage.com"

The stuff that you wrote about the profile paths.  Am I right in thinking that if I do it that way, it will run on every PC that they use?  (That would not be what I wanted. I would have to put it in Startup.)
I have put these files...
ie.Reg
startup.bat
....in this folder:
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
If I go into that folder in WIndows Explorer and run the batch file, it works beautifully.

When I log in as the user, however, I get these error messages:
1:
Are you sure you want to add the information in
C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Startup\ie.Reg to the registry?
2:
Cannot import ie.Reg: Error opening file.  There may be a disk or file system error.

Do you know why that is?
Sorry - been tied up this afternoon. You'd need to specify the path to ie.reg in the batch file startup.bat so paste this in instead

regedit.exe "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ie.reg"

Note you need the "" as  there are spaces in the folder names. The above command will give you the prompt and tell you it's been successful. When you run it for your dom admins use the /s switch to prevent the prompt and allow the script to run silently ie.

RegEdit.exe /s "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ie.reg"

Let us know how you get on,
Deb :))


>Sorry - been tied up this afternoon.
Please don't apologise.  You have been so helpful.

I did what you suggested:
RegEdit.exe /s "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ie.reg"
I no longer get this error message:
Cannot import ie.Reg: Error opening file.  There may be a disk or file system error.
...but I still get the question:
Are you sure you want to add the information in
C:\DOCUME~1\ALLUSE~1\STARTM~1\Programs\Startup\ie.Reg to the registry?
And then it puts up a message telling me it has been successful and it waits for me to click on the OK button.
I actually copied and pasted your line in.  Is /s definitely the right switch?
If I browse to the startup.bat file and double click on it I see the black command window but no question.  If I edit startup.bat and remove the /s and double click on it again, I get asked the question.  Why is it different when you have it run in Startup?
OK, I think I've worked out what the problem is.  It's running it twice: once when it comes to ie.Reg and then silently when it comes to startup.bat

I'll move ie.Reg out of the way.
Yup - I am a dunce - that's exactly what's happening. Move ie.reg to another folder - say

C:\Documents and Settings\All Users

Then leave startup.bat in your startup folder and change the line in it to:

regedit.exe /s "C:\Documents and Settings\All Users\ie.reg"

and it'll work fine

Deb

Thank you very much for all your help.  It works really well.

Thanks - ur very welcome - have a good weekend :)