AsBuiltReport / AsBuiltReport.Microsoft.Windows

Repository for AsBuiltReport Microsoft Windows module
MIT License
29 stars 12 forks source link

Error running report if previous and current version are installed together #8

Closed rebelinux closed 1 year ago

rebelinux commented 2 years ago

Describe the bug

I just updated to the latest version(0.5.5), on a server that used to run 0.5.4. When I try to run it now, i'm getting a failure:

WARNING: [ 12:30:06:171 ] [ Document ] - Installed AsBuiltReport.Microsoft.Windows Version: System.Object[]
New-AsBuiltReport : Could not compare "0.4.0" to "0.3.0 0.2.0". Error: "Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Version"."
At line:1 char:2
+  New-AsBuiltReport -Report Microsoft.AD -Target X.X.X.X -Username XXX ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport