Hello and sorry for my English,
I use win 2019 controler in French.
When i launch the script i have this errors :
Lot of errors like this with diffrent groups :
Cannot resolve the manager, on the group Accès DCOM service de certificats
errors for users :
`Working on Users Report ...
Unable to convert the "value" argument (value "180.00: 00: 00") from "AddDays" to type "System.Double": "Unable to convert the value" 180.00: 00: 00 "of type" System.TimeSpan "In type" System.Double ". "
To the character Line: 946: 4
New-TimeSpan: Unable to link the "End" parameter to the target. Exception when setting "End": "Unable to convert null to type" System.DateTime ". "
To the character Line: 950: 53
and for computers
`Working on Computers Report ...
Get-ADComputer: The server returned the following error: Invalid enumeration context.
To the character Line: 1211: 14
Hello and sorry for my English,
I use win 2019 controler in French.
When i launch the script i have this errors :
Lot of errors like this with diffrent groups :
Cannot resolve the manager, on the group Accès DCOM service de certificatserrors for users :
`Working on Users Report ...
Unable to convert the "value" argument (value "180.00: 00: 00") from "AddDays" to type "System.Double": "Unable to convert the value" 180.00: 00: 00 "of type" System.TimeSpan "In type" System.Double ". "
To the character Line: 946: 4
$ expireson = $ passwordsetdate.AddDays ($ maxPasswordAge)
New-TimeSpan: Unable to link the "End" parameter to the target. Exception when setting "End": "Unable to convert null to type" System.DateTime ". "
To the character Line: 950: 53
... $ daystoexpire = (New-TimeSpan -Start $ today -End $ Expireson) .Days
and for computers
`Working on Computers Report ...
Get-ADComputer: The server returned the following error: Invalid enumeration context.
To the character Line: 1211: 14
$ Computers = Get-ADComputer -Filter * -Properties *