Forum Discussion
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 ...
Mattias Borg
Aug 24, 2018Brass Contributor
Hi,
here's an example how to solve leading zeros
1..100 | %{
$number = "{00:D5}" -f $_
Write-Host $number
}
Mattias Borg
Aug 24, 2018Brass Contributor
so if you run that it will give you an idea how to solve your challenge