What is the proper syntax for creating an empty group with powershell?
It's the same as creating any other group, just without bothering to add any members. You can see the CreateContainer call with lots of comments in this sample: https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/Groups.ps1
Here's a one-liner for creating an empty group:
Invoke-SwisVerb $swis Orion.Container CreateContainer @( "testing", "Core", 60, 0, "test empty", $true, ([xml]"<ArrayOfMemberDefinitionInfo xmlns='http://schemas.solarwinds.com/2008/Orion' />").DocumentElement)
Thanks I was struggling with the memberDefinitions