From: Conley on
We have a 2003 TS and 10 networked printers. The printers are setup on the
TS via IP address ports. Some users complain that they loose their default
printer. I their a script I can use set the clients default printers at
logon? Thanks
From: Vera Noest [MVP] on
Setting the default printer is easiest done within the users
logon script. You'll need some sort of utility to do this:
Defprint.exe controls local printers (local to the TS), Con2prt.exe
controls network printers, use a KiXtart script, or use rundll32
printui.dll,PrintUIEntry.

Examples (check for correct syntax!)

DefPrint.exe /d "HP OfficeJet"
con2prt.exe \\PrintServer\printer01
SetDefaultPrinter ("\\TS\printer01")
rundll32 printui.dll,PrintUIEntry /y /in \\PrintServer\Printer01

189105 - How to add printers with no user interaction in Windows
http://support.microsoft.com/?kbid=189105

Defprint.exe can be downloaded here:
http://www.dcug.de/phpnuke/html/modules.php?
name=Downloads&d_op=MostPopular
con2prt.exe is part of the NT Resource Kit.
KiXtart can be downloaded from http://www.kixtart.org

--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup, NOT by private email ---

=?Utf-8?B?Q29ubGV5?= <Conley(a)discussions.microsoft.com> wrote on
13 maj 2005 in microsoft.public.windows.terminal_services:

> We have a 2003 TS and 10 networked printers. The printers are
> setup on the TS via IP address ports. Some users complain that
> they loose their default printer. I their a script I can use
> set the clients default printers at logon? Thanks
From: Patrick Rouse on
You can also use the WSH scripts listed here:
http://www.workthin.com/tsp.htm

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthsetdefaultprinter.asp

--
Patrick Rouse
Microsoft MVP - Terminal Server
http://www.workthin.com


"Vera Noest [MVP]" wrote:

> Setting the default printer is easiest done within the users
> logon script. You'll need some sort of utility to do this:
> Defprint.exe controls local printers (local to the TS), Con2prt.exe
> controls network printers, use a KiXtart script, or use rundll32
> printui.dll,PrintUIEntry.
>
> Examples (check for correct syntax!)
>
> DefPrint.exe /d "HP OfficeJet"
> con2prt.exe \\PrintServer\printer01
> SetDefaultPrinter ("\\TS\printer01")
> rundll32 printui.dll,PrintUIEntry /y /in \\PrintServer\Printer01
>
> 189105 - How to add printers with no user interaction in Windows
> http://support.microsoft.com/?kbid=189105
>
> Defprint.exe can be downloaded here:
> http://www.dcug.de/phpnuke/html/modules.php?
> name=Downloads&d_op=MostPopular
> con2prt.exe is part of the NT Resource Kit.
> KiXtart can be downloaded from http://www.kixtart.org
>
> --
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> http://hem.fyristorg.com/vera/IT
> --- please respond in newsgroup, NOT by private email ---
>
> =?Utf-8?B?Q29ubGV5?= <Conley(a)discussions.microsoft.com> wrote on
> 13 maj 2005 in microsoft.public.windows.terminal_services:
>
> > We have a 2003 TS and 10 networked printers. The printers are
> > setup on the TS via IP address ports. Some users complain that
> > they loose their default printer. I their a script I can use
> > set the clients default printers at logon? Thanks
>