Skip to main content

Unregister-FirefoxExtension

Description​

Removes the target extension from Mozilla Firefox with optional installation blocking.

Requirements​

The extension name must be provided.

Usage​

  1. Gets the provided extension information.
  2. Parses it to JSON format.
  3. Applies the change to the Firefox file.
.\Unregister-FirefoxExtension.ps1 -ExtensionName "ublock-origin" -Mandate

This command will remove uBlock Origin from the policy, uninstall it, and prevent its reinstallation.

Parameters​

ParameterAliasRequiredDefaultTypeDescription
ExtensionNameTrueStringThe name of the extension you wish to remove.
MandateFalseBoolBlocks the reinstallation of the extension.

Output​

The output will be logged in:

.\Unregister-FirefoxExtension-log.txt

Changelog​

2025-04-10​

  • Initial version of the document