Ads

Monday, September 22, 2014

Remove VIRUS using CMD (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.

Steps to follow :-


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


Step 2 : Open the infected drive such as write , d: to go to D drive.


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


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


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


Step 6 : Type del autorun.inf to delete autorun.inf file.


Step 7 : Now type del virus name.exe t delete it, eg : del newfolder.exe .

Now delete VIRUS


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


Step 9 : 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”.


Step 10 : 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.

  • 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.
Congo.... you successfully deleted the VIRUS

Friday, September 19, 2014

How to Fix the "Bootmgr is missing" Error in Windows with CMD

You may get this error while booting your computer. 

Today i'll tell you easy CMD command trick to repair the problem of "Bootmgr is missing" on system startup while booting. So here is the easy solution for it. There are some simple steps to perform this solution.


Steps to perform :-

Step 1: First of all you need a windows operating system cd or you can use a bootable usb pendrive containing the windows O.S.
Note : Read article How to make a USB Bootable .

Step 2: Boot to the System Recovery Options screen. 

Step 3: Select the Startup Repair option. (See screenshot below)
Step 4: Click on Command Prompt

Step 5: Type c: and press <Enter>. 

Step 6: At the C:\ prompt, type cd boot and press <Enter>. 

Step 7: At the C:\Boot prompt, type the following commands and press Enter after each command. 

Code:


bootrec /FixMbr
bootrec /FixBoot
bootrec /RebuildBcd

Step 8: Now close the command prompt, remove the DVD/CD/USB and reboot your computer. 

Congo... you repair the "BootMgr is Missing" problem.

Sunday, September 14, 2014

Change Admin Account password using CMD

In case you forget your windows administrator account password, you can change it without using any password reset software.
What we need to do is, rename the file cmd.exe to sethc.exe, which is in C:\windows\system32  and run the command net user administrator * in the command prompt.

How to do this ?
If you are not an admin privileged user then it is not easy to rename the files under the directory C:\windows\system32. So we need to boot from other OS to rename the file. You can do this using any linux live  CD or the Windows installation CD. (Note:- please take a backup of the files cmd.exe and sethc.exe to another location. If  you loose those files, you can restore it after the password reset)
Windows 7 installation CD will let you launch a command prompt. Type the following command to create a copy of  sethc.exe
copy c:\windows\system32\sethc.exe c:\

Type this command to replace sethc.exe with cmd.exe
copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

After renaming the file, boot in to the windows OS and after you see the login screen, press the shift key 5 times. Then you can see the command prompt with admin privilege. (By default this will prompt you the sticky key feature. This is the only feature which can be used before logging into any user account. By default, pressing the shift key 5 times will start the sethc.exe. But in this situation we have renamed the cmd.exe file to sethc.exe so this action must start the command prompt.)
Once you have reached on the command prompt, you can run the command 
net user administrator *
 After run the command it will ask you a new password for the account.
Set the new password for the admin account. (The good thing is, it will not ask you the old password for the confirmation).

If the admin account is not active, you can activate it by running the command net user administrator /active:no

Now, you can login to the administrator account with the new password.