I recently just started investigating logon scripts. I created a simply logon script that would map a test users' profile to a printer when they logged onto the network. My primary domain server is running NT4 and i placed the script file in the location - Winnt\System32\Repl\Import\Scripts and in the user's profile i typed in the name of the script where it says ' Script name'. I cant understand why it doesn't work. Here is a copy of the script i designed. Cane anyone help me please as i am new to the game.
cls
color g/n
"Hello, " + @USERID
?
;=== Setting Variable ===
$NTLocalServer=""
$Printer1=""
$Printer2=""
$Printer3=""
$Printer4=""
$Printer5=""
$DefaultPrinter=""
;=== Set Variable ===
SELECT
case InGroup ("smithb")
$NTLocalServer = "\\ESSBASE_1"
$Printer1 = "\\HRTC\claser1"
$Printer2 = "\\HRTC\claser2"
$DefaultPrinter = "\\HRTC\claser1"
_________________________
Any problem encountered is a challenge to overcome.