Hello all!I'm working on a multiple environment domain for our developers. What I need to happen is for the login script to look at the workstation computer name and then based on that name run a different script. The code that I am currently using looks like this:
if @wksta <> 'test-a' and @wksta <> 'test-b' and @wksta <> 'test-c' and @wksta <> sfu1-018
Call Test.scr
$process_login='n'
?'Dublin Login scripts are NOT run on Test Machines.'
?
BEEP
BEEP
?'Press any key to continue...'
if @wksta <> 'preprod-a' and @wksta <> 'preprod-b'
Call Preprod.scr
$process_login='n'
?'Dublin Login scripts are NOT run on Pre-Production Machines.'
?
BEEP
BEEP
?'Press any key to continue...'
else if exist ('c:\winnt\canflag.txt')=1
$process_login='n'
?'Dublin Login scripts are NOT run on Canada Machines.'
?' Please call 4500 for more info.'
?
BEEP
BEEP
?'Press any key to continue...'
get $t
else
$process_login='y'
endif ; if on nala
if $process_logon='y'
?
?'Processing NT system logon script...'
Thanks for any assistance,
Steven