I have a client that is setup for Terminal Server Windows 2000 sp4. It is a billing company and they use Medisoft for the billing software. We setup the users all on the default users group on the server. When the user is not an administrator Medisoft will not allow them to print with an access violation error. We found out that medisoft needs the user to be an administrator to print. It works great that way for printing. We cannot afford them to be an administrator since they can do damage and see all the competitors printers and print to them. Medisoft was designed to work on a network LAN environment but not TS. So, I am assuming that is why the user has to be set up as an administrator. The users are launched right into medisoft so they don't see the servers desktop at all. So, my delima now is how do you restrict the client to only see their redirected print(s) or the printers you want them to see and use? I am attempting writing a vbs script to do this but I am having difficulty there trying to find out current logged in user and session. How would you hide the printers you dont want them to see? Here is a script I started with on Microsofts site. I understand it but I am afraid I am looking at it from the wrong angle. Thanks so much for any help at all....
Code:
Set WshNetwork = CreateObject("WScript.Network"
Select Case WshNetWork.UserName
Case "Username1"
PrinterPath = "\\Server\Printer1"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\Server\Printer1"
Case "Username2"
PrinterPath = "\\Server\Printer2"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\Server\Printer1"
End Select
-Robert
Thanks
-Robert
System Analyst/Programmer
Code:
Set WshNetwork = CreateObject("WScript.Network"
Select Case WshNetWork.UserName
Case "Username1"
PrinterPath = "\\Server\Printer1"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\Server\Printer1"
Case "Username2"
PrinterPath = "\\Server\Printer2"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\Server\Printer1"
End Select
-Robert
Thanks
-Robert
System Analyst/Programmer