I'm trying to add to a variable the result of three variables and it keeps giving me this error:
"Method invocation failed because [System.Management.Automation.PSObject] doesn't contain a method named 'op_Addition'."
The problem is that I managed doing it a lot of times and now I just can't get it done...
What I'm trying to do is to keep in only one variable all the results found on a query for the word "Support" on a domain, something like this:
PS: I know that using Get-ADbject I can manage it better, but just wanted to know if there is a way because on Internet I found that the answer for it is just put this "$DistinguishedNames = @()" in the code.