Skip to content

Browser Popup MDM Automation - Comprehensive cross-platform policy templates and automation scripts for browser management on macOS and Windows endpoints.

Notifications You must be signed in to change notification settings

a-ariff/browser-popup-mdm-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

93 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository Icon

Browser Popup MDM Automation

PowerShell Lint Validate Policies License: MIT

Comprehensive cross-platform Microsoft Intune MDM popup policy templates and automation scripts for browser management on macOS and Windows endpoints.

πŸ“„ Complete Deployment Guide: View on GitHub | View on GitHub Pages - Essential setup and configuration instructions

Overview

  • Platforms: macOS (Safari, Edge, Chrome) | Windows (Edge, Chrome)
  • Default: Block-all with allow-list examples
  • Automation: PowerShell script injects allow/block lists per browser schema
  • CI/CD: GitHub Actions validate PowerShell and policy files

Features

  • βœ… Cross-platform coverage (macOS and Windows)
  • βœ… Multi-browser support (Safari, Edge, Chrome)
  • βœ… Intune-friendly templates (Graph-ready JSON, Safari XML)
  • βœ… Dynamic allow/block injection via PowerShell
  • βœ… CI checks: PowerShell lint and JSON/XML validation
  • βœ… Lint-safe logging and ShouldProcess

Quickstart (5-min)

1. Clone Repository

git clone https://github.com/a-ariff/browser-popup-mdm-automation.git
cd browser-popup-mdm-automation

2. Customize Templates

# Edit allow/block lists in policies folder
# macOS Chrome/Edge JSON: PopupsAllowedForUrls, PopupsBlockedForUrls, DefaultPopupsSetting
# Windows Chrome/Edge JSON: Same structure
# macOS Safari XML: PopupsBlockedForUrls, DefaultPopupsSetting

3. Deploy to Intune

# Use provided PowerShell script
.\scripts\New-IntunePopupPolicy.ps1 -Platform macOS -Browser Chrome

Compatibility Matrix

Platform Safari Edge Chrome Status
macOS 11+ βœ… βœ… βœ… Tested
macOS 10.15 βœ… ❌ βœ… Partial
Windows 10 ❌ βœ… βœ… Tested
Windows 11 ❌ βœ… βœ… Tested
iOS ❌ ❌ ❌ N/A

Repository Structure

Browser-Popup-MDM-Automation/
β”œβ”€β”€ scripts/
β”‚   └── New-IntunePopupPolicy.ps1
β”œβ”€β”€ policies/
β”‚   β”œβ”€β”€ macOS/
β”‚   β”‚   β”œβ”€β”€ safari-popup-policy.xml
β”‚   β”‚   β”œβ”€β”€ edge-popup-policy.json
β”‚   β”‚   └── chrome-popup-policy.json
β”‚   └── windows/
β”‚       β”œβ”€β”€ edge-popup-policy.json
β”‚       └── chrome-popup-policy.json
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ popup-policy-guide.md
β”‚   └── assets/
└── .github/workflows/
    β”œβ”€β”€ ps-lint.yml
    └── validate-policies.yml

Configuration

Browser-Specific Settings

Chrome & Edge (JSON)

{
  "PopupsAllowedForUrls": [
    "https://example.com",
    "https://trusted-site.com"
  ],
  "PopupsBlockedForUrls": [
    "https://malicious-site.com"
  ],
  "DefaultPopupsSetting": 2
}

Safari (XML)

<dict>
  <key>PopupsBlockedForUrls</key>
  <array>
    <string>https://malicious-site.com</string>
  </array>
  <key>DefaultPopupsSetting</key>
  <integer>2</integer>
</dict>

Troubleshooting

Common Issues

Policy not applying

  • Check device compliance in Intune admin center
  • Verify policy assignment to correct groups
  • Allow 24-48 hours for policy propagation

Browser not recognizing policy

  • Ensure browser is managed by Intune
  • Check browser version compatibility
  • Restart browser after policy deployment

PowerShell script errors

  • Run with -Verbose flag for detailed logging
  • Check execution policy: Set-ExecutionPolicy RemoteSigned
  • Verify all dependencies are installed

Roadmap

  • Q1 2025: Add Firefox support
  • Q2 2025: Mobile browser policies (iOS Safari)
  • Q3 2025: Automated policy compliance reporting
  • Q4 2025: Integration with Microsoft Graph PowerShell SDK v2

Changelog

See CHANGELOG.md for detailed version history.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

About

Browser Popup MDM Automation - Comprehensive cross-platform policy templates and automation scripts for browser management on macOS and Windows endpoints.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published