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

Printing in Terminal Services 2

Status
Not open for further replies.

Tim58

Technical User
Feb 1, 2004
68
CA
We have an Windows 2000 AD Server and are using Terminal Services Remote Administration Mode. I connect from another office using Remote Desktop Connection on my Windows XP PC.
I can print to any of printers in the network, known to server, but is there a way to route printing to my local printer attached to my XP PC?

I've tried changing Options in my Remote Desktop session in Local Reources to allow Printers in Local Devices but it doesn't work for me.
 
Run this vbscript from your workstation once before connecting to the TS session.

Make sure you have drivers for your printers installed on the TS machine as well.

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
'          This script and many more are in the Admin Script Pack
'          from the Spider's Parlor.  [URL unfurl="true"]http://www.thespidersparlor.com/vbscript[/URL]
'==========================================================================
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

Check out my scripting solutions at
 
Very nice, mark. I take it the drivers will have to be loaded on the TS as well?

Start, Help. You'll be surprised what's there. A+/MCP/MCSE/MCDBA
 
Yes, but don't "install" the printer. Go into PRINTERS>FILE>SERVER PROPERTIES>DRIVERS and install them there.

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top