Assuming you want to only connect to the default printer
and not disconnect all the other printers, I'm willing to
bet your could automate what this article talks about...
http://support.microsoft.com/default.aspx?scid=kb;en-
us;243552&Product=win2000
The unfortunate thing is that you wouldn't know what type
of printer the client was using, and therefore you
wouldn't know what type of driver to use for the printer
at port TS001. Hmm...it might just be easier to connect
all the printers and delete everything but the non-default
one...
....in that case, you could just query the default
printer's name, and delete every other printer who's name
does not equal the default printer's name. Is this sound
like something you are interested in? I might be able to
come up with a script to do it...
-M
>-----Original Message-----
>I know it is possible to write a script to disconnect any
printer
>except the default, but you are right - this is NOT
optimal.
>My objective is to not connect those printers in the
first place.
>
>You mentioned connecting a printer via a script... how
would you go
>about doing this??
>
>Thanks for your input!
>
>"Matthew Harris [MVP]" <(E-Mail Removed)> wrote
in message news:<f78001c3f286$abfe3910$(E-Mail Removed)>...
>> I could probably write a script to disconnect printers
>> that are't the default, but this by far wouldn't be
>> optimal. My only thought is that you either create a
hook
>> to intercept the printer calls from terminal services,
or
>> you manually turn off client printer mapping and then
just
>> run a script to manually map the first printer...
>>
>> -M
>>
>.
>