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