When trying to publish applications in Studio using the start menu option, an error is displayed:
'Start menu shortcuts could not be retrieved' Error Id: XDDS:BDD41B19 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.PowerShellSdk.ApplicationService.PSApplicationService.DiscoverApplications(DiscoverVdaApplicationsRequest discoveryRequest, Canceller canceller, IProgressReporter progressReporter) at Citrix.Console.DesktopGroups.UI.Dialogs.StartMenuApplicationDiscoverer.Start() DesktopStudio_ErrorId : NoStartMenuShortcuts Sdk Error Message : Start menu shortcuts could not be retrieved Sdk Error ID : Citrix.XDPowerShell.Broker.NoStartMenuShortcuts,Citrix.Broker.Admin.SDK.GetBrokerMachineStartMenuShortcutsCommand ErrorCategory : NotSpecified DesktopStudio_PowerShellHistory : DiscoverVdaApplicationsScript 23/06/2016 12:25:02 Get-BrokerMachineStartMenuShortcuts -AdminAddress "XXXXXXX:80" -MachineName "XXXXXXXXX" Get-BrokerMachineStartMenuShortcuts : Start menu shortcuts could not be retrieved + CategoryInfo : InvalidOperation: (:) [Get-BrokerMachineStartMenuShortcuts], SdkOperationException + FullyQualifiedErrorId : Citrix.XDPowerShell.Broker.NoStartMenuShortcuts,Citrix.Broker.Admin.SDK.GetBrokerMachineStartMenuShortcutsCommand
A different error might also be seen:
Transaction ID: XXXXXXXXXX Action Name: APP_GetStartMenuApplications Exception: DesktopStudio_ErrorId : NoStartMenuShortcuts Error Source : CitrixBrokerService Sdk Error Message : Start menu shortcuts could not be retrieved Sdk Error ID : Citrix.XDPowerShell.Broker.NoStartMenuShortcuts,Citrix.Broker.Admin.SDK.GetBrokerMachineStartMenuShortcutsCommand ErrorCategory : NotSpecified DesktopStudio_PowerShellHistory : DiscoverVdaApplicationsScript 9/1/2022 4:14:28 PM Get-BrokerMachineStartMenuShortcuts -AdminAddress "XXXXXXXXXX" -BearerToken ******** -MachineName "XXXXXXXXXX" Get-BrokerMachineStartMenuShortcuts : Start menu shortcuts could not be retrieved + CategoryInfo : InvalidOperation: (:) [Get-BrokerMachineStartMenuShortcuts], SdkOperationException + FullyQualifiedErrorId : Citrix.XDPowerShell.Broker.NoStartMenuShortcuts,Citrix.Broker.Admin.SDK.GetBrokerMachineStartMenuShortcutsCommand
Running the cmdlet Get-BrokerMachineStartMenuShortcuts targeting the machine with the error will also provide a similar error message.
Verify the permissions for the Network Service account on all items in the Start Menu folder C:\ProgramData\Microsoft\Windows\Start Menu
The Sysinternals tool AccessChk can be used for this: https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk
accesschk "NetworkService" C:\ProgramData\Microsoft\Windows\Start Menu -s -n
Network Service account did not have sufficient permissions on a file or folder within the Start Menu.