PurviewConfigAnalyser

1.0.5

Microsoft Purview Configuration Analyser - Automated compliance assessment for Sensitivity Labels, Auto-labeling, and Data Loss Prevention policies with comprehensive reporting capabilities.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PurviewConfigAnalyser -RequiredVersion 1.0.5

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PurviewConfigAnalyser -Version 1.0.5

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

© 2025 Abhijeet Karki. All rights reserved.

Package Details

Author(s)

  • Abhijeet Karki

Tags

Purview Compliance Microsoft365 Security Assessment DLP SensitivityLabels Governance

Functions

Test-PurviewCompliance Invoke-PurviewConfigAnalyser Get-PurviewConfig New-CustomControlBook

Dependencies

Release Notes

# PurviewConfigAnalyser v1.0.5

## New in v1.0.5 - CRITICAL PATH FIX
- [CRITICAL FIX] Fixed config file path resolution for installed modules
- [FIX] Corrected PSScriptRoot path calculations from "../../config" to "../config"
- [FIX] Fixed config lookup in Invoke-PurviewConfigAnalyser, Test-PurviewCompliance, and all scripts
- [FIX] Module now properly finds config files at correct installed location
- [FIX] Resolves "Cannot find path config" error in PowerShell Gallery installations
- Module paths now work correctly for both development and installed environments

## New in v1.0.4 - CONFIG FILES INCLUDED
- [CRITICAL FIX] Added missing config files to PowerShell Gallery package
- [INCLUDE] ControlBook_AUGov_Config.csv - Australian Government compliance framework
- [INCLUDE] ControlBook_Property_AUGov_Config.csv - Property mappings for AUGov framework  
- [INCLUDE] Master control books for reference configurations
- [FIX] Resolves "Cannot find path config" error during validation step
- Module now fully functional with all required configuration files

## New in v1.0.3
- [CRITICAL FIX] Fixed all remaining Unicode quote character issues that caused parser errors
- [FIX] Replaced smart quotes (U+2018, U+2019, U+201C, U+201D) with standard ASCII quotes
- [FIX] Fixed "Array index expression missing" errors in string literals
- [FIX] Fixed "Missing argument in parameter list" errors from malformed quotes
- Module now imports successfully without any syntax errors - FINAL FIX

## Features
- Comprehensive compliance assessment for Microsoft Purview configurations
- Support for Sensitivity Labels, Auto-labeling, and DLP policies
- Advanced parsing for complex nested policy structures
- Excel and CSV reporting capabilities
- 96.3% compliance rate achieved on reference implementation

## Technical Capabilities
- Deep recursive JSON parsing for complex policy conditions
- Case-insensitive property matching
- Support for compound property paths with >> operator
- Enhanced DLP rule parsing for nested SubConditions
- Automated control book validation
- Universal PowerShell environment compatibility

## Requirements
- PowerShell 5.1 or higher
- ImportExcel module 7.0.0 or higher
- Microsoft Purview OptimizedReport JSON export

## Usage
Import-Module PurviewConfigAnalyser
Test-PurviewCompliance -OptimizedReportPath "report.json" -Configuration "AUGov" -OutputPath ".\results"

FileList

Version History

Version Downloads Last updated
2.0.1 12 7/22/2025
1.0.9 7 7/22/2025
1.0.8 8 7/22/2025
1.0.7 7 7/22/2025
1.0.6 7 7/22/2025
1.0.5 (current version) 7 7/22/2025
1.0.4 6 7/22/2025
1.0.3 6 7/22/2025
1.0.2 7 7/22/2025
1.0.1 6 7/22/2025
1.0.0 11 7/22/2025
Show less