Sunday, October 6, 2019

Giving Access/Admin Rights to OneDrive account using PowerShell

Connect-SPOService -Url https://ajtech-admin.sharepoint.com -credential ajadmin@ajtech.com

$site = Get-SPOSite -Identity "https://ajtech-my.sharepoint.com/personal/aj_user1_ajtech_com"
Set-SPOUser -Site $site.Url -LoginName ajuser2@ajtech.com -IsSiteCollectionAdmin $true

No comments:

Post a Comment