Many people are wondering where the Printer Management node used for replicating print drivers is located in Citrix XenApp 6.x. This is now managed with the Windows Printer Management Role in Windows Server 2008 R2 or through XenApp PowerShell Cmdlets. I’m a big fan of the Citrix Universal Printer Driver but in some cases that’s not good enough and replicating print drivers to all Citrix XenApp servers are required. Luckily there’s light in the end of the tunnel.
Citrix Universal Print Server Tech Preview is available and will most likely be released at Citrix Synergy 2012. The Citrix Universal Print Server Technical Preview extends XenApp 6.5 and XenDesktop 5.5 Universal printing support to network printing. This feature eliminates the need to install numerous network printer drivers on XenApp and XenDesktop hosts, and enables more efficient network utilization. The new Citrix Universal printer driver supports direct network printing on Windows and non-Windows clients.
So while we wait for this new Citrix Universal Print Server, here’s the steps for replicating print drivers with XenApp PowerShell Cmdlets :
First you’ll need to decide which Citrix XenApp server you’ll be using as the source. A good suggestion would be your Preferred Data Collector. In our example that would be XA65-01. Start PowerShell as Administrator and run the following commands
- Set-ExecutionPolicy RemoteSigned
- Add-PSSnapIn Citrix.*
- Get-XAPrinterDriver –Servername XA65-01
This will display a list of all the locally install printer drivers on that particular server. The simplest way to install a lot of printer drivers is to connect to your print server and select to connect to the printers you need.
Now rerun the command : Get-XAPrinterDriver –Servername XA65-01
To make sure that all your Citrix XenApp servers have the same printer drivers it’s recommend to add the required printer drivers to the Auto-Replication-List. A good tip would be to have these commands in a Notepad file to make it easier for you to Add/Remove printer drivers.
Simply copy and paste the commands to the PowerShell window.
Add-XAAutoReplicatedPrinterDriver “Print Driver Name” -SourceServerName XA65-01
To display a list of Printer Drivers in the Auto-Replication-List you’ll use the following command :
Get-XAAutoReplicatedPrinterDriver
I’m pretty sure there’s some smart people out there in the Citrix Community who have already created some smart automatic scripts for replicating print drivers in Citrix XenApp 6.x. Please share with the rest of the readers by adding your comment below if you know any good resources.
Resoures :
- How to Replicate Print Drivers with PowerShell in XenApp 6
- Understanding Universal Print Server (UPS)

If you like this post enter your information below to receive our FREE "Citrix XenApp 5.0 on Windows 2008" eBook and a 7 day eCourse with Tips & Tricks never revealed before.

Are you setting up a new Proof of Concept 










{ 2 comments… read them below or add one }
The PowerShell code below could be taken as a start for a scripted/automated solution to add printer driver names to the replication list.
Copy the code in notepad, fill in the driver names that shouldn’t be added to the replication list ($ExcludedDriverList parameter), and save the code as .ps1 file
Btw, I didn’t test it. Therefore take care
===
param (
$CitrixServer = $env:COMPUTERNAME,
$ExcludedDriverList = @{“…”, “…”}
)
Add-PSSnapin Citrix* -ErrorAction SilentlyContinue
Get-XAPrinterDriver –Servername $CitrixServer | ForEach-Object {
if ($ExcludedDriverList -notcontains $_.DriverName) {
Add-XAAutoReplicatedPrinterDriver $_.DriverName -SourceServerName $_.ServerName
}
}
===
Awesome Frank, thank you very much
{ 1 trackback }