Pages

Monday 8 September 2014

How To Remove A Virus Using Command Prompt


how to remove a virus using command prompt. Following steps can be used to remove a virus using command prompt from your computer.

Total Step :11

1: Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.

2:  Open the infected drive such as write , g: to go to G drive.

3: Now type dir/w/a . It will show all the files of the drive including hidden files.

4: Locate AUTORUN.INF or any Virus and other suspicious files in the directory.

5: Type command attrib  -r –a –s –h to remove attributes of corresponding file.

6: When you find an Autorun.inf file or any other unusual .exe file just rename it.

Syntax for rename is (rename filename.extension new name ,  for example: (rename autorun.inf virus) to rename autorun.inf file. Here I have renamed it by “virus”.

7: Now you can access the defected drive without affecting the virus.

8: To delete the renamed file go to the defected drive and select the file you renamed.

You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:

9: Type cd recycler command.

10: Again type dir/w/a  to locate all file of the folder.

11: Identify malicious files and delete them using above commands.

Important: Make sure that no other processes being running while performing these actions.

No comments:

Post a Comment