This task divided into 3 parts:
1. Install Native printer driver
2. Replicate native printer driver using Powershell
3. Create session policy
1. Install Printer driver on Citrix server XA01, XA02 etc
I know its a very easy job :)
2. Powershell: ##tip
a) launch powershell on any Citrix Server
b) execute this command (Add-PSSnapin Citrix.*)without brackets so you can run Citrix commands
c) Check printer driver (Get-XAPrinterDriver -Servername XA01, XA02 etc.)
d) Replicate required driver (Start -XAPrinterDriverReplication -DriverName "HP...." -TargetServerName XA02 )
****Enable Autoreplication of any driver (Add-XAAutoReplicatedPrinterDriver -DriverName "Hp..." -ServerName XA01)
****Remove Driver (**Remove-XAAutoReplicatedPrinterDriver -DriverName "Hp..." -ServerName XA01)
e) repeat step C after sometime to check if driver(s) is replicated successfully or not. Look into event logs for any failure.
3) Create Session Policy
Job Done ;-)
##tipDepending upon permissions level, you may require to enable remotesigned policy to make changes through powershell as below
Query execution policy for any restriction
get-executionpolicy
If restricted, remove it by below and press Y
set-exectutionpolicy remotesigned
No comments:
Post a Comment