set:item the WS-managment services cannot process the configuration request. The xml contains an invalid setting. the value is longer than the maximum length or 10239.
it references this line…
Set-Item WSMan:\localhost\Client\TrustedHosts -Value “$Computer” -Concatenate -Force.
CatagoryInfo: not spcecified: ( [Set-item], InvalidOperationException
does the trustedhosts file have a size limitation?
the PC running the script is (Win10 v1709) in a domain environment.
the script loops though txt file containing ComputerNames to get system info from remote win 7 PC’s
the script still runs and the output is correct
any thoughts would be greatly appreciated
thanks in advance