proxb / PoshWSUS

PowerShell module to manage Windows Server Update Services (WSUS)
MIT License
231 stars 64 forks source link

New-PSWSUSGroup and ParentGroup parameter #48

Closed nyukers closed 6 years ago

nyukers commented 6 years ago

New-PSWSUSGroup -Name 'Group01' -ParentGroup 'pilotHosts' -Whatif I got - New-PSWSUSGroup: Can not process the argument conversion for the "ParentGroup" parameter. Can not convert the value of "pilotHosts" type "System.String" to type Microsoft.UpdateServices.Internal.BaseApi.ComputerTargetGroup ".

nyukers commented 6 years ago

$grp = Get-PSWSUSGroup | ?{$_.Name -like "PARENTGROUP"} New-PSWSUSGroup -Name "CHILDGROUP" -ParentGroup $grp -WhatIf Solved!