bwya77 / PSHTML-AD-Report

Create a high level interactive HTML report for you Active Directory environment using PowerShell
https://thelazyadministrator.com/2018/12/04/get-an-active-directory-interactive-html-report-with-powershell/
MIT License
376 stars 132 forks source link

Cannot convert argument "value", with value: "", for "AddDays" to type "System.Double": #54

Open bezik46 opened 3 years ago

bezik46 commented 3 years ago
Cannot convert argument "value", with value: "10675199.02:48:05.4775807", for "AddDays" to type "System.Double":
"Cannot convert the "10675199.02:48:05.4775807" value of type "System.TimeSpan" to type "System.Double"."
At C:\PSScripts\PSHTML-AD.ps1:946 char:4
+             $expireson = $passwordsetdate.AddDays($maxPasswordAge)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument