- Create a directory in
%appdata%/Microsoft/Windows/Start Menu/Programs/(e.g. Custom);
- Create a shortcut to a batch/executable/target in the directory;
2.1. (Optional) Wait for 5-20 seconds so the OS could handle the changes;
- Search for the shortcut using Start Menu;
- Right click on the result and press
Pin to Start.
I used the suggestion above and Windows 10 force modified my path to
C:\Windows\System32\cmd.exe /c” C:\pathto\batch.bat”.
This works for me.
Create the shortcut file in a folder other than Programs. Then copy/move that shortcut into the Programs folder. You may need to provide admin credentials, but it’ll work.
The solution by @User552853 ends up copying the shortcut to
%AppData%\Microsoft\Windows\Start Menu\Programs, meaning that the
Start Menu link is different than the original shortcut created in the answer. This is important to keep in mind because updates to the original shortcut won’t be reflected when the
Start Menu shortcut is clicked. My workaround is:
- Delete the
- Right click on the original (but modified) shortcut and select
Pin to Start
Pinning to taskbar works in a similar but copies the shortcut to a different folder.