Printing in Citrix Presentation Server 4.0 and 4 - v4

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 22

Sonal.pandey@nityo.

com 02065009379

Hands-on Technical Workshops

Printing in Citrix Presentation Server 4.0 and 4.5 Environments Lab Documents

Lab 1: Creating Printers in an ICA Session


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console Print HOT Client VM o Username: citrix o Password: citrix o Citrix Program Neighborhood (ICA client 10.1) o Pass-through authentication for Program Neighborhood

Estimated time to complete this lab: 10 minutes

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

Creating Printers in an ICA Session


1 Log into the client workstation using the credentials: user: citrix password: citrix 2 Run the script printcreate.cmd from C:\scripts

Open the Printers and Faxes applet. a. Notice there are four (4) printers created two local printers and two network printers.

Open the Program Neighborhood located on the desktop.

Open the HOTFarm application set.

Launch the HOTDesktop application.

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

Lab 2: Altering Printer Behavior with Policies


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console Print HOT Client VM o Username: citrix o Password: citrix o Citrix Program Neighborhood (ICA client 10.1) o Pass-through authentication for Program Neighborhood

Estimated time to complete this lab: 10 minutes

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

Lab 3: Using StressPrinter to Test Drivers


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console

Estimated time to complete this lab: 10 minutes

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

Lab 4: Configuring Universal Printer Driver Properties


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console Print HOT Client VM o Username: citrix o Password: citrix o Citrix Program Neighborhood (ICA client 10.1) o Pass-through authentication for Program Neighborhood

Estimated time to complete this lab: 10 minutes

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.

Launch the Presentation Server Console.

Select the Policies node

Right click on each policy and choose Disable.

Right click on the policy node and choose Create policy.

Name the policy UPD only and click OK.

Open the policy properties and select Universal driver under Printing>Drivers. Enable the policy and choose Use universal driver only.

Apply the policy to the server.

10

Log on to a session from the client machine

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

Click Local settings.

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

Lab 5: Creating Session Printer Policies


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console Print HOT Client VM o Username: citrix o Password: citrix o Citrix Program Neighborhood (ICA client 10.1) o Pass-through authentication for Program Neighborhood

Estimated time to complete this lab: 10 minutes

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

one chosen in the Session Printers policy

2 Log off the session 5

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

Lab 6: Follow the Print Job


Before You Begin To complete this lab, you must have: Print HOT Server VM o Username: Administrator o Password: citrix o Presentation Server 4.5 o Pass-through authentication for the Presentation Server Console

Estimated time to complete this lab: 10 minutes

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.

Launch the Notepad application and type some text

Open Printers and Faxes in the session.

Right-click an auto-created client printer (HP DeskJet 560).

Select Pause printing.

Open Printers and Faxes on the client workstation.

Right-click on the same printer (HP DeskJet 560) and choose Pause printing.

On the server, launch Performance Monitor.

Delete the default counters by clicking the X tool bar button three times.

10

Add a new counter by pressing the + button.

11

Select ICA Session in the Performance object drop-down menu.

12

Mark the Select counters from list option.

13

In the counter list, choose Output Printer Bandwith.

14

In the Instance list, select your session number.

20

15

Click Add.

16

Click Close.

17

On the client workstation, launch filemon.exe located in c:\tools\filemon.

18

Pause the capture by clicking the magnifying glass tool bar button.

19

Choose Clear display from the Edit menu

20

Choose Filter/Highlight from the Options menu

21

In the Include textbox, type wfica32.exe; cpviewer.exe; pcl2bmp.exe.

22

Click OK.

23

Restart the capture by clicking the toolbar button again.

24

Return to your Notepad document and select file -> print

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

Scroll to the top of the capture.

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

You might also like