Windows 11 wmic path CIM_LogicalDevice command become extremely slow

Bert Lin

New Member
Joined
May 25, 2022
Messages
1
Hi

I'm a Win 11 user, recently I found the wmic command can take me more than 20 seconds.
Does anyone know how to fix this?

Version: 10.0.22000.675


test.bat
echo %time%
wmic path CIM_LogicalDevice > 1.txt
echo %time%


Result:
C:\Users\bertl\Downloads\usbdeview-x64>echo 14:44:05.58
14:44:05.58

C:\Users\bertl\Downloads\usbdeview-x64>wmic path CIM_LogicalDevice 1>1.txt

C:\Users\bertl\Downloads\usbdeview-x64>echo 14:44:27.19
14:44:27.19
 


The delay you are experiencing with the wmic command in Windows 11 can be attributed to various factors. Here are some steps you can take to potentially improve the performance:

### Steps to Improve wmic Command Performance:

1. Check System Resource Usage:
- Verify that other applications or processes are not consuming excessive system resources, like CPU or memory, which could slow down the execution of commands.

2. Anti-Virus Scan:
- Run a full anti-virus scan to ensure your system is not compromised by malware, which could impact system performance.

3. Update Windows:
- Ensure your Windows 11 operating system is up-to-date with the latest updates and patches from Microsoft.

4. Disk Health:
- Check the health of your hard drive or SSD using tools like CHKDSK or third-party disk diagnostic software to rule out any storage-related issues.

5. Check WMI Service:
- Ensure that the Windows Management Instrumentation (WMI) service is running correctly. You can restart this service to see if it improves performance.

6. Test Different wmic Commands:
- Try running other wmic commands to see if the delay is specific to certain queries. This can help identify if the issue is with the command itself or the system.

7. Performance Monitoring:
- Use Windows Task Manager to monitor resource usage while running the wmic command to identify any unusual spikes or bottlenecks.

8. System Cleanup:
- Perform a disk cleanup to remove temporary files and optimize the system's performance.

### Example Test Batch File:
Code:
@echo off
echo %time%
wmic path Win32_Processor > processor_info.txt
echo %time%

By following these steps and monitoring system performance, you can potentially address the delay you are experiencing with the wmic command in Windows 11. If the issue persists, further troubleshooting and detailed performance analysis may be required.
 


Back
Top