Previous Posts


Defragment system files

Redirect the favorites folder

Restore the RUN command in Vista

AutoRun for the Command Prompt

Elevate processes from the command prompt in Vista...

Connect Using Dialup Modem - Disabled (Why?)

Set default settings for Excel 2003

Update the Windows Path Completion feature

Set the default font in Microsoft Word XP, 2003, a...

Windows Vista User Account Control (UAC)



Archives

May 2005

January 2006

April 2006

May 2006

June 2006

July 2006

September 2006

October 2006

November 2006

December 2006

January 2007

February 2007

March 2007

April 2007

May 2007

June 2007

July 2007

August 2007

September 2007

October 2007

November 2007

December 2007

January 2008

February 2008

March 2008

April 2008

May 2008



Subscribe to our Feed:






Set Multiple home pages for IE 7 from the command line

After creating the IE 7 Tweaking tool we seem to get loads of questions about IE 7. One of the latest was about setting multiple home pages in IE 7 from the command line. Hmm. Before someone asked I never had thought about it.

If you look into the settings of IE 7, you can easily add more than one home page. One URL for each line. When you open IE, these will all be launched in their own tab.

Multiple home pages from the command line

I added some websites, and then I dug into the registry to see what was changed. Here is a snapshot:

Multiple home pages from the command line registry settings

That there are actually two parts to the home page setting. They are both under HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main

The first website to be displayed is stored under the string value named:
Start Page

The rest of the websites displayed are stored in a string array value named:
Secondary Start Pages

The first string is very easy to script and change.

The second is not as simple. This is because it is an array of strings separated by NULL characters, and terminated with two NULL characters.

There are a few ways to do this. One way would be to update one machine with all of your desired settings...and create an exported reg key. You could then use regedit in silent mode to import the settings on other machines.

This has its downfalls - if not done right you could accidentally pull in other values you don't want thrown around to every machine.

Another way would be to use VB Script. I wanted something cleaner, and an excuse to start using our new internal API for writing cross-compilable software (64 and 32 bit). I came up with this little command line program named IESetHomeTabs.exe

Here is how you call it from the command line:

C:>IESetHomeTabs.exe "[URL1]" "[URL2]" "[URL3]"


So if I wanted http://www.intelliadmin.com, http://www.slashdot.org, and http://www.technet.com as my 3 tabs I could call it like this:

C:>IESetHomeTabs.exe "http://www.intelliadmin.com" "http://www.slashdot.org" "http://www.technet.com"


Here are the links for downloading:

i386 Version
AMD 64 Bit Version

We have been looking for a place to order an IA64 machine without seeing the $CALL. I suspect there is a commissioned based sales person on the other side. If anyone knows of a HP or Dell IA64 machine that can be easily ordered...please let me know, and we will then be able to provide an IA64 version of the utility too.


Posted By: Steve Wiseman on Friday, September 28, 2007

Check out our utilities for windows

 



Copyright © IntelliAdmin, LLC, 2008. All Rights Reserved