WSUS – Powershell – Adding a client to a folder

$Client = $wsus.SearchComputerTargets('computer1')
$group = $wsus.GetComputerTargetGroups() | Where {$_.Name –eq 'group1'}
group.AddComputerTarget($client[0])

then to verify the group membership:
$client[0].GetComputerTargetGroups()

Source:
MS Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

15 − six =

This site uses Akismet to reduce spam. Learn how your comment data is processed.