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

Change port on TS printer with VBScript

Status
Not open for further replies.

cygnuskaltora

Technical User
May 27, 2004
2
US
I have a PXES thin client setup on an old machine with no hard drive. I have a printer setup on the Terminal Server that is using the TS### port to print. This works great, print output comes from the printer with no issues. Here's the problem: When I log out of the terminal server session and log back in again, it creates a new TS### port (where ### is the terminal server session number.) I need to then manually set the printer to use the new port. Is there a way that I can script this? I have a script that will give me the client name, but not the session ID. I'm assuming I'll need both.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top