Skip to main content

How to remove autorun.inf file?

How to remove autorun.inf file?

The most common virus malware that is being spread through USB flash drives is sent through Autorun.inf files. Along with the increasing use of the internet and external drives virus attacks are now much faster and common than ever before. Out of that most common viruses used is through the use of autorun.inf file through the use of USB flash drives.
This malware generally creates multiple copies of itself in each drive as a read only and hidden file. It won't let you access your drives by giving you an autorun menu when you double click on anydrive( eg: c: or your usb flash drive )

Solution:
In this tutorial we will be describing the two ways to get rid of these malwares.
·         Delete  autorun.inf file completely using the command prompt window 
·         The second way is with the use of tool: USB immunizer.

1) Using Command Prompt:

This is the most common and standard procedure to delete the malware. Normally when a virus infects a windows system, it automatically generates a file named autorun.inf in the root directory of each drive. This autorun.inf file is a read only, hidden and system file.
Sometimes the folder option is also disabled by this virus. This is deliberately done by the virus to protect itself. autorun.inf will initiate all the activities that the virus performs when you will try to open any drive. You just have to delete this file and restart your system to correct this problem.

Follow the below set of commands in order delete the autorun.inf file from your PC
·         Open Command Prompt (Open Start > Run > type cmd and hit enter). This will open command prompt window. type the following commands on it.
·         Cd\
·         attrib -r -h -s autorun.inf
(Please pay attention to the spacing: no space between dash and the letter & let a space after the r h and s)
·         del autorun.inf, press enter
(If the system returns a "file not found" message - check the spell for autorun.inf)

Now, you have to repeat above steps for all the drives you have on your PC.Eg: (for g drive:
type g: and press enter. Now repeat steps 3 and 4. Similarly repeat step 5 for every hard disk partition)

Restart your system and your trouble will be fixed. However, the program that caused the problem is still in your computer





2) Using Tool (USB immunizer):

ü  Download and install the USB immunizer software from bitdefender .
ü  After you have installed the software, Attach your USB drive to the PC and open the USB immunizer Software installed on the system.
ü  It will open up a pop and say “click on icon to immunize the corresponding device”.
ü  Click on the USB icon to immunize the device and it will change its colour from Red to Green.
ü  As soon as this is done any autorun.inf file present inside it is disabled and will not run the malware into your system.
ü  Now you just need to remove the file and insert it back to verify that it is perfectly working fine.


Comments

Popular posts from this blog

Delete Git/Other Credentials from Windows

 Delete your git credentials from Windows for new repository 1) Search "Credential Manager" on your machine 2) Open "Windows Credentials" from it 3) Under "Generic Credentials" section look for "github/bitbucket" etc. 4) Select drop down and choose Remove credentials Good to go and create Generate new credentials This is very handy when you are changing your remote repository and avoids pushing off data to an incorrect repository and increases security of your git repo.  You can also use the same approach to remove any other saved credentials.  Note: for generating new credentials and adding them please follow the below git hub page SSH Key Generation

Switching between different Node.JS versions

Yes, you can have multiple versions of Node.js installed on your system using **Node Version Manager (NVM)**. you need to install **nvm-windows**. 🔹 Steps to Install and Manage Multiple Node.js Versions on Windows** 1️⃣ Install NVM for Windows Download **NVM for Windows** from official website: 👉 [https://github.com/coreybutler/nvm-windows/releases](https://github.com/coreybutler/nvm-windows/releases) - Install it and restart your computer. 2️⃣ Install Multiple Node.js Versions** - Open **Command Prompt (cmd) or PowerShell** and run: nvm install 18.17.0 # Install Node.js 18 nvm install 22.14.0 # Keep your existing version eg: Node.js 22 List installed versions: nvm list 3️⃣ Switch Between Node.js Versions** nvm use 18.17.0 To switch back to Node.js 22: nvm use 22.14.0 🔹 How to Set a Default Node.js Version** If you always want Node.js 18 to be the default: nvm alias default 18.17.0