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 ×

Script to delete Desktop ini from users folders


Recommended Posts

Posted

Hey there, im after a way of deleting all my users desktop.ini files without manaual searching and deleting them ?

 

batch file or script that can search subfolders and delete them, so i can schedule it to run

 

thanks

nick

  • 3 weeks later...
Posted
Just found a problem with this, Vista/7 network recycle bin uses a desktop.ini file, and you can't search for it in explorer. So you can't move those files anywhere without deleting all the recycle bin special folders
  • 2 weeks later...
Posted

New solution: 2 bat files

 

psexec \\dc01 filescrn screen modify /path:e:\users /type:passive

psexec \\dc02 filescrn screen modify /path:e:\users /type:passive

 

and again with /type:active after doing what you need

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...