![]() ![]() Also, assume that the user performing this procedure will always be a local admin. Are there other options to somehow copy it to the Public Desktop? If there are no alternatives, are there any other ways that can be used in order to successfully create that shortcut without raising any security flags? Please, no GPO solutions, i would like to be able to achieve this within the batch file or perhaps with an external command / utility (preferably at no-cost). The shortcut is not a simple one (the exe is on a network path, it has parameters after the exe and also an icon from an external library, not from the exe itself) so somehow creating it would probably be rather tricky. I also considered PowerShell, but it seems there are security restrictions there which make the successful execution of a script uncertain. It did not return an error but also did not copy the file. ![]() ![]() There were some suggestions to use "%ALLUSERSPROFILE%\Public Desktop" instead, because in Win10, that's the "all users desktop" dir. In there, when the copy command is executed, it returns an "access denied" error (even with Run As Admin and given the fact that the user executing it is already a local admin).Īfter some internet search, i found that this is due to security reasons implemented in Win10. It used to work just fine, up until Windows 10. To get an overview of the mklink utility, type. You can use the mklink command to create hard and soft links. First up, launch the Command Prompt by typing cmd in the Start menu search bar, then right-click the Best Match and select Run as administrator. I have a batch file that performs certain operations and at the end, it copies (using a simple "copy" command) an. On Windows 10, you can set up symlinks through the Command Prompt using the mklink command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |