Originally Posted By: ShaneEP
However, using GOTO's is considered by many to be poor scripting. It results in code this is difficult to follow, troubleshoot, and edit.

Here is one of numerous alternatives to achieve the same task without using GOTO's...
 Code:
Select
   Case @UserID = "JohnDoe"
      Group1()
   Case @UserID = "Betty"
      Group2()
   Case 1
      ; If It Get Here Then User ID Was Not In List
EndSelect

Function Group1()
   use z: "\\fs1\all$
   $nul = AddPrinterConnection("\\PS1\HPb")
EndFunction

Function Group2()
   use y: "\\fs1\none$
   $nul = AddPrinterConnection("\\PS1\HPc")
EndFunction



Thanks shane. I haven't worked with Kixtart that much. I thought it has to be placed in a system directory of a local server if I want to go that route.

So how does it know where the executable file of kix? I am guessing you specify in the file itself or the local policy of logon script?

Note: Users who are logging in will be AD user.


Edited by Tony (2012-12-08 12:47 AM)