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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal Server Printing

Status
Not open for further replies.

wagan20012000

IS-IT--Management
May 6, 2005
4
AU
I'm new with Windows 2000 terminal server and I'm having problem setting up printers.

a.) We have a remote office with 3 desktop computers and 1 laptop. All computers are running Windows XP Pro (SP2). There is one network printer (HP LaserJet 4L). They connect to the home office via vpn. And using Remote Connection they connect to the Windows 2000 Terminal server. Once in the terminal session, they cannot access the network printer. Please teach me how to install the network printer.

b.) Some users with laptops connect to the terminal server when they are at home. They want to be able to print using the home printers (via LPT1). How can they setup their printer in terminal session.

c.) Also some users have multi function printers (via DOT4) at their home. How can they connect their printer while in terminal session?

Any help would be greatly appreciated.
 
The clients will need to run the below script BEFORE attaching to terminal services. This will allow the network and SOME DOT4 printers to work. The all in one printers will typically NOT work EVER.

On your server side you need to install the drivers for each type of client printer. Just go throught the setup of a local (lpt) printer and give the system the drivers for that printer. It is for this reason that the All in One printers won't work because they use an entire printing system that you can't install on the server. You must have just drivers to install.

Code:
'==========================================================================
'
' NAME: TSPrintFix.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: [URL unfurl="true"]http://www.thespidersparlor.com[/URL]
' (c) 2003 All Rights Reserved
' DATE  : 12/22/2003
'
' COMMENT: Fixes printing via terminal services to allow DOT4 printers
'
'==========================================================================
myPrompt = MsgBox("This script will set up your printers for use with Terminal Services",vbOKCancel,"Setup Printers for Terminal Services?")
If myPrompt = 1 Then 
	Set WshShell=WScript.CreateObject("WScript.Shell")
	keypath ="HKCU\Software\Microsoft\Terminal Server Client\Default\AddIns\RDPDR\FilterQueueType"
	WshShell.RegWrite keypath, -1, "REG_DWORD"
	If WshShell.RegRead(keypath) = "-1" Then
		MsgBox "Setup was successful",,"Success"
	Else
		MsgBox "Sorry A Problem Was Encountered" & vbCrLf & "Make sure you have permission to write to the registry.",,"Something went wrong"
	End If	
End If
WScript.Quit

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top