PSHTML-AD-Report icon indicating copy to clipboard operation
PSHTML-AD-Report copied to clipboard

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

Open bezik46 opened this issue 3 years ago • 0 comments

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

bezik46 avatar Mar 10 '21 07:03 bezik46