News, Product Information, and Tips
Check out our free utlities in the downloads section

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

Set IE default home page from a script

by Steve Wiseman on August 8, 2007 · 5 comments

in Windows

Once and a while we visit local customers. It is a great way to see our software working in the real world, and find out what we can do to make our products better. Many times I will be asked to solve an issue (That has nothing to do with our software)

This week while visiting a customer I was asked if there was a simple way to create a batch file (No VB Script) that would reset the default home page of IE 6. For various reasons they could not use Active Directory, nor could they use VB Script.

I started to play around with the command line options of regedit, and discovered it was not going to work. After some research I came across the reg.exe command. It seems like it is built into XP, 2003, and Vista. It is perfect for what I needed.

It allows you to modify/delete keys from the command line. Here is what I came up with:

Update IE Home Page

I saved it as UpdateIE.bat. Now I can simply call it like this:

UpdateIE “http://www.intelliadmin.com”

It updates the local users IE home page, and very easy to add to a login script

(Below is the script source so you can copy and paste it)

@echo off
set key=HKCU\Software\Microsoft\Internet Explorer\Main
set value=Start page
set data=%1
reg.exe add “%key%” /v “%value%” /d “%data%” /f

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

{ 5 comments… read them below or add one }

1 Craig June 2, 2010 at 11:06 pm

What adjustments to this script (which works great for IE8 on Win7) are required to run under Citrix?

2 Chris September 28, 2010 at 8:33 pm

Thanks for the assist.

But your example is a little off and it took me a little while to debug. First, path you showed has spaces (‘Internet Explorer’) So the path should be enclosed in double quotes. Also, the parameters are not delimited correctly. Need to remove the quotes from there. Here is what I got to work:

@echo off
set key=”HKCU\Software\Microsoft\Internet Explorer\Main”
set value=”Start page”
set data=%1
reg.exe add %key% /v %value% /d %data% /f

3 Jan September 30, 2010 at 4:45 pm

So how would I create a shortcut that would change my home and then start explorer?

4 Tim October 5, 2011 at 11:44 pm

And here is how it should actually look:

@echo off
set key="HKCU\Software\Microsoft\Internet Explorer\Main"
set value="Start Page"
set data="%1"
reg.exe add %key% /v %value% /d %data% /f

Note the “” around the %1

5 Steve Wiseman October 6, 2011 at 9:08 am

Hello Tim,

Thanks for taking the time to post this.

Leave a Comment

Category Links - Windows Forum - Exchange Forum