locked
STSADM command to add AD Groups to a SharePoint Group RRS feed

Answers

  • Hi,

    It seems that stsadm –o adduser command by default doesn’t support AD group.

    I suggest you do that through UI in site settings.

    Or You can use Gary lapoint stsadm command to add AD group

    http://stsadm.blogspot.com/2007/12/add-user-2.html

    create a script like a addGroupAD.bat

    there you add the line to your sites

    Example:

    stsadm -o gl-adduser2 -url "http://intranet" -userlogin "nt authority\authenticated users" -group "Viewers"

    I provide you the link about stsadm -o adduser for your reference:

    http://technet.microsoft.com/en-us/library/cc262627(v=office.12).aspx

    Thanks,

    Rock Wang

    Forum Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Rock Wang TechNet Community Support

    Friday, June 29, 2012 9:28 AM