Jump to content
Welcome to our new Citrix community!
  • 0

How to query Citrix Policy Values


John Provost1709162398

Question

Hello, I manage an environement with over 100 Citrix Policies, most of them for defining Session Printers.  having so many policies becomes a bit unwieldy and I need to be able to quickly query the list to find printers.  Using Powershell, I;ve gotten this far....

 

#Load the important citrix bits

Add-PSSnapin citrix*
Remove-module Citrix.GroupPolicy.Commands
Import-module 'C:\Program Files\CITRIX\Telemetry Service\TelemetryModule\Citrix.GroupPolicy.Commands.psm1'
New-psdrive -name LocalFarmGpo -psprovider CitrixGroupPolicy -controller localhost \

 

$GP=Get-CtxGroupPolicy

Get-CtxGroupPolicy $gp[10]|Get-CtxGroupPolicyConfiguration|select DefaultClientPrinter, SessionPrinters|fl

 

The OutPut looks like this

PS C:\Windows\system32> Get-CtxGroupPolicy $gp[10]|Get-CtxGroupPolicyConfiguration|select DefaultClientPrinter, SessionPrinters|fl


DefaultClientPrinter : @{State=Enabled; Value=; Path=ICA\Printing\DefaultClientPrinter}
SessionPrinters      : @{State=Enabled; Values=System.Object[]; Path=ICA\Printing\SessionPrinters}

The Value returned is System.Object[] for the SessionPrinters.  

 

How can I have the actual printer names returned as configured in the policy?  ie \\server\printername

 

Thanks!

 

 

 

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...