Curated Examples
Preview extension conversion
Preview dashboard report extension conversion before changing files.
This pattern is useful when a publishing target expects a different static file extension, such as converting .html reports to .aspx.
It is adapted from Examples/TheDashboardSharePointConversion.ps1.
Example
Import-Module TheDashboard
$reportsRoot = Join-Path $PSScriptRoot 'Reports'
Repair-DashboardExtension -Path $reportsRoot -ExtensionFrom '.html' -ExtensionTo '.aspx' -WhatIf
Repair-DashboardExtension -Path $reportsRoot -ExtensionFrom '.aspx' -ExtensionTo '.html' -WhatIf
Remove -WhatIf only after the target folder and conversion direction are correct.
What this demonstrates
- previewing file extension conversion
- keeping report paths script-local
- avoiding accidental bulk file changes during setup