Hi Suzanne,Good grief girl, it is still too cold and dark to be up and about at 06:00.
The scriplet is fine where you've inserted it, but because it is in the subroutine called for "students" it will only apply to these logins.
If you'd rather control the printer mapping of everyone regardless of which groups they belong to simply stick the scriplet at the beginning of your script.
For instance you are not mapping printers for the members of the staff group - that may be your intention which is fine.
I also notice that there are some oddities in the script which may have been cause by cutting and pasting. You are missing the ":O" from the ":Other" label and ":P" from the ":Primary" label at the bottom of your script. Also, ensure that there is a space between "?" and "EndSelect", or place them on seperate lines.
As an aside, if all your rooms' printers were named "{RoomName}Colour" and "{RoomName}"Black the script would have been really simple:
code:
$sRoom=substr(@WKSTA,1,2) ; Room Prefix Tx
Use lpt1: "\\curriculum\" + $iRoomNo + "Colour" ; Map rooms colour printer to LPT1
Use lpt2: "\\curriculum\" + $iRoomNo + "Black" ; Map rooms b&w printer to LPT2
[ 07 February 2002: Message edited by: Richard Howarth ]