Difference between revisions of "Cool Solution - Printer assignment"

From Univention Wiki

Jump to: navigation, search
(→‎Netlogon scripts: Fixed missing path segment)
Line 6: Line 6:
  
 
== Installation ==
 
== Installation ==
To add the printer assignment to your environment, the package '''univention-printer-assignment''' must be installed on the DC Master:
+
To add the printer assignment to your environment, the package '''univention-printer-assignment''' and the accompanying schema package must be installed on the DC Master:
 
<pre>
 
<pre>
univention-install univention-printer-assignment
+
univention-install univention-printer-assignment univention-printer-assignment-schema
 
</pre>
 
</pre>
  
Line 17: Line 17:
  
 
== Configuration ==
 
== Configuration ==
Now printers can be assigned to groups, which holds the Windows clients as members. To add printers to a group, open the '''[Advanced settings]''' tab and open the module '''Printer Assignment'''. Every printer here is added to the VBS script which is later run by the Windows client.
+
Now printers can be assigned to groups, which holds the Windows clients as members. To add printers to a computer group, open the '''[Advanced settings]''' tab and open the module '''Printer Assignment'''. Every printer here is added to the VBS script which is later run by the Windows client.
 
[[File:Printerassign ucs 3-0.jpeg|200px|thumb|right|Assignment of a printer to the group Guests]]
 
[[File:Printerassign ucs 3-0.jpeg|200px|thumb|right|Assignment of a printer to the group Guests]]
  
 
=== Netlogon scripts ===
 
=== Netlogon scripts ===
To run the printer assignment script, a generic call line must be added to the logon script. For a Samba 3 setup the path is:
+
To run the printer assignment script, a generic call line must be added to the logon script.
 
<pre>
 
<pre>
call %LOGONSERVER%\netlogon\printerassignment\%COMPUTERNAME%.vbs
+
call %LOGONSERVER%\sysvol\<YOUR DOMAIN>\scripts\printerassignment\%COMPUTERNAME%.vbs
 
</pre>
 
</pre>
  
For a Samba 4 setup, the path is
+
 
 +
If you're still running Samba 3, a different call line must be used:
 
<pre>
 
<pre>
call %LOGONSERVER%\sysvol\<YOUR DOMAIN>\scripts\printerassignment\%COMPUTERNAME%.vbs
+
call %LOGONSERVER%\netlogon\printerassignment\%COMPUTERNAME%.vbs
 
</pre>
 
</pre>
  

Revision as of 09:06, 30 September 2016

Produktlogo UCS Version 3.2

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Packages provided by a Cool Solutions Repository are built by Univention, but will not be maintained. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.
Note: This article is not yet reviewed.


The package univention-printer-assignment adds the functionality to your system to assign different printers to selected groups (containing Windows clients) without connecting other printers from the domain to the list of available printers in Windows. If no group contains specific printers, all available printers are connected to the Windows system and leaves the choice of the default printer to the user.

Installation

To add the printer assignment to your environment, the package univention-printer-assignment and the accompanying schema package must be installed on the DC Master:

univention-install univention-printer-assignment univention-printer-assignment-schema

After the installation the provided join script must be run:

univention-run-join-scripts

Configuration

Now printers can be assigned to groups, which holds the Windows clients as members. To add printers to a computer group, open the [Advanced settings] tab and open the module Printer Assignment. Every printer here is added to the VBS script which is later run by the Windows client.

Assignment of a printer to the group Guests

Netlogon scripts

To run the printer assignment script, a generic call line must be added to the logon script.

call %LOGONSERVER%\sysvol\<YOUR DOMAIN>\scripts\printerassignment\%COMPUTERNAME%.vbs


If you're still running Samba 3, a different call line must be used:

call %LOGONSERVER%\netlogon\printerassignment\%COMPUTERNAME%.vbs

Hint: adjust the values according to your setting.

UCR variables

To get a full list of provided UCR variables and allowed values, search for UCR variables starting with printer/assignment:

ucr search --verbose printer/assignment
Personal tools