Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Saturday, May 17, 2014

How to Remove a Virus Using Command Prompt


How to Remove a Virus Using Command Prompt

 Virus is a computer program that can copy itself and infect your computer. These viruses can spread via USB/flash drive or from one computer to other computer by few written codes. There are many antivirus software available to remove viruses from computer. But there are some viruses or suspicious files which can’t be removed by any antivirus software. Some suspicious files such as autorun.inf initiate all the viruses in pc. These files must be removed for safe operation of your pc, because they may lead to data loss, software damages etc. Such viruses and files can be removed by using cmd. In this article we will discuss how to remove a virus using command prompt. Following steps can be used to remove a virus using command prompt from your computer.

  •    Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.
  • Open the infected drive such as write , g: to go to G drive.
  • Now type dir/w/a . It will show all the files of the drive including hidden files.
  • Locate AUTORUN.INF or any Virus and other suspicious files in the directory.
there was no virus in my drive so only autorun.inf is been highlighted.
  • Type command attrib  -r –a –s –h to remove attributes of corresponding file.
Type del autorun.inf to delete autorun.inf file.

  • Now type del virus name.exe t delete it, eg : del newfolder.exe .
(You can also delete viruses by using following steps:
  • 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”.
  • Now you can access the defected drive without affecting the virus.
  • To delete the renamed file go to the defected drive and select the file you renamed.




Now delete the harmful renamed files.)
You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:
  • Type cd recycler command.
  • Again type dir/w/a  to locate all file of the folder.
  • Identify malicious files and delete them using above commands.
Follow the above steps carefully and i think this information is enough to remove a virus using command prompt easily.
Important: Make sure that no other processes being running while performing these actions. Best of luck.

Write Protection off

Have a look at the SD card's exterior; is there a small switch on one side? Changing the positioning should turn write protection off and let you change the contents.

If not, then try the following:
  • Insert the memory stick into the computer
  • Go to My Computer and under Devices with Removable Storage look for your card reader
  • Right-click on it and click Properties
  • In the pop-up box, sometimes there's an option to Remove write-protection. Change the status of this option and try again.
Still not working??
  • Remove your memory stick from the drive
  • Click Start > Run...
  • In the box type regedit and press OK
  • A new window will appear. Go to:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
  • If you can't locate StorageDevicePolicies then you will need to create this folder
    • Right-click on Control and click on New > Key. Name this StorageDevicePolicies
    • Right-click on the new folder you created called StorageDevicePolicies and click New >DWORD Value.
    • Name this WriteProtect
  • Double-click on Write Protect and change the Value Data to 0 and then click OK
  • Close the Registry Editor and insert the memory stick into your computer

Boost Up Internet Speed

Boost net speed by 20%

Microsoft reserves 20% of your available bandwidth for their own purposes like Windows Updates!!

By unreserving this bandwidth, you can make your internet connection faster By 20%.

Fallow this

1. Click Start then Run and type "gpedit.msc" without quotes.

2. Then go to Local Computer

Policy > Computer Configuration >Administrative Templates > Network > QoS Packet Scheduler.

Click on QoS Packet Scheduler. In the right side , find Limit Reservable Bandwidth and double click on Limit Reservable Bandwidth.

3.Select ‘Enabled’ and set reservable bandwidth to zero.

4. Click on ‘Apply’ and your internet speed will boost up by 20%.