jdhitsolutions/ADReportingTools

BUG New-ADChangeReport CSS Path not detected.

Closed this issue · 3 comments

This is a bug reported by @klaypigeon

PS C:\Windows\system32> new-adchangereport
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\ADReportingTools\1.0.0\Functions\ADChangeReport.ps1:130 char:13
+             $htmlParams.Add("CSSPath", $CSSPath)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

I had re-organized some code and I see now that I am trying to add something that hasn't been defined yet. This should be easy to fix.

This should be fixed in v1.1.0 (38ccd83). Update the module from the PowerShell gallery and try again.