Start menu shortcuts not enumerating and throwing error XDDS:5C0D509B

Start menu shortcuts not enumerating and throwing error XDDS:5C0D509B

book

Article ID: CTX232108

calendar_today

Updated On:

Description

Adding application on a Delivery Group from Start Menu will fail with error "Start Menu Shortcuts could not be retrieved"

Error Id: XDDS:5C0D509B

Exception:
Citrix.Console.Models.Exceptions.ScriptException Start menu shortcuts could not be retrieved.
at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host)
at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)
at Citrix.Console.PowerShellSdk.ApplicationService.Scripts.DiscoverVdaApplicationsScript.DiscoverVdaApps(IProgressReporter findingMachineProgress, IProgressReporter loadingApplicationsProgress)
at Citrix.Console.PowerShellSdk.ApplicationService.Scripts.DiscoverVdaApplicationsScript.RunScript()
at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
at Citrix.Console.DesktopGroups.UI.Dialogs.StartMenuApplicationDiscoverer.Start()

Resolution

Given permission to Network Service over Start Menu and Administrative Tools using following command on VDA
1) CACLS "C:\ProgramData\Microsoft\Windows\Start Menu"  /E /T /C /G "NETWORK SERVICE":R
2) CACLS "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools"  /E /T /C /G "NETWORK SERVICE":R
3) CACLS "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"  /E /T /C /G "NETWORK SERVICE":R

Problem Cause

Network Service doesn't have permission over Start Menu and Administrative Tools folders on VDA