command line error on Edge and other Apps.

Brian Boyns 0 Reputation points
2026-09-11T05:40:21.1633333+00:00

I keep having this reoccurring error pop up on microsoft edge when i first open it. It also appears on my "Prime Video for Windows" App:

"You're using an unsupported command-line flag: --log-net-log. This poses stability and security risks."

I'm not a programmer or anything and am skittish of trying to do anything through powershell or visual studio because i've created problems for myself in the past. Can someone guide me through this? Im willing to try powershell again as long as i can recover from it.

Microsoft Edge | Other | Windows 11
0 comments No comments

2 answers

Sort by: Most helpful
  1. Paulo GM 72,055 Reputation points Independent Advisor
    2026-09-11T06:38:17.69+00:00

    Hi,

    This warning usually appears when Microsoft Edge is launched with an unsupported command-line parameter, either from the Edge shortcut via a command-line parameter or from a feature enabled on the experimental flags page.

    To double-check, right-click the Edge shortcut on the Taskbar, then right-click Profile (n) - Edge and select Properties. Under Target, check if it contains --log-net-log and remove it if you find it. The Target field should only contain similar to this if you have an active profile:

    "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --profile-directory="Profile 1"

    If there’s nothing there, enter edge://flags in the address bar and press Enter. If you have any features enabled there, set them back to Default, or simply click Reset all to clear all the changes.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-09-11T05:40:35.2466667+00:00

    That warning means Microsoft Edge was started with the --log-net-log command-line flag. Microsoft documents that potentially dangerous command-line flags can trigger a security warning because they can pose stability and security risks.

    A safe first step is to confirm whether this is only a warning or part of a broader Edge startup problem:

    1. Open Microsoft Edge.
    2. Go to Settings and more > Settings > About Microsoft Edge.
    3. If an update is available, install it.
    4. Restart Edge and check whether the warning still appears.

    If the warning continues, use the built-in repair option for Edge. This is safer than starting with PowerShell:

    1. Close Microsoft Edge.
    2. Make sure Edge is closed for all users signed in on the device.
    3. Go to Start > Settings > Apps > Installed apps.
    4. Find Microsoft Edge in the app list.
    5. Select Modify.
      • If Modify is not available, Edge is likely installed and managed by an organization.
    6. When prompted, select Yes.
    7. Stay connected to the internet and select Repair.

    Microsoft states that browser data and settings should not be affected by repair.

    If Edge still shows the warning after repair, restart the PC:

    1. Select Start > Power > Restart.
    2. Open Edge again and test.

    Because the same warning also appears in Prime Video for Windows, the issue may not be limited to Edge itself. Microsoft also recommends these checks when Edge has startup or stability issues:

    1. Scan the device for malware.
    2. Verify third-party security software is up to date if antivirus software such as Norton or McAfee is installed.

    Microsoft also documents a policy named CommandLineFlagSecurityWarningsEnabled. When enabled or left unset, Edge shows security warnings for dangerous command-line flags such as --disable-gpu-sandbox. The warning being shown indicates Edge detected a command-line flag at launch.

    No PowerShell or Visual Studio steps are required for the supported first-line troubleshooting in this case.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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