Mar 14 2017 07:44 AM
Is there a way to add the Company Administrator as the primary site collection administrator for all site collections using PowerShell?
Mar 14 2017 08:24 AM - edited Mar 14 2017 08:25 AM
You can use the PnP PowerShell commandlets to do so. A nice example of what you want to achieve can be found at:
More information about these commandlets can be found at:
https://msdn.microsoft.com/en-us/pnp_powershell/pnp-powershell-overview
Mar 14 2017 12:32 PM
Mar 15 2017 03:38 AM
I tried the set-sposite command but it requires an actual email id for owner tag, I cannot put "Company Administrator" in there as the user doesnt exist.