Previous Posts


Add a new email domain to Exchange 2003

Backup your files using Remote Desktop

Force Windows 2003 to look like XP

Disable the Windows 2003 Shutdown Tracker

New SysInternals Tool: Active Directory Explorer

Can't open this item. There is not enough memory -...

Terabyte hard drives become mainstream

New line of Dell laptops

Hide your last login

Illegal System DLL Relocation - Fix



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 IE default home page from a script

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


Posted By: Steve Wiseman on Tuesday, August 07, 2007

Check out our utilities for windows

 



Copyright © IntelliAdmin, LLC, 2008. All Rights Reserved