How do I prevent desktop shortcuts from being made in Windows?

8

1

It is a common practice to have installers place shortcuts by default on the desktop, but most installers allow you to disable this by unchecking the appropriate checkbox. There are also installers (like Adobe Creative Cloud updates) that don't have an option to not place a shortcut on the desktop. I really hate desktop shortcuts but I still want to use my desktop for temporary files, quick management, etc. Is there any way I can automatically hide shortcuts (*.lnk files) on my desktop?

dylanweber

Posted 2015-04-25T03:21:58.037

Reputation: 158

There's an option to hide all desktop icons somewhere. – Huey – 2015-04-25T06:57:02.177

1I can't imagine there's a solution that doesn't present more problems than it fixes. If you run installers under a different usercode then the shortcuts will be on the desktop of that user so you won't see them (unless it's creates the shortcut for all users). However, installing programs as a user other than you will give you lots of hassle. I would turn the question around and ask you why manually deleting the occasional shortcut is such a hardship? – Graham Gold – 2015-04-25T08:18:12.543

Basically, all I'm asking for is how to automatically hide *.lnk files, and definitely nothing more. I still want a useable desktop with icons. – dylanweber – 2015-04-25T19:32:59.460

1@dylanweber: If all you want to do is hide the files (which is not at all what the question title implies), just create a scheduled task that regularly runs a batch file that hides Desktop\*.lnk – Karan – 2015-04-25T21:01:50.107

Thanks for this question, Dylan. These unwanted icons that we have to delete after every update are the ultimate display of disrespect by software developers such as Adobe, Google et al.

Have you ever found a good, easy, reliable solution? – Ralf – 2018-02-26T07:04:56.680

1@Ralf I have not but I assume it could be done with a script and a schedule but I only have experience in Linux and macOS so I decided to just live with it. – dylanweber – 2018-02-27T04:50:11.200

Answers

1

First, make a copy of your desktop (e.g. DesktopCopy folder containing the shortcuts you want on the desktop) and put it in the documents folder (or another user defined folder).

Secondly, create a batch file which will copy (and overwrite!) your desktop with the files from the DesktopCopy folder). You can use the mirror function of robocopy deleting files not present in the source directory.

Then, with the task scheduler create a task (CopyDesktopContents), which starts at windows start up or logging in and which runs the batch.

If you want to add your own shortcuts on your desktop, just do so and again copy the contents of your desktop to the DesktopCopy folder, so that next time you (or another user) starts up the computer or logs in, the new copy will be used by the batch file.

Andre Timmermans

Posted 2015-04-25T03:21:58.037

Reputation: 11

Reasonably neat solution but it still requires maintenance - if you install something you want a shortcut for, and you forget to update the DesktopCopy folder, you will wipe the new shortcut(s). Perhaps the script should compare first, notify of differences and give you a choice of whether to update the baseline with each new shortcut or remove it from the desktop. – Graham Gold – 2015-04-25T15:44:41.790

This doesn't allow me to still have a usable desktop while also completely avoiding the details of the question. I'm only concerned about shortcuts. – dylanweber – 2015-04-25T19:34:17.977

If deleting (or hiding) .lnk foles from you rdesktop, just schedule a task deleting those files, triggered from startup and repeated every 1 or 2 minutes. – Andre Timmermans – 2015-04-25T20:24:39.640

-1

I have an easy way to do it.

Go to your File Explorer (ctr + e) and right-click the desktop folder. Next, click on properties and go to security tab, then click on edit and change the permission to deny for the users.

DENY

Then click apply and okay. NOW YOU'RE READY!

wyeth tadena

Posted 2015-04-25T03:21:58.037

Reputation: 1

There're no needs to cry! – Toto – 2017-12-23T13:44:54.367

That also makes it hard to use the desktop for shortcuts, folders and files that you actually want to use it for. – Ralf – 2018-02-26T07:02:04.627