Problem with Microsoft Edge

Nine Number 20 Баллы репутации
2025-10-06T12:57:47.81+00:00

Hello Microsoft, I have a script that opens the Msedge browser and logs off when I try to close it. The script is written in PowerShell and deployed to domain computers using GPO (User Configuration -> Windows Settings -> Logon/Logoff Scripts). The script seems to work as intended, but when it comes to websites that require access to video and microphone, the browser starts to slow down and simply can't access the site. This occurs on absolutely all websites that require access to video and microphone. However, if I run the script locally and not through GPO, everything works correctly, including access to the camera and microphone. Could you please tell me what the problem might be?

Microsoft Edge | Проблемы с веб-сайтами | Windows 11
Комментариев: 0 Без комментариев

Ответ, принятый автором вопроса
Randy Baroja 20,785 Баллы репутации Независимый помощник
2025-10-07T13:10:36.9033333+00:00

Hi,

It sounds like you’ve really tried everything under the sun here, PowerShell, Python, SYSTEM context, even editing the registry and trying the Shell parameter trick. I totally get why you’d be feeling at a loss; this isn’t something that’s widely documented. One thing that often trips people up in situations like this is Edge’s Application Guard. Even if you’ve enabled AudioCaptureAllowed and VideoCaptureAllowed and allowed specific URLs, if Edge is running in an isolated container, it can still block the camera and microphone. There’s a policy specifically for that, Allow camera and microphone access in Microsoft Defender Application Guard, and a related registry key (EnableCameraMicrophoneRedirection) that might need to be set to let hardware through.

Kind regards

Этот ответ помог вам?


Дополнительные ответы: 5

Сортировать по: Наиболее полезные
  1. Randy Baroja 20,785 Баллы репутации Независимый помощник
    2025-10-07T14:14:13.2366667+00:00

    Hi,

    I’m really glad to hear that enabling the EnableCameraMicrophoneRedirection policy fixed the issue with Microsoft Edge! Regarding Yandex Browser, I’m not very familiar with its specific settings for camera and microphone access, so I’m not able to provide detailed guidance for that browser.

    Kind regards,

    Этот ответ помог вам?


  2. Randy Baroja 20,785 Баллы репутации Независимый помощник
    2025-10-07T13:55:40.38+00:00

    Hi,

    The EnableCameraMicrophoneRedirection setting is a registry key that controls whether camera and microphone access is allowed in virtualized or sandboxed environments, like Microsoft Edge Application Guard. It’s not exposed in the regular Windows Settings UI, so you have to add or modify it directly in the registry. Here’s where to look:

    Registry path:

    YAMLКопировать

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Hvsi
    

    Value name:

    SQLКопировать

    EnableCameraMicrophoneRedirection
    

    Type:

    Копировать

    DWORD (32-bit)
    

    Value to allow redirection:

    Копировать

    1
    

    If the Hvsi key or the EnableCameraMicrophoneRedirection value doesn’t exist yet, you can create them manually:

    Open regedit (Registry Editor).

    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE.

    Right-click on SOFTWARE > New > Key > name it Hvsi.

    Right-click on Hvsi > New > DWORD (32-bit) Value > name it EnableCameraMicrophoneRedirection.

    Double-click the new DWORD and set the value to 1.

    Restart the computer to make sure it takes effect.

    Always back up your registry before making changes, just in case something goes sideways.

    Regards,

    Этот ответ помог вам?


  3. Randy Baroja 20,785 Баллы репутации Независимый помощник
    2025-10-07T01:10:48.1333333+00:00

    Hi,

    It sounds like you’ve already done all the right things, enabling the camera and microphone through Group Policy, forcing "allow," double-checking Edge’s privacy settings, and even trying to run the script under the SYSTEM account. Since the issue only appears when the browser is launched by the GPO script, that points to something about the policy context or environment rather than Edge itself. Sometimes, policies like AudioCaptureAllowed or VideoCaptureAllowed under Edge’s ADMX templates can still override OS privacy settings, so it’s worth confirming those aren’t set to block or prompt. Another angle is whether Application Guard might be isolating Edge; when that happens, mic and camera access are blocked unless explicitly allowed or redirected in the registry (EnableCameraMicrophoneRedirection=1). It’s also possible the timing of the GPO logon script plays a role, Edge may be opening before all policies or device permissions have fully initialized. If you run Edge manually after login and it works fine, that’s a strong sign the issue is timing or context rather than configuration. By the way, have you checked whether your environment actually uses Application Guard or any security software that might sandbox browser processes?

    Kind regards,

    Этот ответ помог вам?


  4. Randy Baroja 20,785 Баллы репутации Независимый помощник
    2025-10-06T13:42:17.29+00:00

    Hi,

    Check your Group Policy settings to ensure microphone and camera access is allowed (Computer Configuration > Administrative Templates > Windows Components > App Privacy), as GPO can override local permissions. Verify whether Microsoft Edge’s Application Guard is enabled, since it can block hardware access, and adjust or disable it if necessary. Test the script manually on a machine where it’s deployed via GPO to see if the problem occurs outside of automatic execution this can help determine if the issue is with the GPO context itself. Finally, review the Event Viewer for any errors related to the script or hardware access, as these messages often reveal exactly what’s being blocked and why.

    Kind regards,

    Этот ответ помог вам?


Ваш ответ

Автор вопроса может устанавливать для ответов пометку "Принято", а модераторы — пометку "Рекомендуется". Благодаря этому пользователям становится проще понять, какой из ответов помог решить проблему автора.