I've used the tasklist command to list the running task on my pc. Perhaps the command return with the following error
ERROR: Invalid class
I've used the tasklist command to list the running task on my pc. Perhaps the command return with the following error
ERROR: Invalid class
Hi,
Have you checked if the answer helps?
If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.
Hi,
There might be some WMI issue in your system.
Please try to run below commands:
cd \windows\system32\wbem
net stop winmgmt
rename Repository Repository.old
net start winmgmt
If issue persists, then please run:
cd \windows\system32\wbem
for /f %s in ('dir /b .mof .mfl') do mofcomp %s
If all above cannot resolve the issue, please share a screenshot of the command you are running and the error message.
Thanks,
Eleven
If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.
to ElevenYu-MSFT
cd \windows\system32\wbem
net stop winmgmt
rename Repository Repository.old
net start winmgmt
Perfect advice, thank you thank you. 10x 😀
mine is not working, i
ried trough powershell too :(
Sometimes AV restrict running tasklists, so I shall suggest you to uninstall third party AV if any.
9 people are following this question.