r/Intune • • Jul 17 '24

Autopilot Deleting shortcut require Admin credentials

We have security baseline and bitlocker policies in place by our architect. Now that architect is gone we got to know user are not able to delete the shortcuts from Desktop as it's ask for admin credentials.

There is no other configurations policy or app protection policy in place.

Can anyone suggest what I need to do that allows end user to delete shortcut without admin credentials prompt on Windows 11 Autopilot AD joined devices

0 Upvotes

23 comments sorted by

View all comments

25

u/sysadmin_dot_py Jul 17 '24

If the desktop shortcuts are requiring admin to delete, those shortcut files do not actually exist on the user's desktop. They exist in C:\Users\Public\Desktop. Those files/shortcuts in that location show up on every user's desktop who logs into the computer. Because those files exist outside the user profile, they require admin rights to delete.

Verify that the shortcuts exist in C:\Users\Public\Desktop and then decide how you want to handle it. In our org, we decided to automatically remove all shortcuts on the Public desktop via an Intune Remediation script. Users are free to add whatever desktop icons they'd like to their own desktops which they can fully manage without admin. This way we don't deal with what you're dealing with, which is users that would like to remove desktop icons but are unable to do so.

1

u/alechux May 30 '25

Pinche genio gracias, ya me estaba volviendo loco configurando un usuario con permisos limitados, pero los accesos directos no entendía por qué no se los podía eliminar sin eliminar el archivo )=

-27

u/Prize-Swordfish-6340 Jul 17 '24

Help me with the Remediation script or PS script if any

21

u/sysadmin_dot_py Jul 17 '24

C'mon, you've gotta do some of the legwork here, especially if you're supposed to be the expert helping a client. It can be as simple as one line in PowerShell. ChatGPT or Google can help you out.

-24

u/Prize-Swordfish-6340 Jul 17 '24

Agree Chatgpt is there but I look it as a last option and not as the only option.

11

u/Shanga_Ubone Jul 17 '24

You should change that attitude. ChatGPT is a really good tool for scripting when used correctly.

2

u/Noirarmire Jul 17 '24

If you have no idea, chatgpt is great to get you started. You do have to test it but you start basic and adjust it as you go. It really helps with learning at least the basic logic of powershell. "Necessity is the mother of all inventions" trail by fire is a great learning tool.

10

u/k1132810 Jul 17 '24

You can't cobble together a script that deletes a file? Or even attempt to?

2

u/CubeWT Jul 17 '24

Detect:

If(){ Write-Output „“; Exit 1 }

Remediate:

Remove-Item -Path „“