Useful Windows Commands
en | de
The following Windows command line commands I find somehow interesting, special or just useful.
Warning be sure to know and understand what a command does before executing it!
| Group | Name | Command | Description | XP | Vista | 7 | 8 | 10 |
|---|---|---|---|---|---|---|---|---|
| Windows | Signaturcheck für Treiber abschalten! | bcdedit.exe /set nocheckintegritys ON | Disable Windows driver signing (integrity checks). | ![]() | ![]() | ? | ? | |
| Windows | Logoff | logoff | Log off from Windows. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Windows | On-Screen Keyboard | osk | Show the On-Screen Keyboard | ![]() | ![]() | ![]() | ![]() | ![]() |
| Vista | Windows Flip 3D | RunDLL32 DwmApi #105 | Show the 3D window switching in Windows Vista / 7. | ![]() | ![]() | ![]() | ||
| Tool | Windows Malicious Software Removal Tool! | mrt.exe | Run "Windows Malicious Software Removal Tool". | ![]() | ![]() | ![]() | ![]() | ? |
| Tool | Windows Update | wupdmgr | Open the Windows Update website. | ![]() | ||||
| Tool | Default Browser | RunDLL32 url.dll,FileProtocolHandler www.svolpi.ch | Open www.svolpi.ch with the default browser. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Tool | Multiple Regedit | Regedit /m | Use this command to open multiple instances of Regedit. | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Systemsteuerung einrichten | RunDLL32 shell32.dll,Control_FillCache_RunDLL | Initialize Control Panel Applets. | ![]() | ||||
| System | Enable hibernation | powercfg -H on | Enable the hibernate feature (even after deleting Hiberfil.sys). | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Syskey | Syskey | Configure additional encryption for the Windows Account Database. | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Disable Zip | regsvr32 /u zipfldr.dll | Disable the built-in zip folder feature | ![]() | ||||
| System | Disable CAB | regsvr32 /u cabview.dll | Disable the built-in CAB folder feature | ![]() | ||||
| System | Printer management | RunDLL32 PRINTUI.DLL,PrintUIEntry /? | List command line options for the printer User Interface. | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Install INF file | RunDLL32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\filename.inf | Install a .INF file in Command line | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Extend Windows trial | slmgr -rearm | Reset the 30-day trial period. Can be run three times. | ![]() | ![]() | ![]() | ![]() | |
| System | Switch mouse buttons | RunDLL32 User32.dll,SwapMouseButton | Switch primary and secondary mouse buttons (to reset use "main.cpl"). | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Beep | cmd /c @echo | System Beep (ASCII 007) | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Hibernate / Standby | RunDLL32 powrprof.dll,SetSuspendState | If hibernation is enabled in "Powercfg.cpl" the system hibernates else the system goes into Standby mode. | ![]() | ![]() | ![]() | ![]() | ? |
| System | Process idle tasks | RunDLL32 advapi32.dll,ProcessIdleTasks | Manually start the built in optimization routine (Indexing, Boot Defrag ...). | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Shutdown GUI | shutdown -i | Opens the remote shutdown Dialog. | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Deactivate Guest account | net user Guest /ACTIVE:NO | Disable Guest account | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Disk Cleanup | cleanmgr | Clears unnecessary files from your computer's hard disk. | ![]() | ![]() | ![]() | ![]() | ? |
| System | Touchscreen Calibration Tool | tabcal | Calibrate your Tablet / Touchscreen. | ![]() | ![]() | ![]() | ![]() | |
| System | Driver Verifier Manager | verifier | Tool to detect and troubleshoot many driver issues. | ![]() | ![]() | ![]() | ![]() | ![]() |
| System | Available Windows Features | dism.exe /Online /Get-Features /Format:Table | List all available Windows features. | ? | ![]() | ![]() | ![]() | |
| System | Enable Windows Feature | dism.exe /online /Enable-Feature /FeatureName:TFTP | Enables a specified Windows feature; here the TFTP Client. | ? | ![]() | ![]() | ![]() | |
| System | Disable Windows Feature | dism.exe /online /Disable-Feature /FeatureName:TFTP | Disables a specified Windows feature; here the TFTP Client. | ? | ![]() | ![]() | ![]() | |
| Software | Install HyperTerminal | RunDLL32 ADVPACK.DLL,LaunchINFSection %windir%\INF\communic.inf,Hypertrm | Install HyperTerminal | ![]() | ||||
| Software | Uninstall HyperTerminal | RunDLL32 ADVPACK.DLL,LaunchINFSection %windir%\INF\communic.inf,HypertrmUninstall | Uninstall HyperTerminal | ![]() | ||||
| Software | Uninstall Windows messenger | RunDLL32 advpack.dll,LaunchINFSection %windir%\inf\msmsgs.inf,BLC.Remove | Remove Windows messenger from the computer. | ![]() | ||||
| Shadow Copy | Shadow Copy Infos | vssadmin list shadowstorage | Show used storage and other Shadow Copy information. | ![]() | ![]() | ![]() | ![]() | |
| Shadow Copy | Delete oldest shadows | vssadmin delete shadows /for=c: /oldest | Delete the oldest shadows on Drive C:\. | ![]() | ![]() | ![]() | ![]() | |
| Shadow Copy | Max Shadow size | vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=1GB | Set the max Shadow Copy size to 1GB. | ![]() | ![]() | ![]() | ![]() | |
| Security | Save domain credentials | cmdkey /add:Server01 /user:MYDOMAIN\admin /pass:P@ssw0rd | Save credentials to access Server01 as the domain user admin. | ![]() | ![]() | ![]() | ![]() | |
| Security | Save generic credentials | cmdkey /generic:Server01 /user:Server01\admin /pass:P@ssw0rd | Save generic credentials to access Server01 as the local user admin. | ![]() | ![]() | ![]() | ![]() | |
| Security | List stored credentials | cmdkey /list | Displays the list of stored user names and credentials. | ![]() | ![]() | ![]() | ![]() | |
| Security | Delete stored credentials! | cmdkey /delete:Server01 | Delete the credential that is stored for Server01. | ![]() | ![]() | ![]() | ![]() | |
| Printer | Printer Migration | printbrmui | Exports printer queues, printer ports, and printer drivers to a file. | ![]() | ![]() | ![]() | ![]() | |
| Office | Repair Word! | winword.exe /r | Repair file association and Registry keys used by Word. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Firewall reset! | netsh firewall reset | Reset the Windows Firewall configuration to default. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Set IP | netsh interface ip set address name="Ethernet" source=static addr=192.168.1.44 mask=255.255.255.0 gateway=192.168.1.100 gwmetric=0 | Set the IP address, subnet mask and the default gateway for the interface: "Local Area Connection". | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Set DNS | netsh interface ip set dns name="Ethernet" source=static addr=192.168.1.1 register=PRIMARY | Set a static DNS server address. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Telnet! | RunDLL32 url.dll,TelnetProtocolHandler 192.168.1.1 | Establishes a telnet connection to 192.168.1.1. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Uninstall IPv6 | netsh interface ipv6 uninstall | Uninstall IPv6. | ![]() | ||||
| Network | Reset TCP/IP | netsh interface ip reset c:\resetlog.txt | Reset the IP configuration and write the results to "c:\resetlog.txt". | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Open files | OpenFiles.exe | Show files opened remotely via local share points. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Bluetooth Transfer! | fsquirt | Launches the BlueTooth File Transfer Wizard. | ![]() | ![]() | ? | ? | ? |
| Network | Disable Firewall | sc config SharedAccess start= disabled | Disable the SharedAccess service which is used by the Windows Firewall. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Share Creation Wizard | Shrpubw.exe | Start the "Share Creation Wizard". | ![]() | ![]() | ![]() | ![]() | ![]() |
| Network | Firewall reset | netsh advfirewall reset | Reset the Windows Firewall | ![]() | ![]() | ![]() | ![]() | |
| Multimedia | DVD Player | dvdplay | Runs Windows Media Player to play a DVD. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Clear IE branding | RunDLL32 IEdkcs32.dll,Clear | Remove brandings in Internet Explorer. | ![]() | ![]() | ![]() | ||
| Internet Explorer | Clear IE history | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 1 | Delete the list of websites you have visited in Internet Explorer. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Delete IE Cookies | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 2 | Delete stored Internet Explorer cookies. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Delete temporary internet files | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 8 | Delete saved copies of webpages, images, and media. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Delete Form data | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 16 | Delete saved information that you have typed into forms. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Delete Passwords | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 32 | Delete passwords automatically saved by Internet Explorer. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Internet Explorer | Delete all temporary data | RunDLL32 InetCpl.cpl,ClearMyTracksByProcess 255 | Delete Temporary Internet Files, Cookies, History, Form data, and Passwords stored by Internet Explorer. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Files | System file attribute | attrib +s +h mydir | Set the hidden and system file attribute for "mydir" (file or directory). | ![]() | ![]() | ![]() | ![]() | ![]() |
| Files | Dummy file | fsutil file createnew C:\testfile.txt 1048576 | Create a 1MB dummy file. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Files | Search into through files | findstr /ins "date" "*.vbs" | List ".vbs" files containing the string "date". | ![]() | ![]() | ![]() | ![]() | ![]() |
| Desktop | New Briefcase | RunDLL32 syncui.dll,Briefcase_Create | Creates a new briefcase on the desktop. | ![]() | ||||
| Desktop | Screensaver | RunDLL32 desk.cpl,InstallScreenSaver c:\windows\system32\ssText3d.scr | Open the screensaver properties dialog and select the "3D-Text" screensaver. | ![]() | ![]() | ![]() | ![]() | ![]() |
| Desktop | Lock Windows | RunDLL32 user32.dll,LockWorkStation | Lock Windows | ![]() | ![]() | ![]() | ![]() | ![]() |
| Desktop | Show Desktop icon | regsvr32.exe /n /i:u shell32 | Re-create the Show desktop icon after reboot. | ![]() | ||||
| Desktop | Enable Aero | RunDLL32 DwmApi #102 | Enable the Windows Aero user interface. | ![]() | ![]() | |||
| Desktop | Disable Aero | RunDLL32 DwmApi #104 | Disable the Windows Aero user interface. | ![]() | ![]() | |||
| Desktop | Refresh user settings | RunDLL32 user32.dll,UpdatePerUserSystemParameters ,1 ,True | Update the desktop and other per user system settings. | ![]() | ? | ![]() | ![]() |
(69 entries)
Tested on: Windows XP SP3, Windows Vista SP2, Windows 7, Windows 8.1 and Windows 10


