Scripting installation of extension in Edge

Johan Pol 46 Reputation points
2024-06-16T21:34:10.83+00:00

What is the best way to force installation of extension in Edge (and Chrome)?

I have 2 possibilities but which one is preferred?

  1. Use ExtensionSettings registry string and configure the extension
  2. Use the ExtensionInstallForceList registry key, obtain free number and add the extension.

For both I have a dynamic script and both are working, but which one is preferred or best to use?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,217 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,443 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yu Zhou-MSFT 12,781 Reputation points Microsoft Vendor
    2024-06-18T08:54:02.7566667+00:00

    Hi @Johan Pol

    I think use ExtensionInstallForceList registry key is the best way to force installation of extension in Edge. You can set this policy to specify a list of apps and extensions that install silently, without user interaction. Users can't uninstall or turn off this setting.

    You can also refer to this doc: Force-install an extension. It also recommend using the ExtensionInstallForcelist policy.

    Update:

    ExtensionInstallForceList is just used for forcing install specific extensions, but ExtensionSettings can do more management of extensions. ExtensionSettings can control settings such as Update URL, where the extension is downloaded from for initial installation, Blocked permissions and so on. You can check this doc ExtensionSettings policy fields to see how many fields it can control.

    You need to decide if you want to set all extension management settings in the ExtensionSettings policy or set some controls through other policies. Besides, ExtensionSettings can overwrite other policies.

    If you only need to force install, ExtensionInstallForceList is enough.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,

    Yu Zhou


0 additional answers

Sort by: Most helpful