?
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
?
923 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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

770 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