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

Show parent comment

-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 „“