1
Vote

Error when creating new group

description

Either by using the parent groupe name or by using the parent groupe ID I get a conversion error.
New-PoshWSUSGroup -Name "Group 01" -ParentGroup "All Computers"
Cannot process argument transformation on parameter 'ParentGroup'. Cannot convert the "All Computers" value of type "System.String" to type "Microsoft.UpdateServices.Internal.BaseApi.ComputerTargetGroup".
    + CategoryInfo          : InvalidData: (:) [New-PoshWSUSGroup], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,New-PoshWSUSGroup
New-PoshWSUSGroup -Name "Group 01" -ParentGroup "a0a08746-4dbe-4a37-9adf-9e7652c0b421"
Cannot process argument transformation on parameter 'ParentGroup'. Cannot convert the "a0a08746-4dbe-4a37-9adf-9e7652c0b421" value of type "System.String" to type 
"Microsoft.UpdateServices.Internal.BaseApi.ComputerTargetGroup".
    + CategoryInfo          : InvalidData: (:) [New-PoshWSUSGroup], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,New-PoshWSUSGroup

comments