Environment
Situation
Resolution
Cause
Additional Information
The issue with apps launching behind others is related to the "HKCU\Control Panel\Desktop\ForeGroundLockTimeout" which is a Windows setting designed to prevent applications from stealing Focus.
ZCM will lower this value to Zero as part of the User Refresh, but changes to this setting are not effective until a login/logout.
Hence a new user logging into a device may not have an effective setting of zero until they logon to Windows again, despite the value appearing to be zero
These Scripts are examples only, please be sure to test and verify any actual scripts used in a production environment.
----------------------------------------------------------------------------------------
reg load HKLM\newuser "C:\Documents and Settings\Default User\ntuser.dat"
reg add "HKLM\newuser\control panel\desktop" /v ForeGroundLockTimeout /t REG_DWORD /d 0 /f
reg unload HKLM\newuser
Windows 7 Batch File
------------------------
reg load HKLM\newuser c:\users\default\ntuser.dat
reg add "HKLM\newuser\control panel\desktop" /v ForeGroundLockTimeout /t REG_DWORD /d 0 /f
reg unload HKLM\newuser
Combo Version w/Limited Testing (Will Try both paths so the good one loads and then writes the changes.)
----------------------------------------------------------------------------------------
reg load HKLM\newuser c:\users\default\ntuser.dat
reg load HKLM\newuser "C:\Documents and Settings\Default User\ntuser.dat"
reg add "HKLM\newuser\control panel\desktop" /v ForeGroundLockTimeout /t REG_DWORD /d 0 /f
reg unload HKLM\newuser
Note: HKEY_USER\.Default is NOT the Default User Profile and editing this does NOT impact newly created users.
This is the key for the SYSTEM account as well as used prior to anyone being logged into the device.
I only note this fact since this key is often confused with th Default User profile used for newly created accounts.
Note: It is unlikely this setting will cause applications to steal focus from NALWIN 100% of the time, but should cause it to happen a large preponderance of the time.