Win98 Workstations
WIn2k Servers
Kixtart v4.11
Local PC has Kix32.exe and the *.dll files on it.
;Mlogin.bat file
kix32 kixtart.kix
Here is the kix
; Kathy's sample default logon script
;
CLS
; Code for the Netware logon problem NPORDER
:NPORDER$MS = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder")
$NW = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder")
if ($MS = "00000040") AND ($NW = "00000020")
$MS = WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSNP32\NetworkProvider", "CallOrder", "00000020", "REG_BINARY")
$NW = WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NOVELLNP\NetworkProvider", "CallOrder", "00000040", "REG_BINARY")
; --- Reboot the PC? ---
RUN "Rundll32.exe shell.dll,RestartDialog"
ENDIF
; CODE for the Test group
if ingroup("TX Mapcon Test")
Use O: /delete
USE O: "\\Tx-Apps\Apps\Apps"
; Code for putting a value in the registry
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='MapConIcon'
$regvalue='\\tx-pdc\netlogon\short2.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
if @ERROR
? 'Error writing to registry: '+@ERROR+' - '+@SERROR
endif
endif
exit
_________________________
Stupid is forever - Ignorance can be fixed.