Defender network validation invalid command argument

Cliff 591 21 Reputation points
2023-08-15T15:31:55.8566667+00:00

Following the instructions on https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/configure-network-connections-microsoft-defender-antivirus?view=o365-worldwide

I ran Cmd as administrator with the results below.

 

C:\Windows\system32>cd "%ProgramFiles%\Windows Defender"

C:\Program Files\Windows Defender>.\MpCmdRun.exe -ValidateMapsConnection

CmdTool: Failed with hr = 0x80070667. Check C:\Users*<redacted>*_~1\AppData\Local\Temp\MpCmdRun.log for more information

CmdTool: Invalid command line argument

 

I found only start and stop times in MpCmdRun.log - nothing of value.

I checked MpCmdRun.exe -h and found no reference to this parameter.

How can I validate my network connection for Microsoft Defender?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,974 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,458 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,602 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 37,056 Reputation points Microsoft Employee
    2023-08-22T23:00:59.4133333+00:00

    @Cliff 591 ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    Running the -ValidateMapsConnection command you received the error "Invalid command line argument"

    Solution:

    Your malware settings were preventing you from updating Defender. After suspending the malware protection app, you were able to resolve the issue.

    If you have any other questions or are still running into more issues, please let me know.
    Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if the reply accurately described the solution, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,056 Reputation points Microsoft Employee
    2023-08-16T21:36:21.2466667+00:00

    Hi @Cliff 591 ,

    The error code 0x80070667 means that you're running the -ValidateMapsConnection command from a computer that is Windows 10 version 1607 or older, or Windows Server 2016 or older. You need to run the command from a machine that is Windows 10 version 1703 or newer, or Windows Server 2019 or newer.

    This is documented in the guide, Common errors in running commands via mpcmdrun.exe

    See also: Defender errors

    Let me know if this helps and if you have further questions.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.

    0 comments No comments

  2. Cliff 591 21 Reputation points
    2023-08-22T02:09:49.5466667+00:00

    The problem was our malware settings are strict.

    Turn suspend the malware protection app and we can update Defender.


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.