Hallo,

zunächst Danke für die Hilfebemühungen. Auf dem Terminalserver sind
keine Drucker installiert. Die stehen ja sonst allen angemeldeten zur
Verfügung. Eure Tipps habe ich alle nicht so ganz verstanden, aber die
OTC Welt ist noch sehr neu für mich-

Ich habe das jetzt mit einem Skript (VBS) gelöst, welches im Autostart
von AllUsers liegt. Das Skript sieht (zur Zeit) so aus:

Ist halt ein bisschen Handarbeit,  Rechner und Drucker einzutragen, aber
das ist ferzeit völlig ausreichend. Wichtig ist es, die Variable
"Clientname" zu verwenden, denn bei Computername kommt immer der Name
des Terminalservers.

DruckerVerbinden

Sub DruckerVerbinden()
        Set SysInfo = CreateObject("ADSystemInfo")
        Set WshShell = WScript.CreateObject("WScript.Shell")
        Set WshNet =  CreateObject("WScript.Network")
        ComputerName = Lcase(WshShell.ExpandEnvironmentStrings("%Clientname%"))


        Select Case ComputerName
        
        Case "pc01"
                WshNet.AddWindowsPrinterConnection "\\s1\EDV1-Farbe"
                WshNet.SetDefaultPrinter "\\s1\EDV1-Laser1"
        Case "pc02"
                WshNet.AddWindowsPrinterConnection "\\s1\EDV2-Laser"
                WshNet.SetDefaultPrinter "\\s1\EDV2-Laser"
        Case "NOTEBOOKHPALT"
                WshNet.AddWindowsPrinterConnection "\\s1\EDV2-Laser"
                WshNet.SetDefaultPrinter "\\s1\EDV2-Laser"
        End Select
End Sub



Als Batch gehts wohl auch, das sieht dann so aus:

IF "%clientname%" == "PC1" THEN
rundll32 printui.dll,PrintUIEntry /q /in /n /y \\10.1.1.1\EDV1-Laser

IF "%clientname%" = "PC2" THEN
rundll32 printui.dll,PrintUIEntry /q /in /n /y \\10.1.1.1\EDV2-Laser

IF "%clientname%" = "PC17" THEN
rundll32 printui.dll,PrintUIEntry /q /in /n /y \\10.1.1.1\EDV-Farbe

Tut für mich.

Gruß,

Andreas


Am Di, 15.10.13 10:46, schrieb Julian Ohm:
> I think i understood what he wants. So i try to Explosion in German. 
>
> Hallo Andreas,
>
> Wenn ich dich richtig verstehe, dann hast du bisher den Drucker am Client 
> installiert und per rdp durchgeschliffen um ihn auch für terminalsitzungen zu 
> verwenden. 
>
> Eine Möglichkeit ist die Netzwerkdrucker allesamt am terminalserver zu 
> installieren und über die Gruppenrichtlinie wieder entsprechend zuzuordnen. 
>
> Die andere Möglichkeit IST den Drucker in OTC einzurichten und dann dem 
> Client zuzuordnen. Wenn das soweit geklappt hat, dann kannst du auch den 
> Drucker wieder mit rdesktop durchschleifen
>
> Gruß
> Julian
>
>
>
> Sent from iPhone
>
>> Am 15.10.2013 um 10:21 schrieb Miguel Amez <villalvi...@gmail.com>:
>>
>> I am a little bit confused with your explanation... What can I make clear in 
>> your words is that you have a classroom for your Thin Clients that connects 
>> by RDP to your Terminal Server. Do you use the same DC user for this 
>> classroom as for the rest of your installation? If not, you can add 
>> permissions for printing to an specific user that can only be used on this 
>> room.
>> Does your RDP installed on your OTC automatically connect to your terminal 
>> server with an specific user and password via a bash script?
>>
>> Regards,
>> Miguel
>>
>>
>> 2013/10/15 Andreas Mayer <kastenec...@gmail.com>
>>> Hello,
>>>
>>> "Hope this helps."  No, not really. 
>>>
>>> Can you gibe me some more hints? I am a teacher administrating our 
>>> schoolnetwork...
>>> I want to make sure, that printers are only useable in the room of the 
>>> clients.
>>> With our normal pcs it is done with an loginscript, that reads in which ou 
>>> is the client an adds the right printer. Thin does not work on the 
>>> terminalserver, because in the printer ou of the terminalserver are no 
>>> printers  - otherwise every RDP Client would have all printers.
>>>
>>> First of all I need to know, if my RDP clients can use the printers from my 
>>> printserver - and how. 
>>>
>>>
>>> Thanks,
>>>
>>> Andreas
>>>
>>> Am Di, 15.10.13 09:51, schrieb Miguel Amez:
>>>> Hi Andreas,
>>>>
>>>> This has nothing to do with OTC, this is a missconfiguration in your LDAP
>>>> security permissions. You can Grant that permission by GPOs.
>>>>
>>>> Hope this helps.
>>>> Regards,
>>>> Miguel Amez
>>>>
>>>>
>>>> 2013/10/15 Andreas Mayer <kastenec...@gmail.com>
>>>>
>>>>> Hello,
>>>>>
>>>>> we use OTC in network with a Windows 2003 Server as DH and Printserver.
>>>>> Printers are connected by a login script.
>>>>> So on the terminalserver there is no printer installed. This should
>>>>> remain as it is, because we don't want our pupils to print in ohter
>>>>> classrooms.
>>>>>
>>>>> How can I configure OTC to use a printer a rdesktop session, that is not
>>>>> installed on the Terminalserver? By example:
>>>>>
>>>>> IP of Printserver: 10.1.1.1
>>>>> IP of Printer 10.1.2.1
>>>>> Printername (on printserver): EDV1-Laser
>>>>> Sharename: EDV1-Laser
>>>>> Name of Driver: HP Laserjet 2100 PCL 6
>>>>>
>>>>> Is it possible to use this printer without using a loginscript?
>>>>>
>>>>> Or should I connect to LDAP of my DC? Can I use the printers in my AD
>>>>> with OTC?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Andreas Mayer
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> October Webinars: Code for Performance
>>>>> Free Intel webinars can help you accelerate application performance.
>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>>>>> from
>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> The Open Source Thin Client Solution http://openthinclient.org
>>>>> openthinclient-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/openthinclient-user
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most 
>>>> from 
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>
>>>>
>>>> _______________________________________________
>>>> The Open Source Thin Client Solution http://openthinclient.org
>>>> openthinclient-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/openthinclient-user
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most 
>>> from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> The Open Source Thin Client Solution http://openthinclient.org
>>> openthinclient-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/openthinclient-user
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most 
>> from 
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> The Open Source Thin Client Solution http://openthinclient.org
>> openthinclient-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openthinclient-user
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> The Open Source Thin Client Solution http://openthinclient.org
> openthinclient-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openthinclient-user

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user

Reply via email to