Tech Blog

Random Tech Commentary & Solutions By Mark D. MacLachlan

Subscribe to Tech Blog


Welcome to my technical blog.  I confess I don't update this site very frequently, but this is where you will find some technical commentary and creative solutions to technical problems I have encountered.  I hope you find the information useful, if you do then please consider supporting the Spider's Parlor by purchasing the Admin Script Pack, other Parlor tools or simply by making a donation.



Support The Parlor

Archive for the ‘Group Policy’ Category

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.

No responses yet