how to Check WMI of a remote computer without PS Remoting

Nafis Alam 21 Reputation points
2021-11-09T15:38:23.803+00:00

how to check whether WMI is working fine or not? PS Remoting is not enable in my client environment.
I have tried to execute Winmgmt.exe /verifyrepository with below command. which is exited with error code 1 not giving consistent, inconsistent and so on.
psExec.exe \Computername -c -f -h "C:\windows\system32\wbem\winmgmt.exe" /verifyrepository

however the same command installing or executing exe on the remote computer.

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 36,291 Reputation points
    2021-11-09T16:40:02.19+00:00

    Don't overwrite (-c -f) the installed program.

    psExec.exe \\Computername -s -h C:\windows\system32\wbem\winmgmt.exe /verifyrepository
    

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2021-11-11T20:37:44.813+00:00

    Hello @Nafis Alam

    This article describes how to test WMI:

    https://techcommunity.microsoft.com/t5/ask-the-performance-team/basic-wmi-testing/ba-p/372423

    Hope this helps with your query,

    -----
    --If the reply is helpful, please Upvote and Accept as answer--

    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.