Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WYSE 3360 and network printer setup

Status
Not open for further replies.

37grove

MIS
Jun 29, 2002
65
US
Hello,

Hope someone here can help me out, I inherited a situation where I need to setup default printers for users who are using wyse terminals, these are network printers.

I created a logon script for these users and I’m using the net use lpt1: \\w2k3-5\HP4300 to map to the network printer, this does not work.

Appreciate any help you can give,

Gary
 
37grove,
Are they connecting to a published application or a published desktop?
 
37grove,
Ok...let me get this straight.
1. You want to default these Wyse terminals to a Network printer.
2. You are using a published desktop for these Wyse terminals...correct?

If so, then have the users connect to the published desktop and go into the "Start-Settings-Printers" folder and add the network printer. Then just set it up as the windows default printer within the application.

The only thing with this setup is that you will need to have roaming profiles in order for that default printer to be saved and mapped whenever they log into a different Citrix server.

Hope that helps!
 
enigma99,

Thanks for your suggestions, but what i also want to do was to prevent users from being able to add printers during a session, the desktop is lockdown tight.

At this point i gotten it to make to a single network printer, still trying to get it so that multiple network printers are mapped and the users just select a default.

Thanks,
 
Hi. Are your domain controllers Windows 2000/3?

If so, use VBScript files as opposed to batch files to do this. The syntax is as follows:

Set objNetwork = CreateObject("Wscript.Network")
objNetwork.AddWindowsPrinterConnection "\\servername\printer1"
objNetwork.AddWindowsPrinterConnection "\\servername\printer2"
objNetwork.SetDefaultPrinter "\\servername\printer1"

This example basically maps \\servername\printer1, then maps \\servername\printer2... and at at the end, sets \\servername\printer1 as the user's default printer.

If you also need to map network drives within the same script, this is the syntax for mapping a drive:

Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "X:", "\\servername\sharename"

Let's say your batch file logon script looks like this...

net use lpt1: \\w2k3-5\HP4300
net use lpt2: \\w2k3-5\HP4000
net use G: \\fileserver\users

your VBScript version of the same file would then look like this...

Set objNetwork = CreateObject("Wscript.Network")
objNetwork.AddWindowsPrinterConnection "\\w2k3-5\HP4300"
objNetwork.AddWindowsPrinterConnection "\\w2k3-5\HP4000"
objNetwork.SetDefaultPrinter "\\servername\HP4300"

Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "G:", "\\fileserver\users"

To create a VBScript file, open notepad, type in your drive and printer connections, then save the file with a ".vbs" extension, as opposed to ".txt"

Check out the VBScript forum FAQs on this website, there's some really good ones in there.

Good luck with it.


 
Dublin73,

Thanks for the VB script. Something i found out about PS4 is that it has a new feature called session printers and i started testing with it and it seems to work without me having to use a script to map the printers.

Thanks again for the VB script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top