Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 486
  • Last Modified:

Scripting Home Page in IE

Hey Experts

The scenario is this :-

A Terminal Server with about 100 user profiles already registered, and a good few more to come.
A domain server behind it with GPO in place to disable the IE7 "first run" page
A Sharepoint server next to that, with individual sites for each user login.

Is it possible, via the URL setting in GPO, to script the setting of a user's home page, based on their login ID ?  

Also, for new users, the IE7 first run page would be disabled, but can we dynamically set their home page path as well ?

Basically, the home page setting would be "http://sharepointserver/loginID"

Please let me know if this is possible, or if there is any other way to script this kind of thing ?

Many thanks

0
DoveSupport
Asked:
DoveSupport
  • 5
  • 3
  • 2
2 Solutions
 
Gene_CypCommented:
IE stores its homepage as regkey. Change your regkey and it will automatically set the IE homepage. (does not work for other browsers such as Firefox)


IE Regkey:
HKCU / HKLM "Software\Microsoft\Internet Explorer\Main" "Start Page"

0
 
DoveSupportAuthor Commented:
Ok, so if I create a vbs login script, to lookup the site address, based on the users login ID, I should then be able to write to the registry under HKCU ?

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Gene_CypCommented:
The strength of IE is that it doesn't even need the User.

All you need is to change the value in that regkey. You don't even need VB.

You can do the following:

@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

Save that in a text file. Save the text file as:

UpdateIE.bat (or whatever batch file you want to call it as)

You can then call it like this:
UpdateIE "http://sharepointserver/loginID"
0
 
Gene_CypCommented:
If that doesn't fit your plans, try this:



RegRead, HP, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\\Microsoft\\Internet Explorer\\Main, Start Page

Ifequal, HP, http://sharepointserver/loginID, goto end

RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\\Microsoft\\Internet Explorer\\Main, Start Page, http://sharepointserver/loginID

END:
exit
0
 
DoveSupportAuthor Commented:
Ok, I'm getting the picture.

The problem I face (and I don't know if this is clear in my original post) is that each user profile has a different home page.

The home page for user 1 is "http://sharepointserver/user1"
The home page for user 2 is "http://sharepointserver/user2"

etc etc, so I need to dynamically assign the ending part of the url.  I thought that this is best done as they log in . . .

Is this possible under the suggestions you made ?
0
 
sam0x01Commented:
Try adding this to your login script
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /t REG_SZ /v "Start Page" /d "http://sharepointserver/%USERNAME%" /f
0
 
sam0x01Commented:
Unless your sharepoint server is called sharepointserver, you just need to edit the text in italics
0
 
Gene_CypCommented:
You can simply append the %username% parameter to the common url part.

Where it said loginID, replace that with the %username% value. (just remember the forward slash:
http://sharepointserver/  )
0
 
DoveSupportAuthor Commented:
Many thanks guys. You have both helped me a lot, therefore points equally awarded.

Script is in place and is working !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now