How to delete viruses using DOS commands

Written by thomas king
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to delete viruses using DOS commands
Computer viruses are designed to complete malicious tasks. (virus alert image by Pontus Edenberg from Fotolia.com)

MS-DOS, also known as Windows Command Line, is a tool created by Microsoft which allows users to communicate with their Windows operating system. There are several reasons you may want to remove a virus using MS-DOS commands. For example, the virus may have disabled many of the other tools on your computer, or you may not have access to the Internet. Fortunately, you can use MS-DOS commands to remove the virus automatically or manually.

Skill level:
Moderate

Other People Are Reading

Instructions

  1. 1

    Click "Start," type "cmd" (without quotes) into the "Search Programs and Files" box and press "Enter." Or, if you are using a version of Windows released prior to Windows Vista, click "Start > Run," type "cmd" (without quotes) into the dialogue box and click "OK." The Command Prompt opens.

  2. 2

    Type "C:\Program Files\Windows Defender\MpCmdRun.exe --Scan -2" (without quotes) into the Command Prompt and press "Enter." Windows Defender will now scan your entire computer and remove any viruses that it detects.

  3. 3

    Type "regsvr32 /u name.dll" (without quotes) into the Command Prompt and press "Enter." Note that "name.dll" should be replaced with the name of the Dynamic Link Library (DLL) associated with the virus. To find this information, type the name of the virus into the "Search" box found on one of the online manual removal websites (see Resources).

  4. 4

    Type "REG DELETE registryfolder/registryentry" (without quotes) into the Command Prompt and press "Enter." Note that "registryfolder/registryentry" should be replaced with the name of the registry entry associated with the virus. To find this information, type the name of the virus into the "Search" box found on one of the online manual removal websites (see Resources).

  5. 5

    Type "DEL filename" (without quotes) into the Command Prompt and press "Enter." Note that "filename" should be replaced with the name of the file associated with the virus. To find this information, type the name of the virus into the "Search" box found on one of the online manual removal websites (see Resources).

  6. 6

    Close the Command Prompt and restart your computer.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.