Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

windows:server_os:add_long_ad_grp_to_local_grp [2019/10/31 09:06] (current)
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("​WinNT://​./​Administrators"​)
 +Set objADGroup1 = GetObject("​WinNT://​DOMAINNAME/​DOMAINGROUPNAME"​)
 +Set objLocalGroup = Nothing
 +Set objADGroup = Nothing
windows/server_os/add_long_ad_grp_to_local_grp.txt · Last modified: 2019/10/31 09:06 (external edit)