Hi,

I am looking to implement a script on our terminal server so when users log into that server, the users get the shares & printers according the their security group from our domain controllers

Since I only want the script to run only on that server (TS1). Where do I put the kix32.exe files?

I like to implement something like the following:

IF InGroup("GroupName1")
USE Z: /Delete /Persistent
USE Z: "\\DC01\ShareName"
AddPrinterConnection("\\cps1\hp4000") <> 0

ENDIF

IF InGroup("GroupName2")
USE x: /Delete /Persistent
USE X: "\\DC01\ShareName"
AddPrinterConnection("\\cps1\hp4100") <> 0

ENDIF


Some users will belong to more than one group.

TIA,
tnt