Citrix Admin unable to perform any admin operation on Policies due to error.
Give error while trying to retrieve policies through following PowerShell commands
Add-PSSnapin Citrix*
Import-Module "C:\Program Files\CITRIX\Telemetry Service\TelemetryModule\Citrix.GroupPolicy.Commands.psm1"
New-psdrive -name LocalFarmGpo -psprovider CitrixGroupPolicy -controller localhost \
Get-CtxGroupPolicy
Add-PSSnapin Citrix*
Export-BrokerDesktopPolicy | Out-File -FilePath C:\Temp\ExistingPolicyExport.txt
Step 2 :
Get existing policy name and their type using following command
Get-CtxGroupPolicy | Select PolicyName, Type
Step 3 :
Get policy settings using following command for all PolicyName and save output for future reference.
Get-CtxGroupPolicyConfiguration -PolicyName <PolicyName> -ConfiguredOnly
Step 4 :
Delete problematic policy or all policies using following commands. If it does not resolve proceed with next steps.
Remove-CtxGroupPolicy -PolicyName <PolicyName> -Type Computer
Step 5 :
Export policy from another CVAD site of the same version using following command. Copy the output file C:\Temp\PolicyExportFromOtherCVADSite.txt to the problematic site Delivery Controller
Add-PSSnapin Citrix*
Export-BrokerDesktopPolicy | Out-File -FilePath C:\Temp\PolicyExportFromOtherCVADSite.txt
Step 6 :
On the problematic site Delivery Controller execute this command to import and restart Broker Service or reboot the server.
Import-BrokerDesktopPolicy (Get-Content C:\Temp\PolicyExportFromOtherCVADSite.txt)
Step 7 :
Open Studio Policies node and delete policies which got exported in Step 6 and create new policies with settings saved in Step 3.