During a farm migration moving across printer session policies is a tedious task.
The best method is to use my Printer management tool www.PrintMap.co.uk This is a simple GUI way to manage printers. Its lightning fast and easy to install and is designed to suit Xenapp\XenDesktop but is supported on all desktop delivery and application delivery methods.
The following allows you to script this in powershell with the help of the Citrix.common.GroupPolicy cmdapplet.
This should hopefully make life a bit easier.
Create a new Policy
new-item XenApp Farm Policy:\Users\PrintPol
Create a Session Printer
set-itemproperty LocalFarmGPO:\Users\PrintPol\Settings\ICA\Printing\SessionPrinters -name values "\\server\printer,model=Printer Model Name,Location=Location"
Filter the Policy
set-itemproperty LocalFarmGPO:\Users\PrintPol\Filters\User\user@domain.com
Set Default Printer
Set-itemproperty LocalFarmGPO:\Users\PrintPol\Settings\ICA\Printing\DefaultClientPrinter -name value "\\server\printer"
Disable or enable a Policy
set-itemproperty "LocalFarmGPO:\User\PrintPol" -name enabled -value false
No comments:
Post a Comment