

Note: Just replace the drive letter G: with your own.ģ.Once you have taken the ownership through the above command go to your removable drive.Ĥ.Permanently delete AutoRun.inf file from the removable drive. The easiest way to remove autorun.inf file is to copy all the data to your hard disk and then format the drive containing the autorun.inf.ġ.Press Windows Key + X then select Command Prompt (Admin).Ģ.Type the following command in the cmd and hit Enter: Method 1: Backup Data and Format the Drive Make sure to create a restore point just in case something goes wrong. Method 5: Run CCleaner and Malwarebytes.Method 4: Delete Autorun.inf file in safe mode.Method 3: Remove autorun.inf file by using the command prompt.Method 1: Backup Data and Format the Drive.It doesn’t really matter which of the above case you have if you want to delete the corrupted autorun.inf file then there are various possible methods available and the next time you plug in your device the autorun.inf file will be automatically created. If you try to delete the autorun.inf and you receive the “Acces denied” or “You need permission to perform this action” error message then there are two possibilities: One the file is infected by virus & the virus has locked the file so that you can’t delete or modify the file in any way, other is that the antivirus has locked the file so that any virus or malware can’t infect the file. The Autorun.inf was abused by hacker community and is still used to execute malicious program automatically on the user machine without letting the user know about it. AutoRun basically automatically launch a program associated with the removable drive which could guide the user through the installation process or any other process. In order to actually see the autorun.inf file you must have checked mark the option “Show hidden files and folders” in Folder Options. In order for these function to work the autorun.inf file must be located in the root directory of the volume. How to delete Autorun.inf file: The autorun.inf is a text file which gives the removable drive AutoPlay and AutoRun functions.
