PC Review


Reply
Thread Tools Rate Thread

Terminal services and printers

 
 
Ormandy
Guest
Posts: n/a
 
      12th Feb 2004
I have a printer that maps when the client connects via
RDP to my Windows 2k server. I need to set up a share on
that printer so my application can print to it.
ie //servername/share I establish the share but when the
user logs off of ts and then back on later the share
disappears. in citrix I can make the printers stay how
can I do that with TS or how can I make the share come
back.

Thanks
 
Reply With Quote
 
 
 
 
Matthew Harris [MVP]
Guest
Posts: n/a
 
      13th Feb 2004
You could probably write a relatively simple batch script
to do this...or..

{5 minutes later}

Ok...I wrote a quick a dirty one. Download it here...

http://terminal.servebeer.com/downlo...re_printer.zip

....and try it out. Near the top of the script there is a
line that looks like this:

set ShareName=RedirPr

That will be combined with a number to uniquely identify
the printer share. For instance, at the end of the
script, the printer share name will be RedirPr_0. If you
want to change the name from RedirPr to something else,
then adjust the above line.

If it works, then could you please let me know? I'm sure
other people might be interested in using it.

-M

>-----Original Message-----
>I have a printer that maps when the client connects via
>RDP to my Windows 2k server. I need to set up a share on
>that printer so my application can print to it.
>ie //servername/share I establish the share but when the
>user logs off of ts and then back on later the share
>disappears. in citrix I can make the printers stay how
>can I do that with TS or how can I make the share come
>back.
>
>Thanks
>.
>

 
Reply With Quote
 
ormandy
Guest
Posts: n/a
 
      13th Feb 2004
so what I am hearing is there is no way to let the
printer stay resident? in citrix, the printer isnt
session sensitive but in ts it is? is there a way that
the printers can be computer name sensitive?


>-----Original Message-----
>You could probably write a relatively simple batch

script
>to do this...or..
>
>{5 minutes later}
>
>Ok...I wrote a quick a dirty one. Download it here...
>
>http://terminal.servebeer.com/downlo...re_printer.zip
>
>....and try it out. Near the top of the script there is

a
>line that looks like this:
>
>set ShareName=RedirPr
>
>That will be combined with a number to uniquely identify
>the printer share. For instance, at the end of the
>script, the printer share name will be RedirPr_0. If

you
>want to change the name from RedirPr to something else,
>then adjust the above line.
>
>If it works, then could you please let me know? I'm

sure
>other people might be interested in using it.
>
>-M
>
>>-----Original Message-----
>>I have a printer that maps when the client connects via
>>RDP to my Windows 2k server. I need to set up a share

on
>>that printer so my application can print to it.
>>ie //servername/share I establish the share but when

the
>>user logs off of ts and then back on later the share
>>disappears. in citrix I can make the printers stay how
>>can I do that with TS or how can I make the share come
>>back.
>>
>>Thanks
>>.
>>

>.
>

 
Reply With Quote
 
Matthew Harris [MVP]
Guest
Posts: n/a
 
      13th Feb 2004
Did you enven try out the script?

Citrix is built on top of terminal services, but Citrix
may have an additional addin there to help share the
pritner automatically upon connect.

If you want to use the client's computer's name, then
substitute %clientname% in for RedirPr in the script.

-M

>-----Original Message-----
>so what I am hearing is there is no way to let the
>printer stay resident? in citrix, the printer isnt
>session sensitive but in ts it is? is there a way that
>the printers can be computer name sensitive?
>
>
>>-----Original Message-----
>>You could probably write a relatively simple batch

>script
>>to do this...or..
>>
>>{5 minutes later}
>>
>>Ok...I wrote a quick a dirty one. Download it here...
>>
>>http://terminal.servebeer.com/downlo...re_printer.zip
>>
>>....and try it out. Near the top of the script there is

>a
>>line that looks like this:
>>
>>set ShareName=RedirPr
>>
>>That will be combined with a number to uniquely identify
>>the printer share. For instance, at the end of the
>>script, the printer share name will be RedirPr_0. If

>you
>>want to change the name from RedirPr to something else,
>>then adjust the above line.
>>
>>If it works, then could you please let me know? I'm

>sure
>>other people might be interested in using it.
>>
>>-M
>>
>>>-----Original Message-----
>>>I have a printer that maps when the client connects via
>>>RDP to my Windows 2k server. I need to set up a share

>on
>>>that printer so my application can print to it.
>>>ie //servername/share I establish the share but when

>the
>>>user logs off of ts and then back on later the share
>>>disappears. in citrix I can make the printers stay how
>>>can I do that with TS or how can I make the share come
>>>back.
>>>
>>>Thanks
>>>.
>>>

>>.
>>

>.
>

 
Reply With Quote
 
ormandy
Guest
Posts: n/a
 
      13th Feb 2004
no I have not tried the script yet as I was hoping I
didnt have to use scripts to accomplish this. as I have
other printers on that server that do stay resident when
the ts session is disconnected.


>-----Original Message-----
>Did you enven try out the script?
>
>Citrix is built on top of terminal services, but Citrix
>may have an additional addin there to help share the
>pritner automatically upon connect.
>
>If you want to use the client's computer's name, then
>substitute %clientname% in for RedirPr in the script.
>
>-M
>
>>-----Original Message-----
>>so what I am hearing is there is no way to let the
>>printer stay resident? in citrix, the printer isnt
>>session sensitive but in ts it is? is there a way that
>>the printers can be computer name sensitive?
>>
>>
>>>-----Original Message-----
>>>You could probably write a relatively simple batch

>>script
>>>to do this...or..
>>>
>>>{5 minutes later}
>>>
>>>Ok...I wrote a quick a dirty one. Download it here...
>>>
>>>http://terminal.servebeer.com/download/share_printer.zi

p
>>>
>>>....and try it out. Near the top of the script there

is
>>a
>>>line that looks like this:
>>>
>>>set ShareName=RedirPr
>>>
>>>That will be combined with a number to uniquely

identify
>>>the printer share. For instance, at the end of the
>>>script, the printer share name will be RedirPr_0. If

>>you
>>>want to change the name from RedirPr to something

else,
>>>then adjust the above line.
>>>
>>>If it works, then could you please let me know? I'm

>>sure
>>>other people might be interested in using it.
>>>
>>>-M
>>>
>>>>-----Original Message-----
>>>>I have a printer that maps when the client connects

via
>>>>RDP to my Windows 2k server. I need to set up a share

>>on
>>>>that printer so my application can print to it.
>>>>ie //servername/share I establish the share but when

>>the
>>>>user logs off of ts and then back on later the share
>>>>disappears. in citrix I can make the printers stay

how
>>>>can I do that with TS or how can I make the share

come
>>>>back.
>>>>
>>>>Thanks
>>>>.
>>>>
>>>.
>>>

>>.
>>

>.
>

 
Reply With Quote
 
Matthew Harris [MVP]
Guest
Posts: n/a
 
      14th Feb 2004
Ah...hmm. You said, "...when the ts session is
disconnected." Did you mean logged out, or did you indeed
mean disconnected, because those are very different?

Maybe I'm just missing the point here...are you trying to
share the client's printer every time the user connects?
Or...are you trying to have the user get connected to the
same network shared printer when they connect?

-M

>-----Original Message-----
>no I have not tried the script yet as I was hoping I
>didnt have to use scripts to accomplish this. as I have
>other printers on that server that do stay resident when
>the ts session is disconnected.
>
>
>>-----Original Message-----
>>Did you enven try out the script?
>>
>>Citrix is built on top of terminal services, but Citrix
>>may have an additional addin there to help share the
>>pritner automatically upon connect.
>>
>>If you want to use the client's computer's name, then
>>substitute %clientname% in for RedirPr in the script.
>>
>>-M
>>
>>>-----Original Message-----
>>>so what I am hearing is there is no way to let the
>>>printer stay resident? in citrix, the printer isnt
>>>session sensitive but in ts it is? is there a way that
>>>the printers can be computer name sensitive?
>>>
>>>
>>>>-----Original Message-----
>>>>You could probably write a relatively simple batch
>>>script
>>>>to do this...or..
>>>>
>>>>{5 minutes later}
>>>>
>>>>Ok...I wrote a quick a dirty one. Download it here...
>>>>
>>>>http://terminal.servebeer.com/download/share_printer.zi

>p
>>>>
>>>>....and try it out. Near the top of the script there

>is
>>>a
>>>>line that looks like this:
>>>>
>>>>set ShareName=RedirPr
>>>>
>>>>That will be combined with a number to uniquely

>identify
>>>>the printer share. For instance, at the end of the
>>>>script, the printer share name will be RedirPr_0. If
>>>you
>>>>want to change the name from RedirPr to something

>else,
>>>>then adjust the above line.
>>>>
>>>>If it works, then could you please let me know? I'm
>>>sure
>>>>other people might be interested in using it.
>>>>
>>>>-M
>>>>
>>>>>-----Original Message-----
>>>>>I have a printer that maps when the client connects

>via
>>>>>RDP to my Windows 2k server. I need to set up a share
>>>on
>>>>>that printer so my application can print to it.
>>>>>ie //servername/share I establish the share but when
>>>the
>>>>>user logs off of ts and then back on later the share
>>>>>disappears. in citrix I can make the printers stay

>how
>>>>>can I do that with TS or how can I make the share

>come
>>>>>back.
>>>>>
>>>>>Thanks
>>>>>.
>>>>>
>>>>.
>>>>
>>>.
>>>

>>.
>>

>.
>

 
Reply With Quote
 
ormandy
Guest
Posts: n/a
 
      16th Feb 2004
I am trying to have the printer stay when they logoff or
get disconnected. the application we sell sends print
jobs to a share (//servername/share)so when the user
connects and the printer is mapped I need to have it stay
on the server once the user disconnects weather they are
loging off or disconnected. I guess It was confusing when
I said disconnnected I thought that meant either by
borken connection or log off.


>-----Original Message-----
>Ah...hmm. You said, "...when the ts session is
>disconnected." Did you mean logged out, or did you

indeed
>mean disconnected, because those are very different?
>
>Maybe I'm just missing the point here...are you trying

to
>share the client's printer every time the user

connects?
>Or...are you trying to have the user get connected to

the
>same network shared printer when they connect?
>
>-M
>
>>-----Original Message-----
>>no I have not tried the script yet as I was hoping I
>>didnt have to use scripts to accomplish this. as I have
>>other printers on that server that do stay resident

when
>>the ts session is disconnected.
>>
>>
>>>-----Original Message-----
>>>Did you enven try out the script?
>>>
>>>Citrix is built on top of terminal services, but

Citrix
>>>may have an additional addin there to help share the
>>>pritner automatically upon connect.
>>>
>>>If you want to use the client's computer's name, then
>>>substitute %clientname% in for RedirPr in the script.
>>>
>>>-M
>>>
>>>>-----Original Message-----
>>>>so what I am hearing is there is no way to let the
>>>>printer stay resident? in citrix, the printer isnt
>>>>session sensitive but in ts it is? is there a way

that
>>>>the printers can be computer name sensitive?
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>You could probably write a relatively simple batch
>>>>script
>>>>>to do this...or..
>>>>>
>>>>>{5 minutes later}
>>>>>
>>>>>Ok...I wrote a quick a dirty one. Download it

here...
>>>>>
>>>>>http://terminal.servebeer.com/download/share_printer.

zi
>>p
>>>>>
>>>>>....and try it out. Near the top of the script

there
>>is
>>>>a
>>>>>line that looks like this:
>>>>>
>>>>>set ShareName=RedirPr
>>>>>
>>>>>That will be combined with a number to uniquely

>>identify
>>>>>the printer share. For instance, at the end of the
>>>>>script, the printer share name will be RedirPr_0.

If
>>>>you
>>>>>want to change the name from RedirPr to something

>>else,
>>>>>then adjust the above line.
>>>>>
>>>>>If it works, then could you please let me know? I'm
>>>>sure
>>>>>other people might be interested in using it.
>>>>>
>>>>>-M
>>>>>
>>>>>>-----Original Message-----
>>>>>>I have a printer that maps when the client connects

>>via
>>>>>>RDP to my Windows 2k server. I need to set up a

share
>>>>on
>>>>>>that printer so my application can print to it.
>>>>>>ie //servername/share I establish the share but

when
>>>>the
>>>>>>user logs off of ts and then back on later the

share
>>>>>>disappears. in citrix I can make the printers stay

>>how
>>>>>>can I do that with TS or how can I make the share

>>come
>>>>>>back.
>>>>>>
>>>>>>Thanks

 
Reply With Quote
 
Matthew Harris [MVP]
Guest
Posts: n/a
 
      17th Feb 2004
Terminal services redirected printers are autocreated upon
logon and autodeleted upon logout, so keeping them around
isn't going to work.

If you have to have the printers be on the server at all
times, your best bet is to install them locally.

To tell the truth, this isn't the most optimal of
configurations, since you are pretty much working against
terminal services.

-M

>-----Original Message-----
>I am trying to have the printer stay when they logoff or
>get disconnected. the application we sell sends print
>jobs to a share (//servername/share)so when the user
>connects and the printer is mapped I need to have it stay
>on the server once the user disconnects weather they are
>loging off or disconnected. I guess It was confusing when
>I said disconnnected I thought that meant either by
>borken connection or log off.
>
>
>>-----Original Message-----
>>Ah...hmm. You said, "...when the ts session is
>>disconnected." Did you mean logged out, or did you

>indeed
>>mean disconnected, because those are very different?
>>
>>Maybe I'm just missing the point here...are you trying

>to
>>share the client's printer every time the user

>connects?
>>Or...are you trying to have the user get connected to

>the
>>same network shared printer when they connect?
>>
>>-M
>>
>>>-----Original Message-----
>>>no I have not tried the script yet as I was hoping I
>>>didnt have to use scripts to accomplish this. as I have
>>>other printers on that server that do stay resident

>when
>>>the ts session is disconnected.
>>>
>>>
>>>>-----Original Message-----
>>>>Did you enven try out the script?
>>>>
>>>>Citrix is built on top of terminal services, but

>Citrix
>>>>may have an additional addin there to help share the
>>>>pritner automatically upon connect.
>>>>
>>>>If you want to use the client's computer's name, then
>>>>substitute %clientname% in for RedirPr in the script.
>>>>
>>>>-M
>>>>
>>>>>-----Original Message-----
>>>>>so what I am hearing is there is no way to let the
>>>>>printer stay resident? in citrix, the printer isnt
>>>>>session sensitive but in ts it is? is there a way

>that
>>>>>the printers can be computer name sensitive?
>>>>>
>>>>>
>>>>>>-----Original Message-----
>>>>>>You could probably write a relatively simple batch
>>>>>script
>>>>>>to do this...or..
>>>>>>
>>>>>>{5 minutes later}
>>>>>>
>>>>>>Ok...I wrote a quick a dirty one. Download it

>here...
>>>>>>
>>>>>>http://terminal.servebeer.com/download/share_printer.

>zi
>>>p
>>>>>>
>>>>>>....and try it out. Near the top of the script

>there
>>>is
>>>>>a
>>>>>>line that looks like this:
>>>>>>
>>>>>>set ShareName=RedirPr
>>>>>>
>>>>>>That will be combined with a number to uniquely
>>>identify
>>>>>>the printer share. For instance, at the end of the
>>>>>>script, the printer share name will be RedirPr_0.

>If
>>>>>you
>>>>>>want to change the name from RedirPr to something
>>>else,
>>>>>>then adjust the above line.
>>>>>>
>>>>>>If it works, then could you please let me know? I'm
>>>>>sure
>>>>>>other people might be interested in using it.
>>>>>>
>>>>>>-M
>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>I have a printer that maps when the client connects
>>>via
>>>>>>>RDP to my Windows 2k server. I need to set up a

>share
>>>>>on
>>>>>>>that printer so my application can print to it.
>>>>>>>ie //servername/share I establish the share but

>when
>>>>>the
>>>>>>>user logs off of ts and then back on later the

>share
>>>>>>>disappears. in citrix I can make the printers stay
>>>how
>>>>>>>can I do that with TS or how can I make the share
>>>come
>>>>>>>back.
>>>>>>>
>>>>>>>Thanks

>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printers in Terminal Services CarlosBrown Microsoft Windows 2000 0 21st Oct 2005 07:51 PM
Duplicate printers in Terminal Services. =?Utf-8?B?Um9iZXJ0bw==?= Microsoft Windows 2000 Terminal Server Clients 0 20th Apr 2005 04:05 PM
Duplicate printers in Terminal Services =?Utf-8?B?Um9iZXJ0bw==?= Microsoft Windows 2000 MSI 0 20th Apr 2005 04:05 PM
Mapping network printers terminal services Rasher Microsoft Windows 2000 Terminal Server Clients 1 22nd Apr 2004 05:46 AM
Printers through Terminal Services Kevin Microsoft Windows 2000 Networking 2 23rd Jan 2004 03:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.