How to create Start Menu Shortcut for executable ?
Hi,
we have a TeamviewerQS.exe located in a tools folder on each User's Desktop. We now want to pin this as a shortcut to the startmenu.
Like you can do it manually by clicking on this shortcut and choose "add to Start"
If we use DesktopAuthority to do this we get an error message "Could not find action on shortcut to Pin or Unpin"
I have added a screenshot from our settings. Maybe someone can tell me what we need to change to get it to work.
Thank you
Christian
Answers (1)
To solve your issue with pinning TeamViewerQS.exe to the Start menu using Desktop Authority, consider the following steps:
1. Verify Shortcut Location
Ensure the TeamViewerQS.exe is correctly located on the user's desktop and is accessible. The path should be accurate in your Desktop Authority configuration.
2. Modify Desktop Authority Settings
Desktop Authority may need additional settings for shortcuts:
- Action: Confirm that the action is set to Pin to Start or equivalent.
- Shortcut Type: If it references a file, ensure the target file exists before running the action.
3. Script-Based Solution
If Desktop Authority does not support the direct "Pin to Start" action for a shortcut, you can use PowerShell to achieve the pinning. Here's an example script:
powershellCopy code# Define the path to the shortcut$shortcutPath = "C:\Users\Public\Desktop\TeamViewerQS.lnk"# Pin to Start$Shell = New-Object -ComObject Shell.Application$Folder = $Shell.Namespace((Get-Item $shortcutPath).DirectoryName)$Item = $Folder.ParseName((Get-Item $shortcutPath).Name)$Item.InvokeVerb("Pin to Start")
Deploy this script using Desktop Authority to all users' machines.
4. Permissions Check
Ensure that the users have sufficient permissions to modify Start menu settings and that the shortcut is not being blocked by group policy.
5. Troubleshoot Errors
If errors persist:
- Check Desktop Authority's logs for more information on why the action fails.
- Test the pinning process manually to confirm the shortcut works correctly.