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
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
-
- ImportExcel (>= 7.0.0)
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
- PurviewConfigAnalyser.nuspec
- Collect-PurviewConfiguration.ps1
- PurviewConfigAnalyser.psd1
- config\ControlBook_AUGov_Config.csv
- Private\Connect-ToComplianceCenter.ps1
- Private\DlpAdvancedParser.ps1
- Private\Get-DataLossPreventionSettings.ps1
- Private\Get-InsiderRiskManagementSettings.ps1
- Private\Get-RetentionCompliance.ps1
- Private\Get-TenantDetails.ps1
- Private\Test-ControlBook.ps1
- Private\Write-Log.ps1
- Public\Get-PurviewConfig.ps1
- Public\Invoke-PurviewConfigAnalyser.ps1
- Public\New-CustomControlBook.ps1
- Public\Show-PurviewConfigAnalyserGUI.ps1
- Public\Test-PurviewCompliance.ps1
- Scripts\DlpPolicyEvaluator.ps1
- Scripts\README.md
- Scripts\Run-MaturityAssessment.ps1
- Scripts\SimplifiedPurviewConfigAnalyserReport.ps1
- config\MasterControlBooks\ControlBook_Property_Reference.csv
- config\MasterControlBooks\ControlBook_Reference.csv
- PurviewConfigAnalyser.psm1
- config\ControlBook_Property_AUGov_Config.csv
- Private\Convert-ObjectForJson.ps1
- Private\GenerateExcelFromJSON.ps1
- Private\Get-InformationProtectionSettings.ps1