The device does not recognize the command
If you’re getting the ‘ERROR_BAD_COMMAND‘ error code with ‘The device does not recognize the command‘ description, follow the troubleshooting steps listed in this article to fix it.
ERROR_BAD_COMMAND: What you need to know about it
ERROR_BAD_COMMAND is often accompanied by error code 0x80070016 and usually occurs when users attempt a backup, install a new app or update existing apps. This error affects all Windows versions.
There are various elements triggering this issue:
- Damaged or corrupted files and folders.
- Missing EXE, DLL or SYS files.
- Deleted registry values.
- Malware infection.
- Outdated or incompatible software versions, etc.
The device does not recognize the command [FIX]
Solution 1 — Install Visual C++ 2015 Redistributable Packages
Many users confirmed that they fixed this error code by installing or reinstalling Visual C++ 2015 Redistributable Packages. The role of this tool is to install run-time components that are required to run C++ applications built using Visual Studio 2015. As a result, app compatibility is enhanced, allowing users to smoothly install and deploy apps.
You can download Visual C++ 2015 Redistributable Packages from Microsoft’s website.
Solution 2 — Check your drive space
Some users reported that ‘The device does not recognize the command’ error often occurs when there is not enough space on the drive. To free up space on your drive, follow the suggestions listed in this article.
Solution 3 — Run a full system scan
Malware may cause various issues on your computer, including errors. Perform a full system scan in order to detect any malware running on your computer. You can use Windows’ built-in antivirus, Windows Defender, or third-party antivirus solutions.
Here’s how to run a full system scan on Windows 10 Creators Update:
- Go to Start > type ‘defender’ > double click Windows Defender to launch the tool
- In the left hand pane, select the shield icon
- In the new window, click the Advanced scan option
- Check the full scan option to launch a full system malware scan.
Solution 4 — Repair your registry
The simplest way to repair your registry is to use a dedicated tool, such as CCleaner. Don’t forget to first backup your registry in case anything goes wrong. If you haven’t installed any registry cleaner on your computer, check out our article on the best registry cleaners to use on PC.
1. Go to Start > type cmd > right-click Command Prompt > select Run as Administrator
2. Now type the sfc /scannow command
3. Wait for the scanning process to complete and then restart your computer. All corrupted files will be replaced on reboot.
Solution 5 — Update your OS
Make sure that you’re running the latest Windows OS updates on your machine. As a quick reminder, Microsoft constantly rolls out Windows updates in order to improve the system’s stability and fix various issues.
To access the Windows Update section, you can simply type “update” in the search box. This method works on all Windows versions. Then go to Windows Update, check for updates and install the available updates.
Solution 6 — Run the Windows Troubleshooter
Windows 10 Creators Update features a dedicated built-in Troubleshooter that can fix general PC issues.
1. Go to Settings > Update & Security > select Troubleshoot in the left hand pane
2. In the new window, go to the section ‘Find and fix other problems’ > select the troubleshooter that you need depending on the tool affected by ‘The device does not recognize the command’ error > Run the troubleshooter
If you run an older Windows version, you can download the Microsoft Easy Fix tool to troubleshoot various software and hardware issues. The tool is compatible with Windows 10 Version 1607, Windows 8.1, Windows 8, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Professional, Windows 7 Ultimate.
Go to the official Microsoft Easy Fix tool webpage, and scroll down to select the troubleshooter that best suits your needs, depending on the tool affected by ‘The device does not recognize the command’ error. When you select the respective tool, your PC will start downloading the troubleshooting software.
Once the tool has been downloaded, double-click it to launch it. Then follow the on-screen instructions to fix your problem.
Solution 7 — Check your disk for errors
On Windows 10, you can run a disk check using Command Prompt.
Start Command Prompt as administrator and type the chkdsk C: /f command followed by Enter. Replace C with the letter of your hard drive partition.
As a quick reminder, if you do not use the /f parameter, chkdsk displays a message that the file needs to be fixed, but it does not fix any errors. The chkdsk D: /f command detects and repairs logical issues affecting your drive. To repair physical issues, run the /r parameter as well.
On Windows 7, go to hard drives > right-click the drive that you want to check > select Properties > Tool. Under the ‘Error checking’ section, click Check.
Solution 8 — Clean your temporary files and folders
The simplest and quickest manner to delete your temporary files and folders is to use Disk Cleanup. As you use your computer or browse the Internet, your PC accumulates various unnecessary files.
These so called junk files may affect your computer triggering various error codes, including the ‘ERROR_BAD_COMMAND‘ error code. Clean your temporary files and then retry the action that first triggered this error.
Here’s how to use Disk Cleanup on Windows 10:
1. Go to Start > type Disk Cleanup > launch the tool
2. Select the disk that you want to clean > the tool will them tell you how much space you can free up
3. Select “Clean up system files”.
Here’s how to use Disk Cleanup on Windows 7:
- Go to Start > type Disk Cleanup > open Disk Cleanup.
- In Disk Cleanup’s description section, select Clean up system files and select the drive that you want to clean up > click OK.
- On the Disk Cleanup tab, select the check boxes for the file types that you want to delete > click OK > select Delete files.
Solution 9 — Remove recently installed software
If the ‘ERROR_BAD_COMMAND’ error code occurred after you installed new software on your computer, try uninstalling it. Go to Start > type Control Panel > select the program(s) recently added > click Uninstall.
Then restart your computer, and see if the issue has been solved.
Solution 10 — Boot into Safe Mode
You can also try to save or copy the problematic files while in Safe Mode.
1. Hold down the shift key and click the on-screen power button
2. Select the restart option while holding the shift key
3. Select Troubleshoot > Advanced options > Startup Settings > hit Restart
4. Wait until Windows 10 reboots, and select Safe Mode.
5. Retry the action that initially triggered the ‘ERROR_BAD_COMMAND’ error code> restart your computer > check if the problem still persists.
Solution 11 — Clean boot your computer
A clean boot starts Windows by using a minimal set of drivers and startup programs to eliminate software conflicts that may occur when you install a program or an update or when you simply launch a program.
Here’s how to clean boot your Windows 10 computer:
- Type System Configuration in the search box > hit Enter
- On the Services tab > select the Hide all Microsoft services check box > click Disable all.
3. On the Startup tab > click on Open Task Manager.
4. On the Startup tab in Task Manager > select all items > click Disable.
5. Close the Task Manager.
6. On the Startup tab of the System Configuration dialog box >click OK > restart your computer.
Here’s how to clean boot your Windows 7 PC:
- Go to Start > type msconfig > hit ENTER.
- Go to the General tab > click Selective Startup.
- Clear the Load Startup items check box.
- Go to the Services tab > select the Hide All Microsoft Services check box > click Disable all > hit OK.
- Restart the computer when prompted > check if the issue still persists.
Solution 12 — Check the permissions on the drive
The ‘ERROR_BAD_COMMAND‘ error code may also occur if you don’t have the necessary permissions to access the drive where the OS will operate the changes. In this case, verify the permissions on the respective drive and change them to full control.
1. Log in as Admin > select the problematic drive > right-click it > go to Properties > select the Security tab >click on the Advanced button
2. In the new window, click on Users > click on the Change permissions button
4. Under basic permissions, check Full control > OK.
In this manner, you’ve changed the permissions to allow full control for all users. This should solve the problem. However, keep in mind that if you restart your computer or switch users, these settings will revert to default.
Solution 13 — Reset theWindows Update components
If the ‘ERROR_BAD_COMMAND’ error code occurs when you try to update your OS or a particular app, reset the Windows Update components. Follow the steps listed below and then check if the issue persists.
1. Go to Start > launch Command Prompt as Administrator
2. Type the following commands and hit Enter after each one:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
3. Type the following command to delete the qmgr*.dat files, and press Enter:
Del “%ALLUSERSPROFILE%Application DataMicrosoftNetworkDownloaderqmgr*.dat”
4. Type the cd /d %windir%system32 command to repair corrupted repository.
5. Reregister the BITS files and the Windows Update files by typing the following commands in Command Prompt. Hit Enter after you type each command.
6. Reset Winsock by typing this command:
netsh winsock reset
7. Restart the BITS service, the Windows Update service, and the Cryptographic service. Type the following commands and hit Enter after you type each command:
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
8. Go to Windows Update and install the latest updates.
9. Restart your computer and make sure that the latest updates have been installed.
We hope that the solutions listed above helped you fix ‘The device does not recognize the command’ error. If you’ve come across other workarounds to fix this problem, you can help the Windows community by listing the troubleshooting steps in the comments below.
RELATED STORIES YOU NEED TO CHECK OUT:
USB flash drives (pen drives, flash sticks) almost completely moved disks out of the picture. They are fast, you can write anything you want whenever […]
Using speech instead of typing has more than one advantage. Lots of users strongly prefer dictation and, even though it’s still unbrushed feature, it’s getting […]