Printing in Citrix Presentation Server 4.0 and 4 - v4
Printing in Citrix Presentation Server 4.0 and 4 - v4
Printing in Citrix Presentation Server 4.0 and 4 - v4
com 02065009379
Printing in Citrix Presentation Server 4.0 and 4.5 Environments Lab Documents
Scenario
Objective: To observe how different types of printers defined on the client workstation are created differently in an ICA session. To complete this lab: Create four printers on the Print HOT Client. Launch a published desktop. View Printers and Faxes in the session. Log into the Print HOT Server. View Printers and Faxes on the server.
Step-by-Step Use the following procedure to complete Lab 1: Creating Printers in an ICA Session. Step Action
Open the Printers and Faxes applet. a. Notice there are four (4) printers created two local printers and two network printers.
Open Printers and Faxes in the published desktop session. a. Notice that four (4) printers are created in the session.
b. Change your view to details c. Note the printers that have auto-created client printer comments
d. Note the printers that are network printers. 8 Leave this session open and log into the Presentation Server as the administrator (user: administrator, password: citrix) Open the Printers and Faxes applet. a. Note which printers are visible as administrator
Step
Action
b. You will only see the auto-created client printers. The network printers are not visible to the administrator 10 Right-click on one of the printers and select properties. You will receive an error that says you do not have permissions to view the printer. This is expected and can be changed through the use of a registry flag. 11 12 Return to the client machine. Log out of the ICA session. STOP - END OF LAB 1. Please turn your tent card over so
the Done with lab side is facing the front of the room
Scenario
Objective: To create a job-routing policy and observe how the printers created differ from those using the default behavior. To complete this lab: Create a new CPS policy named routing policy. Enable print job routing. Configure the policy to always connect indirectly as a client printer. Apply the policy to the CPS server. Launch an ICA session from Print HOT Client. View Printers and Faxes on the client. View Printers and Faxes on the server.
Step-byStep
Use the following procedure to complete Lab 2: Altering Printer Behavior with Policies. Step Action Altering Printer Behavior with Policies 1 2 3 4 5 6 7 8 9 10 Open the Presentation Server Console. Right-click on the Policies node. Select Create Policy. Name the policy routing policy and click OK. Right-click on the newly created policy and choose Properties. Find the Print job routing policy under Printing->Client Printers and enable the policy by clicking the Enabled radio button. Configure the policy by clicking the Always connect indirectly as a client printer radio button. Click OK. Right click on the routing policy and select Apply this policy to.. Highlight Servers in the left pane and check the filter based on servers box in the right pane. Note that the Presentation Server has a blue check mark, indicating that it is selected. 11 12 13 Click OK. Return to the client machine and launch the HotDesktop application session. Once the session is launched, open the Printers and Faxes applet. Notice that all the printers are now auto-created client printers. 14 Return to the Server desktop and open Printers and Faxes. Notice that all of the printers are now visible to the administrator. 15 Log off the HotDesktop Session
STOP - END OF LAB 2. Please turn your tent card over so the Done with lab side is facing the front of the room
Scenario
Objective: To use the StressPrinter utility to test for problem drivers installed on your server. To complete this lab: Log into the Print HOT Server desktop. View driver information in Registry Editor. Launch StressPrinter. Run a test with 10 concurrent events, repeated 5 times. View the results log.
Step-by-Step
Use the following procedure to complete Lab 3: Using StressPrinter to Test Drivers. Step Action Using Stress Printers to Test Drivers 1 Log on to the Presentation Server as the administrator. 2 Open the Registry Editor by typing regedt32 at the run prompt 3 Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Envir onments\Windows NT x86\Drivers\Version-3 4 Select each driver key and note the provider value 5 Minimize the registry editor and launch StressPrinters.exe from C:\tools 6 Select a printer driver from the driver list. Highlight the driver and change the Base Printer Name 7 Change the number of concurrent add events to 10. 8 Change the number of times to repeat the test to 5. 9 Click the run button 1 Check the results in the output log. 0 1 This log ca be saved for future reference using the save log button. 1 1 Any errors listed in the result should raise a red flag against that driver. In 2 some cases, the print spooler itself may crash or hang while running the test. This indicates a problem with the driver. STOP - END OF LAB 3. Please turn your tent card over so the Done with lab side is facing the front of the room
10
Scenario
Objective: To create a printer using the Citrix Universal Printer Driver and change the client side properties in order to affect server applications. To complete this lab: Disable all existing policies in the Presentation Server Console. Create a new policy named UPD only. Configure the policy to use the universal printer driver only for all sessions that connect to the server. Launch a session and view printer properties. View the printers local settings.
11
Step-by-Step
Use the following procedure to complete Lab 4: Configuring Universal Printer Driver Policies. Step Action Configuring Universal Print Driver Policies 1 Log on to the Presentation Server.
Open the policy properties and select Universal driver under Printing>Drivers. Enable the policy and choose Use universal driver only.
10
11
Open printers and faxes and notice the driver for each auto-created printer will be listed as citrix universal printer. Right-click a printer and choose properties.
12
13
Click on Printing preferences Notice how the screen does not display any device settings, only the Citrix UPD screen Is displayed.
12
14
15
Take the window that pops up and move it outside of the published desktop window Note: Clicking on local settings launches the client side driver User Interface. The Citrix UPD mirrors the client side driver settings. STOP - END OF LAB 4. Please turn your tent card over so the Done with lab side is facing the front of the room
13
Scenario
Objective: To create a policy to connect network printers for a user when they log on. Observe the registry changes that are made when these policies are resolved and when the printers are created. To complete this lab: Create a new policy in the Presentation Server Console named session printers. Enable the Session Printers rule and a network printer from the domain. Set the network printer as the clients default printer. Apply the policy to the citrix user in the Print domain. Launch a published desktop and verify that the policy is applied correctly.
14
Step-by-Step
Use the following procedure to complete Lab 5: Creating Session Printer Policies. Step Action Creating Session Printer Policies 1 Log on to the Presentation Server as the administrator. 2 Launch the Presentation Server Console. 3 Select the Policies node, right click and choose Create policy. 4 Name the policy Session Printers and click OK. 5 Right click on the policy and select Properties. 6 Select Session Printers in the left pane, under Printing 7 Click the Enabled radio button. 8 Click the Add button. 9 Click New 1 Click Next on the credentials screen to use the administrator credentials. 0 1 Click the Browse for printer radio button 1 1 Double click the domain or workgroup name to expand all the nodes to find all 2 the available print servers in the domain 1 Select the desired network printer and click Finish 3
15
1 Highlight the printer in the center pane and click the Settings button. 4 Note. The available settings that can be chosen as default settings for that printer. 1 Open the Choose clients default printer drop down box and select the printer 5 you just created 1 Click OK. 6 1 Right click the policy and choose Apply this policy to 7 1 Highlight Users in the left pane. 8 1 Check the Filter based on users box. 9 2 Click the Add List of Names button 0 2 Enter domain\user 1 2 Click OK. 2 2 Click OK again 3 2 Go to the client machine and launch the published desktop. 4 Open the printer and faxes folder and note that the default printer is the
16
STOP - END OF LAB 5. Please turn your tent card over so the Done with lab side is facing the front of the room
17
Scenario
Objective: To follow a print job from server application to client and observe its behavior along the way. To complete this lab: Launch the published desktop and type some text in Notepad. Pause the auto-created client printer. Pause the same printer on the client workstation. Launch PerfMon and delete the default counters. Add the Output Printer Bandwidth counter. Launch FileMon on the client and pause the capture. Clear the display and filter for the following text: wfica32.exe; cpviewer.exe; pcl2bmp.exe. Restart the capture. Return to Notepad and print. View the auto-created client printer queue and unpause the printer. Observe the output printer bandwidth counter. Verify the job has spooled on the client. Stop the FileMon capture, locate the wfica32 entry, and note the file it creates.
18
19
Step-by-Step
Use the following procedure to complete Follow the Print Job. Step Action Follow the Print Job 1 Log on to the published HOTDesktop.
Right-click on the same printer (HP DeskJet 560) and choose Pause printing.
Delete the default counters by clicking the X tool bar button three times.
10
11
12
13
14
20
15
Click Add.
16
Click Close.
17
18
Pause the capture by clicking the magnifying glass tool bar button.
19
20
21
22
Click OK.
23
24
25
Select the printer that you paused. (HP DeskJet 560) and click print
26
Check the printer queue on the server. Note that the document is still in the queue. Resume printing on the paused printer in the session Observe the counter in Performance Monitor has spiked and resumed.
27
28
Check the printer queue on the client. The print job should now be in the client print queue. Stop the capture in filemon
29
30
21
31
Observe how wfica32 creates a file in the users temporary directory called splxxxx.tmp. Then cpviewer.exe or pcl2bmp.exe reads that file. This is the client process responsible for sending the print job to the local spooler. Log off the session
32
STOP - END OF LAB 6. Please turn your tent card over so the Done with lab side is facing the front of the room
22