-
Notifications
You must be signed in to change notification settings - Fork 131
Description
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
-
$ expireson = $ passwordsetdate.AddDays ($ maxPasswordAge)
- CategoryInfo: NotSpecified: (:) [], MethodException
- FullyQualifiedErrorId: MethodArgumentConversionInvalidCastArgument
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
- CategoryInfo: WriteError: (:) [New-TimeSpan], ParameterBindingException
- FullyQualifiedErrorId: ParameterBindingFailed, Microsoft.PowerShell.Commands.NewTimeSpanCommand`
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 *
- CategoryInfo: NotSpecified: (:) [Get-ADComputer], ADException
- FullyQualifiedErrorId: ActiveDirectoryServer: 0, Microsoft.ActiveDirectory.Management.Commands.GetADComputer`