When we execute our script on login, the screen runs minimized, how do we get it visible?
The basis of this code is from - http://www.winguides.com/registry/display.php/141/
Code:
;*************************************************************************************
; Check the following key for W2k Machines to make the window not run minimized
;*************************************************************************************
IF @dos >= "5.0"
$hklms = 'HKLM\SOFTWARE'
IF 1 <> ReadValue($hklms+"\Microsoft\Windows NT\CurrentVersion\Winlogon", "RunLogonScriptSync")
$ = WriteValue ($hklms+"\Microsoft\Windows NT\CurrentVersion\Winlogon", "RunLogonScriptSync", "1", "REG_DWORD")
ENDIF
ENDIF
If you run into issues when writing to the Registry - http://www.winguides.com/registry/display.php/1085/
Code:
;*************************************************************************************
; Check the following key for W2k Machines to make the window not run minimized
;*************************************************************************************
IF @dos >= "5.0"
$hkcus = 'HKCU\SOFTWARE'
IF 1 <> ReadValue($hkcus+"\Microsoft\Windows NT\CurrentVersion\Winlogon", "RunLogonScriptSync")
$ = WriteValue ($hkcus+"\Microsoft\Windows NT\CurrentVersion\Winlogon", "RunLogonScriptSync", "1", "REG_DWORD")
ENDIF
ENDIF