?
Solved

Set default printer for TS session

Posted on 2011-03-11
9
Medium Priority
?
787 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
[X]
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
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 1000 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 1000 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
The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

 

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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 …
Suggested Courses

770 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