ADMX Policy Parser

Overview

The ADMX Policy Parser is a Python script that allows you to parse and analyze ADMX policy definition files. The script removes the xmlns attribute from the root element of an ADMX file and then categorizes and displays the policies within.

Features

  • Automatically detects the encoding of the ADMX file.
  • Removes the xmlns attribute from the root element.
  • Categorizes policies and displays them in an organized format.

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/admx-policy-parser.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Place your ADMX file (e.g., msedge.admx) in the same directory as the script.

  4. Run the script:

    python admx_parser.py YOUR_ADMX_FILE
  5. The categorized policies will be displayed in the terminal.

    ...
    Category: ScreenCapture
    - SameOriginTabCaptureAllowedByOrigins
    - ScreenCaptureAllowedByOrigins
    - TabCaptureAllowedByOrigins
    - WindowCaptureAllowedByOrigins
    Category: Printing
    - DefaultPrinterSelection
    - UseSystemPrintDialog
    - PrinterTypeDenyList
    - PrintHeaderFooter
    - PrintingAllowedBackgroundGraphicsModes
    - PrintingBackgroundGraphicsDefault
    - PrintingEnabled
    - PrintingPaperSizeDefault
    - PrintingWebpageLayout
    ...