Creating a script to delete a file
Posted on 2006-11-06
We have a Win2K AD. Currently there is a logon.bat file which gets pulled down every time a user logs on. It basically automatically maps some network drives. I wish to delete a certain file from the machine. I'd like to do this by group policy, rather than going round all the machines manually and doing it! Would this line be sufficient?
del c:\program files\folder\folder2\file.exe
What if the user has insufficient privileges to delete that file?