Skip to content

Method invocation failed because .. #5

@chrish13

Description

@chrish13

Hello !!
I tried your script and it was failing on my end under PowerShell v.4, v.5, and PowerShell core 7+
The error was the following:
Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
What I did to resolve it was replace the "+=" with just "=". Is this something that I am not doing right? Is this something that you know about it.
By doing the above correction I am getting results, however I am not getting all the disconnected users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions