You’ll notice that if you use a “net localgroup administrators /add DOMAIN\Group” that the command fails with a syntax error. Some folks say that this is because of a limitation on the length of the group name, but I call shenanigans on that explanation. At any rate, you’ll slam your head against your desk for a while, until you do the following:1) Open up Notepad2) Paste in the following lines, substituting [DOMAINNAME] and [DOMAINGROUPNAME] as necessary:Set objLocalGroup = GetObject("WinNT:/
↧