no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | windows:server_os:add_long_ad_grp_to_local_grp [2019/10/31 09:06] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Add AD group with long name as local group member ====== | ||
| + | When you try to add an Active Directory group with name longer than 25 characters (in total), net.exe command will not work; but you can use the following VB script instead | ||
| + | <code vbscript> | ||
| + | Set objLocalGroup = GetObject(" | ||
| + | Set objADGroup1 = GetObject(" | ||
| + | objLocalGroup.Add(objADGroup1.ADsPath) | ||
| + | Set objLocalGroup = Nothing | ||
| + | Set objADGroup = Nothing | ||
| + | </ | ||