變更特定使用者的 OneDrive 儲存空間Change a specific user's OneDrive storage space

在 Microsoft 365 中以全域或 SharePoint 管理員的身分,您可以為特定使用者設定 OneDrive 儲存空間。As a global or SharePoint admin in Microsoft 365, you can set the OneDrive storage space for a specific user.

注意

如需設定預設儲存空間的資訊,請參閱 設定 OneDrive 使用者的預設儲存空間For info about setting the default storage space, see Set the default storage space for OneDrive users. 如需 Microsoft 365 訂閱可用儲存區的相關資訊,請參閱 OneDrive 服務描述For info about the storage available for your Microsoft 365 subscription, see the OneDrive service description.

注意

如果您的組織是針對多地理位置設定的,您必須使用 PowerShell 來變更使用者的 OneDrive 儲存空間。If your organization is configured for multi-geo, you need to use PowerShell to change a user's OneDrive storage space. 在 Microsoft 365 系統管理中心中無法使用編輯儲存限制。Editing storage limits isn't available in the Microsoft 365 admin center.

在 Microsoft 365 系統管理中心變更使用者的儲存空間Change a user's storage space in the Microsoft 365 admin center

  1. https://admin.microsoft.com 全域或 SharePoint 管理員身分登入。 (如果您看到一則訊息表明您沒有存取此頁面的許可權,則您的組織中沒有 Microsoft 365 系統管理員許可權。 ) Sign in to https://admin.microsoft.com as a global or SharePoint admin. (If you see a message that you don't have permission to access the page, you don't have Microsoft 365 admin permissions in your organization.)

    注意

    如果您有 Office 365 Germany,請登入 https://portal.office.de。如果您有 21Vianet 運作的 Office 365 (中國),請登入 https://login.partner.microsoftonline.cn/。然後選取 [管理] 圖格以開啟系統管理中心。If you have Office 365 Germany, sign in at https://portal.office.de. If you have Office 365 operated by 21Vianet (China), sign in at https://login.partner.microsoftonline.cn/. Then select the Admin tile to open the admin center.

  2. 在左窗格中,選取 [ 使用者 作用中 > 使用者]。In the left pane, select Users > Active users.

  3. 選取使用者。Select the user.

  4. 選取 [ OneDrive ] 索引標籤。Select the OneDrive tab.

  5. 在 [ 儲存空間使用 ] 底下按一下 [ 編輯]。Under Storage used click Edit.

  6. 選取 [ 此使用者的儲存量上限 ] 選項,然後輸入您要使用的儲存空間限制。Select the Maximum storage for this user option, and type the storage limit that you want to use.

  7. 按一下 [儲存]Click Save.

    Microsoft 365 系統管理中心中 OneDrive 儲存設定的螢幕擷取畫面

當您需要個別使用者的雲端儲存空間超過初始 5 TB 時,將會授與其他雲端儲存空間,如下所示:When you need cloud storage for individual users beyond the initial 5 TB, additional cloud storage will be granted as follows:

當使用者將其 5 TB 的 OneDrive 儲存空間填滿90% 的容量時,Microsoft 會將您的預設儲存空間增加 OneDrive 每位使用者高達 25 TB (系統管理員可能會根據使用者限制,設定其是否要) 。When a user has filled their 5 TB of OneDrive storage to at least 90% capacity, Microsoft will increase your default storage space in OneDrive to up to 25 TB per user (admins may set a lower per-user limit if they want to).

對於達到 25 TB OneDrive 儲存空間至少 90% 容量的使用者,可以以 25 TB SharePoint 小組網站的形式提供額外的雲端儲存空間給個別使用者。For any user that reaches at least 90% capacity of their 25 TB of OneDrive storage, additional cloud storage will be provided as 25 TB SharePoint team sites to individual users. 如需資訊和協助,請連絡 Microsoft 技術支援人員。Contact Microsoft technical support for information and assistance.

系統管理員可以 使用 Microsoft 技術支援開啟案例 ,以要求超過 5 TB 的儲存空間。Admins can open a case with Microsoft technical support to request storage beyond 5 TB.

使用 PowerShell 變更使用者的儲存空間Change a user's storage space by using PowerShell

  1. 下載最新的 SharePoint Online 管理命令介面Download the latest SharePoint Online Management Shell.

    注意

    如果您安裝的是舊版 SharePoint Online 管理命令介面,請移至 [新增或移除程式],並解除安裝 [SharePoint Online 管理命令介面]。If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."

    在下載中心頁面上,選擇您的語言,然後按一下 [下載] 按鈕。On the Download Center page, select your language and then click the Download button. 系統會請您選擇下載 x64 或 x86 .msi 檔案。You'll be asked to choose between downloading a x64 and x86 .msi file. 如果您執行的是 64 位元版本的 Windows,請下載 x64 檔案;或如果您執行的是 32 位元版本,請下載 x86 檔案。Download the x64 file if you're running the 64-bit version of Windows or the x86 file if you're running the 32-bit version. 如果您不知道,請參閱我正在執行哪個版本的 Windows 作業系統?If you don't know, see Which version of Windows operating system am I running?. 下載檔案之後,請執行檔案,並按照安裝精靈中的步驟進行。After the file downloads, run it and follow the steps in the Setup Wizard.

  2. 將下列腳本儲存為 PowerShell 檔案。Save the following script as a PowerShell file. 例如,您可以將它儲存到名為 UpdateOneDriveStorage.ps1 的檔案。For example, you could save it to a file named UpdateOneDriveStorage.ps1.

    $TenantUrl = Read-Host "Enter the SharePoint admin center URL" 
    Connect-SPOService -Url $TenantUrl 
    
    $OneDriveSite = Read-Host "Enter the OneDrive Site URL" 
    $OneDriveStorageQuota = Read-Host "Enter the OneDrive Storage Quota in MB" 
    $OneDriveStorageQuotaWarningLevel = Read-Host "Enter the OneDrive Storage Quota Warning Level in MB" 
    Set-SPOSite -Identity $OneDriveSite -StorageQuota $OneDriveStorageQuota -StorageQuotaWarningLevel $OneDriveStorageQuotaWarningLevel 
    Write-Host "Done" 
    
  3. 開啟 SharePoint 線上管理命令介面。Open the SharePoint Online Management Shell. 在您儲存腳本的位置中執行腳本。Run the script in the location you saved it.

    PS C:\>.\ UpdateOneDriveStorage.ps1
    

    注意

    如果您收到無法執行指令碼的錯誤訊息,您可能需要變更執行原則。If you get an error message about being unable to run scripts, you might need to change your execution policies. 如需 PowerShell 執行原則的詳細資訊,請參閱 關於執行原則For more info about PowerShell execution policies, see About Execution Policies.

  4. 出現提示時,請輸入 SharePoint 管理中心 URL。When prompted, enter the SharePoint admin center URL. 例如," https://contoso-admin.sharepoint.com " 是 Contoso SharePoint admin CENTER URL。For example, "https://contoso-admin.sharepoint.com" is the Contoso SharePoint admin center URL.

  5. 在 Microsoft 365 中以全域或 SharePoint 管理員身分登入。Sign in as a global or SharePoint admin in Microsoft 365.

  6. 輸入 OneDrive 網站 URL: 例如, https://contoso-my.sharepoint.com/personal/user_contoso_onmicrosoft_comEnter the OneDrive site URL: For example, https://contoso-my.sharepoint.com/personal/user_contoso_onmicrosoft_com.

  7. 輸入以 MB 為單位的 OneDrive 儲存配額。Enter the OneDrive Storage Quota in MB.

  8. 輸入以 MB 為單位的 OneDrive 儲存配額警告層級。Enter the OneDrive Storage Quota Warning Level in MB.

    M bMB 結核病TB
    10240001024000 1 1
    20480002048000 2 2
    30720003072000 3
    40960004096000 4 4
    51200005120000 5 5
    61440006144000 6 6
    71680007168000 7 7
    81920008192000 8 8
    92160009216000 9 9
    10240001024000 10 10

注意

若要變更多個使用者的儲存空間,請使用 PowerShell,使用 PowerShell 顯示 OneDrive 帳戶的清單 ,並使用 Set-SPOSite 進行變更。To change the storage space for multiple users, use PowerShell to Display a list of OneDrive accounts by using PowerShell and use Set-SPOSite to make the change.

若要停用特定使用者的 OneDrive 建立,請參閱 在 SharePoint 系統管理中心中管理使用者設定檔To disable OneDrive creation for specific users, see Manage user profiles in the SharePoint admin center.