Forcing Multiple Homepages in IE 7 and Higher
An SBS customer wanted to ensure everyone had Companyweb set as their default homepage, the partners at the firm however wanted to keep MSN. Our compromise was to set both. Below is the solution I came up with.
1. Create a text file
2. Paste the following code into it
<%@ LANGUAGE=”VBSCRIPT” %>
<% response.buffer=true %>
<%
Const navOpenInBackgroundTab = &H1000
Set oIE = Getobject(”",”internetexplorer.application”)
oIE.Navigate2 “http://www.msn.com”
oIE.Navigate2 “http://companyweb”, navOpenInBackgroundTab
oIE.Visible = true
%>
<script language=javascript>
function CloseWindow()
{
window.open(”",”_self”,”");
window.close();
}
</script>
3. Save the file and name it something like homepages.asp
4. Place the homepages.asp file in the C:\InetPub\WWWROOT directory of a server running IIS.
5. Configure the IE homepage in a GPO to point to http://servername/homepages.asp.
When IE launches it will open the designated web pages and close the initial IE window that hosted homepages.asp.
In the event that the user manually navigates to homepages.asp and had other IE Tabs open, then just the tab that launched homepages.asp will close and a new instance of IE will be running with the two homepages.

Add A Comment