Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Set default printer for TS session

Posted on 2011-03-11
9
783 Views
Last Modified: 2012-05-11
I have a user that logs into a terminal server from their XP embedded thin client.
The thin client has no printers installed locally.
The terminal server has the printers installed locally via IP to the printer
My terminal server and DC are Windows 2008

On a windows desktop pc the TS session would take the local PC default printer and make the TS session have the same default pritner. However, since I am using a XP Embedded thin client with no printer installed how can I specify what local TS printer I want to be default for a user?
0
Comment
Question by:steveLaMi
9 Comments
 
LVL 14

Expert Comment

by:amichaell
ID: 35111322
This is probably best facilitated by using a logon script, such as KixTart.  With 2008 AD you might also consider GPO Preferences, though I've only used them to assign default printers in a shared printer environment and not to local IP printers.
0
 
LVL 8

Accepted Solution

by:
Acosta Technology Services earned 250 total points
ID: 35111338
Add the following to the user's login script if available:

Set WSHNetwork = CreateObject(“WScript.Network”)
WSHNetwork.SetDefaultPrinter “printer name¿

0
 
LVL 11

Assisted Solution

by:yelbaglf
yelbaglf earned 250 total points
ID: 35111494
You could try something like this in a login script...  This can also be expanded upon if needed.

On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colInstalledPrinters =  objWMIService.ExecQuery _
    ("Select * from Win32_Printer Where Network = FALSE")

For Each objPrinter in colInstalledPrinters
    If InStr(objPrinter.Name, "PrinterName") Then
    objPrinter.SetDefaultPrinter objPrinter
    End If
Next

Open in new window

0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

by:steveLaMi
ID: 35141374
are those vbs scirpts?
0
 
LVL 8

Expert Comment

by:Acosta Technology Services
ID: 35141438
Yes, do you need batch?
0
 

Author Comment

by:steveLaMi
ID: 35141524
I can use the VBS, just want to make sure I do it right here

Is this what I should be putting in?
Set WSHNetwork = CreateObject(“WScript.Network”)
WSHNetwork.SetDefaultPrinter “Sharp MX-3100N PCL5C"

Of course, that is the model of the printer.

0
 
LVL 8

Expert Comment

by:Acosta Technology Services
ID: 35141572
Yes, it should be the exact name of the printer as installed on the user PC's
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 35399242
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question