Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Error overload for Add and data type issue

$
0
0

Hi All,

 

I'm currently make a wsus script but having issues with two things. Firstly, when trying to add a group to the ApprovedCOmputerTargetGroups with .Add($group) its displaying error overload for add. The $group is equal to "Company1" and return a string.

The last issue is when using the -eq operator having -eq $group causing the script to brake and when I place the value of $group along side -eq "Company1" it's works.

 

If anyone can give some ideas why these issue are accruing, this will be great.

 

Thanks,

Paul


Viewing all articles
Browse latest Browse all 6937

Trending Articles