Tasklist error in Windows 10 Pro

Gopalan, Sridhar (S.) 6 Reputation points
2020-12-18T09:00:11.34+00:00

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

Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-12-21T02:30:46.8+00:00

    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.

    8 people found this answer helpful.

  2. S.Sengupta 24,636 Reputation points MVP
    2020-12-21T02:34:45.177+00:00

    Sometimes AV restrict running tasklists, so I shall suggest you to uninstall third party AV if any.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.