Autorun.inf Access Denied

Solved/Closed
raine - Jul 5, 2021 at 05:55 PM
HelpiOS
Posts
12729
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
August 9, 2022
- Jul 13, 2021 at 02:26 PM
Hello,

I have a flash drive that has autorun.inf on it, (not really sure why since I didn't actually use it), and when I went through command prompt as administrator, changed it to E:, (which was the USB letter drive), confirmed the virus was in the drive with dir /w/a, and used the del autorun.inf command, all I got was access denied. I've tried a number of different suggestions on how to remove it, but anything involving trying to delete autorun itself gets access denied. How do I get around it?

System Configuration: Windows / Firefox 89.0

2 replies

HelpiOS
Posts
12729
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
August 9, 2022
1,801
Jul 10, 2021 at 05:39 PM
Hi,

Try the command attrib -r -h -s autorun.inf and then use the del autorun.inf command.

If the problem persists, make a copy of your data and format the drive.

Good luck.
1
Unfortunately that doesn't work either. I type in a command and hit enter and it simply brings up the next line as though I didn't even type anything at all. I don't know what it is about me, but 9/10 times when I try to solve technological issues following steps even a 3rd grader can follow, I have no success. I hit a dead end within literally 1-2 steps that make the attempt a failure. Basically, the standard, simplest solutions will probably not work. I even bought a program called Autorun Virus Remover to remove the file, but all I get when I attempt to use it is I/O error 103. Does it make a difference if I'm using the commands with E: drive instead of C: drive? I don't know why it would, but I can't really think of anything that's different from the normal case.
0
HelpiOS
Posts
12729
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
August 9, 2022
1,801
Jul 12, 2021 at 04:59 AM
Sorry to hear that. You must specify the letter of the USB, namely the letter E: in command prompt. Don't use the letter C: which corresponds to the computer's hard drive.

You can try to start Windows in Safe Mode and then perform the above steps to delete the autorun.inf file. If you're still unable to delete that file, the best way is to format your USB drive. Quit the Safe Mode by restarting your computer.

In File Explorer, go to This PC. Right-click on the USB drive and choose Format. Click Restore device defaults > Start. Note: Copy all your personal files to your computer before formatting!

Good luck.
1
It worked! I literally had nothing on the drive since I hadn't used it for anything yet, so formatting it was actually simple. Thank you!
0
HelpiOS
Posts
12729
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
August 9, 2022
1,801 > Raine
Jul 13, 2021 at 02:26 PM
You're welcome!
0