Skip to content

Commit 79dedee

Browse files
committed
Add PowerShell Gallery publishing support v2.3.0 - Complete automated publishing workflow with validation, testing, and comprehensive documentation
1 parent d348575 commit 79dedee

4 files changed

Lines changed: 806 additions & 46 deletions

File tree

AD-Audit.psd1

Lines changed: 110 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'Run-M&A-Audit.ps1'
44

55
# Version number of this module.
6-
ModuleVersion = '2.0.0'
6+
ModuleVersion = '2.3.0'
77

88
# Supported PSEditions
99
CompatiblePSEditions = @('Desktop', 'Core')
@@ -22,20 +22,24 @@
2222

2323
# Description of the functionality provided by this module
2424
Description = @'
25-
M&A Technical Discovery Audit Tool - Comprehensive PowerShell-based auditing solution for merger and acquisition due diligence.
25+
M&A Technical Discovery Audit Tool - Comprehensive PowerShell-based auditing solution for merger and acquisition due diligence with advanced analytics and reporting.
2626
27-
Features:
28-
- Active Directory audit (users, computers, groups, GPOs, trusts, service accounts)
29-
- Server hardware inventory (CPU, memory, storage, virtualization)
30-
- SQL Server discovery (instances, databases, backups, logins, jobs)
27+
Key Features:
28+
- Active Directory comprehensive audit (9 advanced security components: ACL, Kerberos, DHCP, GPO, DNS, Certs, etc.)
29+
- Server hardware inventory (CPU, memory, storage, virtualization, applications)
30+
- SQL Server discovery (instances, databases, backups, logins, jobs, security)
3131
- Microsoft 365 audit (Entra ID, Exchange, SharePoint, Teams, Power Platform)
3232
- Compliance audit (DLP, retention, sensitivity labels, eDiscovery)
33-
- HTML reporting with executive dashboard and migration readiness score
34-
- SQLite database integration for advanced queries
33+
- Advanced Analytics Engine (baseline comparison, anomaly detection, risk scoring)
34+
- Executive Dashboards (beautiful HTML reports with risk gauges and charts)
35+
- Alert System (email notifications for threshold breaches)
36+
- Visual Query Builder (web-based with 20+ templates, saved queries, dark mode)
37+
- SQLite database integration for advanced queries and trend analysis
3538
- Enterprise encryption (EFS, 7-Zip, Azure Key Vault)
36-
- Pester testing framework with 110+ tests (~75% coverage)
39+
- Comprehensive testing (118+ tests, ~78% coverage)
40+
- CI/CD integration (GitHub Actions, Azure DevOps)
3741
38-
Designed for IT consultants, M&A teams, and technical due diligence professionals.
42+
Designed for IT consultants, M&A teams, security analysts, and technical due diligence professionals.
3943
'@
4044

4145
# Minimum version of the PowerShell engine required by this module
@@ -83,6 +87,9 @@ Designed for IT consultants, M&A teams, and technical due diligence professional
8387
'Modules\Invoke-Compliance-Audit.ps1',
8488
'Modules\New-AuditReport.ps1',
8589
'Modules\New-AdvancedAuditReports.ps1',
90+
'Modules\Invoke-Analytics-Engine.ps1',
91+
'Modules\New-ExecutiveDashboard.ps1',
92+
'Modules\Send-AnalyticsAlert.ps1',
8693
'Libraries\SQLite-AuditDB.ps1',
8794
'Utilities\Decrypt-AuditData.ps1'
8895
)
@@ -104,14 +111,28 @@ Designed for IT consultants, M&A teams, and technical due diligence professional
104111
'New-AuditReport',
105112
'New-AdvancedAuditReports',
106113

114+
# Analytics Engine (v2.3.0)
115+
'Compare-AuditData',
116+
'Get-TrendAnalysis',
117+
'Find-Anomalies',
118+
'Get-RiskScore',
119+
'New-ExecutiveDashboard',
120+
'Send-AnalyticsAlert',
121+
'Test-AlertThresholds',
122+
'Send-AlertEmail',
123+
107124
# SQLite database
108125
'Initialize-AuditDatabase',
109126
'Import-AuditCSVsToDatabase',
110127
'Import-CSVToTable',
111128
'Invoke-AuditQuery',
129+
'Get-DatabaseConnection',
130+
'Invoke-DatabaseQuery',
112131

113132
# Utilities
114-
'Decrypt-AuditData'
133+
'Unprotect-EFSFolder',
134+
'Unprotect-ArchiveFile',
135+
'Unprotect-KeyVaultFiles'
115136
)
116137

117138
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
@@ -133,6 +154,7 @@ Designed for IT consultants, M&A teams, and technical due diligence professional
133154
FileList = @(
134155
'Run-M&A-Audit.ps1',
135156
'Start-M&A-Audit-GUI.ps1',
157+
'Start-M&A-Analytics.ps1',
136158
'Start-M&A-QueryBuilder-GUI-POC.ps1',
137159
'Start-M&A-QueryBuilder-Web.ps1',
138160
'Setup-SQLite.ps1',
@@ -164,7 +186,13 @@ Designed for IT consultants, M&A teams, and technical due diligence professional
164186
'Security',
165187
'Compliance',
166188
'Reporting',
189+
'Analytics',
190+
'Risk-Assessment',
191+
'Dashboard',
192+
'Anomaly-Detection',
167193
'Technical-Discovery',
194+
'Query-Builder',
195+
'SQLite',
168196
'PSEdition_Desktop',
169197
'PSEdition_Core',
170198
'Windows'
@@ -181,43 +209,79 @@ Designed for IT consultants, M&A teams, and technical due diligence professional
181209

182210
# ReleaseNotes of this module
183211
ReleaseNotes = @'
184-
## Version 2.0.0 (2025-10-22)
185-
186-
### New Features
187-
- Comprehensive Pester testing framework (110+ tests, ~75% coverage)
212+
## Version 2.3.0 (2025-10-22) - Advanced Analytics & Reporting
213+
214+
### 🚀 New Major Features
215+
- **Advanced Analytics Engine**: Baseline comparison, trend analysis, anomaly detection
216+
- **Risk Scoring System**: Comprehensive 0-100 security risk score
217+
- **Executive Dashboards**: Beautiful HTML reports with risk gauges and interactive charts
218+
- **Alert System**: Email notifications for threshold breaches (SMTP integration)
219+
- **Query Builder Enhancements**: 20 templates (was 8), saved queries, query history, dark mode, Chart.js visualization
220+
221+
### 📊 Analytics Capabilities
222+
- Baseline vs Current comparison (7 entity types tracked)
223+
- 7 anomaly types (privileged accounts, Kerberos, ACLs, databases, servers)
224+
- Risk levels: Low/Medium/High/Critical with color-coding
225+
- Trend analysis across multiple audits
226+
- Configurable alert thresholds
227+
228+
### 🎨 Dashboard Features
229+
- Animated risk gauge (circular, color-coded)
230+
- Interactive metric cards with change indicators
231+
- Anomaly cards with severity badges
232+
- Executive summary section
233+
- Responsive design (mobile-friendly, print-optimized)
234+
- Professional gradients and animations
235+
236+
### 🔔 Alert System
237+
- 6 alert types with configurable thresholds
238+
- HTML-formatted email notifications
239+
- SMTP support (Office 365, Gmail, Exchange)
240+
- Actionable recommendations
241+
242+
### 📈 Query Builder v2.2
243+
- 20 pre-built query templates (12 new)
244+
- Saved queries with descriptions
245+
- Query history (last 100 executions)
246+
- Chart visualization (Bar, Line, Pie)
247+
- Dark mode with localStorage persistence
248+
- Advanced filters (IN, BETWEEN operators)
249+
250+
### 🔒 Security Enhancements (v2.1)
251+
- ACL analysis (dangerous permissions detection)
252+
- Kerberos delegation audit (unconstrained/constrained)
253+
- DHCP scope inventory
254+
- GPO comprehensive inventory
255+
- Service account security analysis
256+
- AD trust relationships audit
257+
- Password policy analysis (default + fine-grained)
258+
- DNS zone inventory
259+
- Certificate Services audit
260+
261+
### 📝 Documentation
262+
- Analytics Guide (550+ lines)
263+
- Query Builder Enhancements Guide (500+ lines)
264+
- AD Security Components Guide
265+
- Complete PowerShell Gallery publishing guide
266+
267+
### 🧪 Testing & Quality
268+
- 118+ Pester tests (~78% coverage)
269+
- Zero linter errors
270+
- Comprehensive error handling
188271
- CI/CD integration (GitHub Actions + Azure DevOps)
189-
- Email notification system
190-
- PowerShell module manifest for professional packaging
191-
- Production-ready enterprise deployment
192-
193-
### Core Capabilities
194-
- Active Directory comprehensive audit (16 components)
195-
- Server hardware and application inventory
196-
- SQL Server discovery and analysis
197-
- Microsoft 365 full audit (Entra ID, Exchange, SharePoint, Teams)
198-
- Power Platform audit (apps, flows, DLP)
199-
- Compliance and security audit (retention, DLP, sensitivity labels)
200-
- HTML reporting suite (5 reports + executive dashboard)
201-
- SQLite database integration for advanced queries
202-
- Enterprise encryption (EFS, 7-Zip, Azure Key Vault)
203272
204-
### Test Coverage
205-
- SQLite database operations (25+ tests)
206-
- AD audit functions (30+ tests)
207-
- Cloud services (25+ tests)
208-
- Integration tests (10+ tests)
209-
- Utilities and helpers (20+ tests)
210-
211-
### Bug Fixes
212-
- Fixed variable scoping in parallel processing
213-
- Resolved linter warnings
214-
- Improved error handling in server inventory
215-
216-
### Documentation
217-
- Complete Pester testing documentation
218-
- CI/CD integration guides
219-
- Module packaging instructions
220-
- Quick start guides
273+
### 🛠️ Technical Details
274+
- 3 new analytics modules (~1,700 lines)
275+
- Start-M&A-Analytics.ps1 orchestrator (360 lines)
276+
- Risk scoring with 7 factors
277+
- Anomaly detection with 7 types
278+
- JSON/CSV/HTML output formats
279+
280+
### 📦 Total Value
281+
- ~6,100 lines of production code
282+
- ~2,000 lines of documentation
283+
- 5 releases (v2.0 → v2.3)
284+
- Enterprise-grade M&A audit platform
221285
'@
222286

223287
# Prerelease string of this module

0 commit comments

Comments
 (0)