Git Product home page Git Product logo

powershell-scripts's People

Contributors

mjolinir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

powershell-scripts's Issues

AuditReport.ps1 - not working

Hello,

I have just tried your script AuditReport.ps1 but unfortunately it does not work.

I have an Exchange 2016 CU22 on a Window Server 2016.
Current patch level

When executing the script, I get the following error after entering the variables, then an empty email is sent to me.

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

New-AuditLogReport : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the
parameters that take pipeline input.
At C:\temp\scripts\misc\AuditReport.ps1:72 char:89
+ ... (Get-Date).AddHours(-24)) -EndDate (Get-Date) | New-AuditLogReport) `
+                                                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...inAuditLogEvent:PSObject) [New-AuditLogReport], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,New-AuditLogReport

Do you have any ideas?

Exchange 2016 CU22 Issue

There is an issue with the Auditreport.ps1 script with Exchange 2016 CU22. Prior to Exchange 2016 CU22, it worked fine.

The param [Microsoft.Exchange.Management.SystemConfigurationTasks.AdminAuditLogEvent] should be of type [object], which appears to be where the script is failing.

Other people are reporting similar issues as outlined in the following link
https://docs.microsoft.com/en-us/answers/questions/615858/new-auditlogreport-the-input-object-cannot-be-boun.html

The above link also shows the error message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.