powershell to add AD groups as Site collection administrators


I have thousands of site collections and i need to add two AD security groups as Site Collection Administrators. Please help me with powershell command to perform the same.

LVL 13
Yagya ShreeAsked:
Who is Participating?
Yagya ShreeAuthor Commented:
Both links are to add user accounts and not the AD groups. Hence i will request to provide a script for adding AD groups. Has anyone ever done this?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.