OneDrive 和 SharePoint 解除只读方法(管理员专用)
用管理员账号打开 SharePoint Online Management Shell
依次执行以下命令:
Connect-SPOService -Url https://<你的租户名>-admin.sharepoint.com
# 解除 SharePoint 站点只读
Set-SPOSite -Identity "https://<你的租户名>.sharepoint.com/sites/<站点名>" -LockState Unlock
# 解除 OneDrive 只读
Set-SPOSite -Identity "https://<你的租户名>-my.sharepoint.com/personal/<用户名>_<你的租户名>_com" -LockState Unlock
下载安装 https://www.microsoft.com/zh-cn/download/details.aspx?id=108197
普通账号密码登陆 Connect-SPOService -Url https://xxx-admin.sharepoint.com -Credential admin@xxx.xx
两步验证账号密码登陆 Connect-SPOService -Url https://xxx-admin.sharepoint.com
解锁 Set-SPOSite -Identity "https://xxx-my.sharepoint.com/personal/admin_xxx_xx_xx" -LockState "unlock"