[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

KIX logon script writes IE homepage in registry - does not work until 2nd logon for users

Posted on 2011-09-14
3
Medium Priority
?
928 Views
Last Modified: 2012-05-12
Experts,

I've been wishing our enterprise to convert it's KIX logon script to something more modern, but it's what I'm stuck with for the moment for logon scripts.

In each of the specific sites, we have the following registry key being written via KIX:

WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" , "Start Page", "http://homepage.com", "REG_SZ")

The script works great, and writes the individual sites to remap their IE homepage to the values I have set...  But on initial logon the value is written - but IE doesn't use it.  It continues to use whatever the default profile had set for the users.  On the 2nd logon for the user, it's able to load that registry key for IE and the correct homepage is shown.

I know it has something to do with the profile already having loaded that registry key...  But would anybody happen to know if there's a technique I could use that would reload the key in question for all the users when they log in for the first time?

-And don't get me started on not using GroupPolicy.  Trust me, I know.
0
Comment
Question by:usslindstrom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Amitabh Singh earned 2000 total points
ID: 36541311
Hi

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
 
LVL 8

Expert Comment

by:Amitabh Singh
ID: 36541323
reg add is a DOS command and /f will force overwriting the existing registry entry without prompt
so it will be best for you
0
 
LVL 5

Author Closing Comment

by:usslindstrom
ID: 36546754
Thank you for the assistance.  I think that will solve the issue too.

For those interested though, please note that my scripting environment is KIX, and in order to accomplish a dos shell, it needs to be prefaced with:

SHELL " **** "
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question