I set up a Cygwin/X environment in my Windows 10 computer and it created a Start Menu shortcut for all users, named XWin Server.
However, I need to change the shortcut to enable TCP connections. To do that, I just need to add -- -listen tcp
to the end of the shortcut's Destination field.
The shortcut is located in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin-X\.
But I can't change it because if I try to change the Destination directly in the shortcut in the folder, Windows asks for administrator privileges and even if I click in "Continue" icon (with the shield), the change fails reporting absence of administrator privileges.
If copy the shortcut to other folder (Desktop folder) and change it, it does change. However, when I copy the new shortcut back to the proper folder, it is not recognized as a shortcut and isn't listed in the Start Menu.
Ideas of how to proceed?
P.S.: I've done that in the past and I know that worked, but it doesn't work anymore. Windows 10 v1703.
icacls "%ProgramData%\Microsoft\Windows\Start Menu" /grant Everyone:F /T