jgould763
asked on
How to delete a file from all Users Desktops through a script or Kaseya
I need a script to run that will delete a file from All Users Profiles desktops.
I would like to push this out through Kaseya but am open to other suggestions
DEL C:\Documents and Settings\HELP NEEDED HERE\Desktop\OrderForm.*
Any ideas?
I would like to push this out through Kaseya but am open to other suggestions
DEL C:\Documents and Settings\HELP NEEDED HERE\Desktop\OrderForm.*
Any ideas?
for /d %%K in ("C:\Documents and Settings\*") do del "%%~fK\Desktop\OrderForm.*"
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
For just the All Users profile, you can use this:
del /f /q "%allusersprofile%\Desktop \OrderForm .*"
del /f /q "%allusersprofile%\Desktop
Open in new window