Friday, September 5, 2008

Create a simple fake virus for Windows using the nircmd utility by



Have you ever dreamt of creating a fake virus yourself to play a prank by installing the virus on your friend computer and a making a fool of him. If Yes then this post is of great interest to you.

So what would you like to do with a virus to make your friend believe that a virus has infected his/her computer.

Hmm….let me guess ?

1. Suddenly Opening and closing of cd drive.

2. Power off the monitor.

3. Log out the user out of Windows XP.

4. Turn off the computer and much more….well actually any of the above events combination can make any windows user think that his/her system is infected.

Requirements For Virus To Run: Windows NT, Windows 2000 and Windows XP. You cannot run this utility on Windows 9x machines.

So How To Make and Execute the virus:

1. Firstly you don't have to make any virus, you just need to download a nifty utility called nircmd.exe
from here (Provided By

2. Now double click the downloaded nircmd.exe and click the button which says "Copy to Windows Directory".

3. You need to create a batch file , so open notepad and enter these commands line by line or simply just copy the text below in notepad and save it as fun.bat any where on the targeted computer.

cd %windir%
nircmd.exe cdrom open d:
nircmd.exe cdrom close d:
nircmd.exe monitor off
nircmd.exe exitwin logoff
nircmd.exe exitwin poweroff

4. Now drag to place the fun.bat in the start>>all programs>>startup and next time the person (your friend) who will reboot the computer will be the victim.

Enjoy the fun and leave your comments about your experiences with this funny fake virus for windows xp and do let me know if you have any problems in installing or running the virus.

There is lot more to explore about nircmd.exe, So Check the NirCmd Utilty Page at

Download NirCmd | Download Fun.Bat

Playing with this tool can be real fun if you really know how to play with it.

Note: if you have caused any damage to your computer due to the above utility boot up in safe mode and remove the batch file from the start up.

P.S: I am not responsible for any damage caused to your system because of the above tool and the batch file.


Post a Comment

Related Articles

Related Article Widget by Hoctro

About Me


Hi, I am Hua, a chinese expat residing in India excited about windows, linux and all things tech

Receive updates for free

Enter your email address:

Delivered by FeedBurner

Mobile Version


Bookmark and Share

Blog Archive