How to check and remove virus from your computer without using any antivirus
How to Locate Viruses Using the Attrib Command
This wikiHow teaches you how to find and remove a virus that you know by name from your Windows computer. To do so, you'll use the Command Prompt program.
Opening Command Prompt
Open the Start menu.Click the Windows logo in the bottom-left corner of the screen, or press the key on your keyboard.
- For Windows 8, place your mouse cursor in the top-right corner of the screen, then click the magnifying glass icon when it appears.
Typecommand promptinto the "Search" field.Doing so will search your computer for the Command Prompt app, which will pop up at the top of the search menu.
- If you're using Windows XP, you'll instead click theRunapp on the right side of the Start menu.
Right-click Command Prompt.It resembles a black box. Doing this will invoke a drop-down menu.
- If you're using Windows XP, you'll instead typecmd.exeinto the Run window.
ClickRun as administrator.It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
- You'll need to confirm this choice by clickingYeswhen prompted.
- If you're using Windows XP, you'll clickOKto open Command Prompt.
- You won't be able to run Command Prompt in administrator mode if you're on a restricted, public, or networked computer (e.g., a library or school computer).
Locating and Deleting Viruses
Type in your directory's name.This will typically be the letter on the disk drive (e.g., "C:").
PressEnter.This will change the Command Prompt's search location to your selected directory.
Typeattrib -r -a -s -h *.* into Command Prompt.The "attrib" command forces all hidden, read-only, archived, and system files to display in Command Prompt, and the "-r -a -s -h *.*" section of the command removes these attributes from non-legitimate files.
- Any legitimate system files won't have their attributes removed, and you'll see "Access Denied" listed to the left of them.
PressEnter.Doing so will display all previously hidden system files' names.
Scroll up to find your virus.If you know the virus' name, you'll simply need to scroll up to it. Otherwise, look for files ending in ".inf" and ".exe" that don't look familiar.
- Before proceeding, be sure to double-check any file names you suspect of being viruses by looking them up.
- Common virus names include "autorun.inf" and "New Folder.exe".
Typedel [file name]and pressEnter.Doing so will remove the virus from your computer.
- For example: to delete the "autorun.inf" virus, you'd type indel autorun.inf.
Close Command Prompt.The virus should no longer affect your system. You may even notice a slight increase in computer running speed or app response time.
QuestionIs it also applicable for removing other viruses and malware, like Trojan viruses and worms?wikiHow ContributorCommunity AnswerYes, but not always. Autorun.inf is just one of many ways to run a virus automatically, and this technique will not work on the others.Thanks!
QuestionIf I start my computer up in safe mode, is it safe from any viruses?wikiHow ContributorCommunity AnswerYes -- it actually only starts the most basic software that is needed for the PC to work.Thanks!
QuestionDoes this really work on all hidden viruses?wikiHow ContributorCommunity AnswerNo. There are far more advanced hiding methods that can't be detected this way. However, many free antiviruses are very effective, so you might consider just going with that.Thanks!
QuestionCan I accidentally delete a normal program with this method?wikiHow ContributorCommunity AnswerNo. The attrib command only changes a file's attribute, it doesn't change or delete the file itself. Renaming the file won't delete it either, as the file can be renamed again to the original.Thanks!
QuestionWhat should I do if the response states that the system could not find the specified file?wikiHow ContributorCommunity AnswerYou most likely misspelled the file name. Make sure you are in the correct directory and that you spelled the name of the file correctly. Also, be sure to include the file extension when you enter the file name.Thanks!
QuestionHow do I sift through hundreds of files in the directory to pull out a few virus files?wikiHow ContributorCommunity AnswerYou really just have to look hard for them, I'm sorry. I went through the same thing, but it was worth it, trust me. Malware and viruses can be deadly to your system, so just plug away at it.Thanks!
QuestionWhat if the file that I need the most is corrupted?wikiHow ContributorCommunity AnswerTry to recover the file or try to restore the file from a restore point or backup.Thanks!
How to undo the run as administrator in cmd?
Is every .exe or .xml displayed in cmd prompt is virus?
I have a lot of files so I think that they all are infected with a virus. I copied all the files and tried to delete them but when I delete them different files open and they don't delete? Can any help?
All icons changes to explorer?
Right now I'm looking at the file In my task manager, but it says that it can not find the file. Even so, the file is duplicating rapidly. What do I do to stop it?
Sources and Citations
In other languages:
Español: , Italiano: , Português: , Русский: , Deutsch: , Français: , Bahasa Indonesia: , Nederlands:
Video: How To Remove Virus using cmd (2018)
How to Send Someone an Email
6 Stylish Nude Wedding Guest Dresses For Summer 2015
How to Manage Side Effects of MS Steroid Treatments
How to Buy Soundproofing Curtains
The Queen was nearly assassinated in 1981, according to newly released papers
Rachel Bilson x Coach Poppy Bags
How to Prepare a Model Car for Painting
7 Ways to Look and Feel Your Best During Menopause
Yes, Kanye West Must Have Just Cleaned Out Kim Kardashians Wardrobe Again