Domain Groups and PowerShell
Jason Hofferle has a nice post on Adding Domain Groups to Local Administrators Group with PowerShell. Basically Jason ran into a problem adding domain groups with long names using NET.EXE, so he had to come up with a PowerShell solution.
That’s right, the NET.EXE /ADD command does not support names longer than 20 characters. If
net localgroup /addis being used in a computer startup script, the groups with long names just won’t be added.So the traditional batch file startup script was replaced with a PowerShell startup script,
3 months ago - link

