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

Need help : many errors :-)

Open mulbzh opened this issue 6 years ago • 3 comments

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`

mulbzh avatar Apr 03 '19 09:04 mulbzh

i am having the same issue.

theiconrichie avatar Apr 15 '19 14:04 theiconrichie

Having the same issue and one additional during "Compiling Report" Get-HTMLPieChart : Cannot bind argument to parameter 'DataSet' because it is an empty collection. At C:\Automation\PSHTML-AD.ps1:1797 char:83

  • ... hart -ChartObject $PieObjectComputerObjOS -DataSet $GraphComputerOS))
  •                                                    ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Get-HTMLPieChart], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyCollectionNotAllowed,Get-HTMLPieChart

Save-HTMLReport : Cannot bind argument to parameter 'ReportContent' because it is null. At C:\Automation\PSHTML-AD.ps1:1808 char:32

  • Save-HTMLReport -ReportContent $FinalReport -ShowReport -ReportName $ ...
  •                            ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Save-HTMLReport], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Save-HTMLReport

yert1969 avatar Aug 14 '19 17:08 yert1969