Solved

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

Posted on 2011-09-14
3
920 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 500 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
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…

705 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