Win2K servers
Win 98 Users
Kixtart 4.11
Users have Netware login script and the Win2K script below that is SUPPOSE to run at logon.
The below script runs fine from the command line after I logon. Maps a drive and adds the value to the registry. It will not run a logon time. Debug shows no errors.
Anyone know how to Make it work? Seems like Windows just takes off loading and does not do what the logon script says to do. It will map the drive but not add the registry value. Is there a way to tell Windows to WAIT UNTIL LOGON SCRIPTS RUN BEFORE LOADING OTHER stuff? My boss is giving me to the end of the day to figure this out or I will have to go to each PC and add the shortcut to the user's desktop.
if ingroup("TX Mapcon Test")
Use O: /delete /PERSISTENT
USE O: "\\Server\Apps\Apps"/PERSISTENT
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='MapConIcon'
$regvalue='\\server\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.