神代綺凜

[OneDrive] E3 订阅无法设置默认5T储存空间的临时解决方法
近日和好友py到一个E3管理员,但在和他研究设置默认 OneDrive 空间为 5T 的时候遇到了无法设置的问题,...
扫描右侧二维码阅读全文
04
2018/12

[OneDrive] E3 订阅无法设置默认5T储存空间的临时解决方法

近日和好友py到一个E3管理员,但在和他研究设置默认 OneDrive 空间为 5T 的时候遇到了无法设置的问题,后来经过实验可以通过 SharePoint Online Management Shell 临时解决

Head Pic: 「キララチノちゃん」/「Mocha*」のイラスト [pixiv]
智乃生快w

SPO Shell 设置 OneDrive 空间大小

首先你必须拥有 Win 10 及以上系统,因为需要使用 PowerShell

步骤

1. 下载安装 SharePoint Online Management Shell

2. 运行命令

$adminUPN="[email protected]"
$orgName="yyy"
$sharepointURL="https://yyy.sharepoint.com/personal/xxx_yyy_onmicrosoft_com"

$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
Set-SPOTenant -OneDriveStorageQuota 5242880
Set-SPOSite -Identity $sharepointURL -StorageQuota 5242880

一切的前提:你使用的必须是组织中的管理员账户

中途会弹出一个窗口,输入登录密码即可

并修改命令开头的一些参数,示例中以xxx代表了用户显示名、yyy代表组织名

  • $adminUPN为帐号邮箱
  • $adminUPN为组织名
  • $sharepointURL为用户URL,大概格式就像上面示例的那样,就是你打开 OneDrive 网页时的 URL 前面部分,并且末尾一定不能加上斜杠/

3. 完成

如果没有报什么错的话,这时候看自己的 OneDrive 空间应该有 5T 了

搬瓦工VPS优惠套餐,建站稳如狗,支持支付宝,循环出账94折优惠码BWH26FXH3HIQ
年付$28CN2线路,1核/512M内存/10G硬盘/[email protected]点击购买】(经常售罄,请抓紧机会)
年付$47CN2线路,1核/1G内存/20G硬盘/[email protected]点击购买
Last modification:December 4th, 2018 at 06:39 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

4 comments

  1. 萌新  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 73.0.3683.86(Google Chrome 73.0.3683.86)
    羡慕有这样的好友。。emmmm
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 73.0.3683.103(Google Chrome 73.0.3683.103)
  2. Arron  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 71.0.3578.98(Google Chrome 71.0.3578.98)
    Connect-SPOService : Could not connect to SharePoint Online.
    所在位置 行:6 字符: 1
    + Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Creden ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Connect-SPOService], InvalidOperationException
        + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOServic
       e
    
    Set-SPOTenant : No connection available. Use Connect-SPOService before running this CmdLet.
    所在位置 行:7 字符: 1
    + Set-SPOTenant -OneDriveStorageQuota 5242880
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-SPOTenant], InvalidOperationException
        + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.SetTenant
    
    Set-SPOSite : No connection available. Use Connect-SPOService before running this CmdLet.
    所在位置 行:8 字符: 1
    + Set-SPOSite -Identity $sharepointURL -StorageQuota 5242880
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-SPOSite], InvalidOperationException
        + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Online.SharePoint.PowerShell.SetSite

    大佬 , 报了这个错误

    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 71.0.3578.98(Google Chrome 71.0.3578.98)
      @Arron Connect-SPOService : Could not connect to SharePoint Online. 可能是网络问题