Get-mpcomputerstatus throwing error

%3CLINGO-SUB%20id%3D%22lingo-sub-617493%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-617493%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F342227%22%20target%3D%22_blank%22%3E%40SushilVerma2019%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20Think%20Get-MpComputerStatus%20is%20not%20a%20available%20in%20Windows%207.%20I%20can't%20check%20this%20out.%3C%2FP%3E%3CP%3EYou%20could%20query%20machine%20system%20logs%20using%20get-eventlog%20command%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-622363%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-622363%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10507%22%20target%3D%22_blank%22%3E%40Jarmo%20Haaranen%3C%2FA%3E%26nbsp%3B%2C%20Get-mpcomputerstatus%20command%20is%20available%20in%20Windows%207%20and%20working%20fine%20in%20my%20other%20machines%20%2C%20issue%26nbsp%3Bfacing%20in%20few%20of%20the%20machines.%3C%2FP%3E%3CP%3EPlease%20suggest%20any%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-638770%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-638770%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F342227%22%20target%3D%22_blank%22%3E%40SushilVerma2019%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20for%20late%20answer%20but%20what%20PowerShell%20version%20you%20are%20using%3F%20Could%20you%20send%20%24PSVersiontable%20variable%20ouput%26nbsp%3B%20and%20full%20error%20of%20command%20%22%3CSPAN%3EGet-mpcomputerstatus%20%7C%20fl%20-force%22%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-643091%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-643091%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10507%22%20target%3D%22_blank%22%3E%40Jarmo%20Haaranen%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EPlease%20find%20the%20required%20output%20from%20PS%20commands.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20854px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F115909i35C3E5F6FDBEAAA7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Mpcomputerstatus%20error2.png%22%20title%3D%22Mpcomputerstatus%20error2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-646595%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-646595%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F342227%22%20target%3D%22_blank%22%3E%40SushilVerma2019%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20verify%20that%20Wmi%20repository%20is%20consistent%2C%20use%20following%20command%20%22%3CSPAN%3Ewinmgmt%20%2Fverifyrepository%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAnd%20if%20it's%26nbsp%3Bconsistent%20output%20will%20be%20%22WMI%20repository%20is%20consistent%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-650467%22%20slang%3D%22en-US%22%3ERe%3A%20Get-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-650467%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10507%22%20target%3D%22_blank%22%3E%40Jarmo%20Haaranen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWMI%20repository%26nbsp%3Bshowing%20consistent.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20367px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116186i050301E2FA733AFF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Mpcomputerstatus%20error3.png%22%20title%3D%22Mpcomputerstatus%20error3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPlease%20suggest%20now%20%2C%20Thank%20you%20for%20being%20supportive%20to%20helping%20me%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-568503%22%20slang%3D%22en-US%22%3EGet-mpcomputerstatus%20throwing%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-568503%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20am%20trying%20to%20get%20result%20from%20powershell%20command%20%22Get-MpComputerStatus%22%20it%20is%20throwing%20below%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20837px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113338iE11B471FA5A48A44%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Mpcomputerstatus%20error.png%22%20title%3D%22Mpcomputerstatus%20error.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20checked%20the%20WinDefend%20service%20it%20is%20in%20started%20status.%20Checked%20event%20logs%20it%20is%20showing%20caused%20due%20to%20unknown%20error.%3C%2FP%3E%3CP%3EOS%20edition%20%3A%20Windows%26nbsp%3B10%20Enterprise%3C%2FP%3E%3CP%3EVersion%20%3A%201709%3C%2FP%3E%3CP%3EOS%20build%20%3A%2016299.1087%3C%2FP%3E%3CP%3EPlease%20help%20to%20solve%20this%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-568503%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Defender%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi, 

When I am trying to get result from powershell command "Get-MpComputerStatus" it is throwing below error:

Mpcomputerstatus error.png

 

I have checked the WinDefend service it is in started status. Checked event logs it is showing caused due to unknown error.

OS edition : Windows 10 Enterprise

Version : 1709

OS build : 16299.1087

Please help to solve this issue.

6 Replies

Hi @SushilVerma2019

 

I Think Get-MpComputerStatus is not a available in Windows 7. I can't check this out.

You could query machine system logs using get-eventlog command

Hi @Jarmo Haaranen , Get-mpcomputerstatus command is available in Windows 7 and working fine in my other machines , issue facing in few of the machines.

Please suggest any help.

Hi @SushilVerma2019 

 

Sorry for late answer but what PowerShell version you are using? Could you send $PSVersiontable variable ouput  and full error of command "Get-mpcomputerstatus | fl -force" 

Hi @Jarmo Haaranen ,

Please find the required output from PS commands.

 

Mpcomputerstatus error2.png

 

 

 

Hi @SushilVerma2019 

 

Please verify that Wmi repository is consistent, use following command "winmgmt /verifyrepository"

And if it's consistent output will be "WMI repository is consistent"

 

 

 

Hi@Jarmo Haaranen 

WMI repository showing consistent.

Mpcomputerstatus error3.png

Please suggest now , Thank you for being supportive to helping me