Jesper Stein
Aug 23, 2018Brass Contributor
Generate Unified Group by number....
Hi guys
I'm creating a script that will create new UnifiedGroups in a format where its named Group_0001, Group_0002 and so on. We will the set the DisplayName to what ever the user want.
But I don't know how to generate a value +1 to the count I do:
$GroupNumber = Get-UnifiedGroup -Filter {Name -like "Group_000*"}
$GroupCount = $GroupNumber.count
When naming the the new group I want to generate the name as "Group_000{$Groupcount +1} (just writing rubbish to show what I'm trying to do).
Anyone have an idea on how to do this?