Solved

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

Posted on 2011-09-14
3
899 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
  • 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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.
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now