PowerNetbox v4.5.2.0
Released 2026-02-03 - View on GitHub
PowerNetbox v4.5.2.0
Full Netbox 4.5.2 Compatibility | 20+ PRs Merged | 1436 Unit Tests | 98 Integration Tests
This is a major release bringing full Netbox 4.5.2 compatibility with significant new features, bug fixes, security improvements, and performance optimizations.
Highlights
- Full Netbox 4.5.2 Support with netbox-docker 4.0.0 (Granian, PostgreSQL 18, Valkey 9)
- Critical Bug Fix:
?exclude=→?omit=parameter for Netbox 4.5.x - New Function:
New-NBImageAttachmentfor uploading images to any Netbox object - -Omit Parameter: Added to all 123 Get functions for field exclusion
- Security Fixes: Sensitive data redaction, SecureString for webhook secrets, safer redirects
New Features
New-NBImageAttachment Function
Upload images to any Netbox object (racks, devices, sites, etc.):
powershell
New-NBImageAttachment -ContentType 'dcim.rack' -ObjectId 42 -ImagePath './photo.jpg'
-Omit Parameter on All 123 Get Functions (#256, #258)
Exclude specific fields from API responses (requires Netbox 4.5.0+):
powershell
Get-NBDCIMDevice -Omit 'comments','description','local_context_data'
Strong Parameter Typing (#248)
ValidateSet attributes added for enum parameters across all functions.
VPN & Wireless Pagination (#250)
-All pagination support added to all VPN and Wireless Get functions.
Bug Fixes
Critical: ?exclude= → ?omit= (#257)
The ?exclude= parameter silently does nothing in Netbox 4.5.x. Changed to ?omit= for config_context exclusion, providing 10-100x performance improvement.
Security Fixes (#234)
| Issue | Fix |
|---|---|
| #228 | Verbose logging now redacts sensitive fields |
| #230 | Webhook Secret parameters use SecureString |
| #231 | AllowInsecureRedirect only enabled with SkipCertificateCheck |
Other Fixes
-
252: Remove obsolete Form_Factor parameter
-
247: Add input validation for URL segments
-
246: Use Stack[object] for BranchStack type consistency
-
245: Fix template-like example text in documentation
-
232: Support v2 Bearer tokens in Get-NBDCIMRackElevation
-
226: Remove unnecessary GET calls (performance)
-
225: Add validation and fix PSScriptAnalyzer warnings
-
224: Fix help text corruption across modules
-
223: Fix code formatting issues
-
222: Fix verbose message issues
-
221: Add missing 'Raw' parameter handling
-
220: New-NBContactRole uses correct API endpoint
CI/CD Improvements
Netbox-docker 4.0.0 Migration (#255)
- Upgraded CI to netbox-docker 4.0.0
- New stack: Granian ASGI server, PostgreSQL 18, Valkey 9
- Token v2 creation fixes for Netbox 4.5+
Testing
| Test Type | Count | Status |
|---|---|---|
| Unit Tests | 1436 | All platforms |
| Integration Tests | 98 | Live Netbox |
| Compatibility Tests | 94×3 | Netbox 4.3.7, 4.4.10, 4.5.2 |
| Branching Tests | 12 | netbox-branching 0.8.0 |
Installation
```powershell Install-Module PowerNetbox -Force
or
Update-Module PowerNetbox ```
Merged PRs
| PR | Description |
|---|---|
| #258 | Add -Omit parameter to all 123 Get functions |
| #257 | Netbox 4.5.2 support with ?omit= fix and New-NBImageAttachment |
| #255 | Migrate to netbox-docker 4.0.0 |
| #252 | Remove obsolete Form_Factor parameter |
| #251 | Add pagination parameter tests for VPN/Wireless |
| #250 | Add -All pagination to VPN/Wireless Get functions |
| #248 | Add strong parameter typing with ValidateSet |
| #247 | Add input validation for URL segments |
| #246 | Use Stack[object] for BranchStack type consistency |
| #245 | Fix template-like example text in documentation |
| #234 | Security fixes (#228, #230, #231) |
| #232 | Support v2 Bearer tokens in Get-NBDCIMRackElevation |
| #227 | Add comprehensive branching integration tests |
| #226 | Remove unnecessary GET calls from Set/Remove functions |
| #225 | Add validation and fix PSScriptAnalyzer warnings |
| #224 | Fix help text corruption across modules |
| #223 | Fix code formatting issues |
| #222 | Fix verbose message issues |
| #221 | Add missing 'Raw' parameter handling |
| #220 | New-NBContactRole uses correct API endpoint |
Full Changelog: https://github.com/ctrl-alt-automate/PowerNetbox/compare/v4.5.0.2...v4.5.2.0