Closed kungfoome closed 5 years ago
If i run something like this:
Find-Events -Report ADGroupMembershipChanges -DatesRange Last3days -Servers 'SRV01', SRV02' | Format-Table -AutoSize
And then run it like:
Find-Events -Report ADGroupMembershipChanges -DatesRange Last7days -Servers 'SRV01', SRV02' | Format-Table -AutoSize
I get an error
Get-ServersList : Cannot process argument transformation on parameter 'Dates'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Collections.IDictionary". At C:\Program Files\WindowsPowerShell\Modules\PSWinReportingV2\2.0.6\PSWinReportingV2.psm1:261 char:312 + ... sList -Definitions $Definitions -Target $Target -Dates $Dates -Quiet: ... + ~~~~~~ + CategoryInfo : InvalidData: (:) [Get-ServersList], ParameterBindingArgumentTransformationException + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-ServersList
Install-Module PSWinReportingv2 -Force
Sorry about that. Another bite in the ass for not clearing up variables. Should be fixed now.
If i run something like this:
Find-Events -Report ADGroupMembershipChanges -DatesRange Last3days -Servers 'SRV01', SRV02' | Format-Table -AutoSize
And then run it like:
Find-Events -Report ADGroupMembershipChanges -DatesRange Last7days -Servers 'SRV01', SRV02' | Format-Table -AutoSize
I get an error