Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move windows 10 users 8 98
AWK use math to add new field - single file 5 56
Korn Shell Script - Is there a way to LOOP it? 13 65
Domain Controller/ Old server 9 68
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 …
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.
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

737 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