Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

VBS script for deleting shortcuts on All Users Desktop


Recommended Posts

Posted

Hi

 

I have 4 different shortcuts that is on All users desktop on 300PC. I would like to delete them .

I thought of adding a .Vbs file on the shutdown script in the GPO, so that it deletes the shortcuts when the PC is restarted.

 

I am planning to place under computer configuration - Policies-Windows Settings-Scripts- Shutdown

Hope this way will work.

 

Please post me the syntax to do

Thanks in advance

Posted

I tried this from Student workstation OU - Shortcut policy- Computer configuration-preferences-windows settings-shortcuts.

Create a new shortcut with the same name on the desktop shortcut and in the action-Delete

Name- Shortcut1

Target type:URL

Location:All Users desktop

 

For some reason the shortcuts are not getting deleted.

So thought a VBS script would do this job.

 

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...