Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to update internet options/home page using vbscript?

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
hi,
i have to make sure that pc's always have a certain website as home page. can this be done automatically using vbscript?
thanks
 
thanks much.
unfortunately none of those worked the way i wanted.
the first link by drbob put me on the right track though.
in
HKEY_CURRENT_USER\Software\Microsoft\" & _
"Internet Explorer\Main\Start Page
there are two entries:
one is start page the other one is secondary pages
i had to do this to update machines nightly:
Code:
changeHomePage  "[URL unfurl="true"]http://website1"[/URL]  
changeHomePage2 "[URL unfurl="true"]http://website2"[/URL] 

    Sub changeHomePage(byval URL)	
 	set objShell=Wscript.CreateObject("Wscript.Shell")
 	objShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\" & _
 			   "Internet Explorer\Main\Start Page", URL, "REG_SZ"
     end sub 

     Sub changeHomePage2(byval URL)	
 	set objShell=Wscript.CreateObject("Wscript.Shell")
 	objShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\" & _
 			   "Internet Explorer\Main\Secondary Start Pages", URL, "REG_SZ"
     end sub
it worked perfectly
thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top