{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/zh-tw/powershell/","_op_gitContributorInformation":{"author":{"display_name":"Banreet Kaur","id":"92906285","name":"Banreet","profile_url":"https://github.com/Banreet"},"contributors":[{"display_name":"Aaron Czechowski","id":"26784733","name":"aczechowski","profile_url":"https://github.com/aczechowski"}],"update_at":"2026/8/3","updated_at_date_time":"2026-08-03T08:55:07.4745148Z"},"_path":"module/configurationmanager/set-cmonedrivebusinessprofile.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmonedrivebusinessprofile?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"b6cf7ef5-2b72-ab22-af59-7e2328a31e7b","document_version_independent_id":"081b7d12-856a-e86a-f4dd-85b8ea2364cc","external help file":"AdminUI.PS.dll-Help.xml","feedback_product_url":"https://feedbackportal.microsoft.com/feedback/forum/4669adfc-ee1b-ec11-b6e7-0022481f8472","feedback_system":"Standard","git_commit_id":"48cf632fb4b9ad92060012681a500478254de750","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/48cf632fb4b9ad92060012681a500478254de750/sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md","github_contributors":["aczechowski"],"locale":"zh-tw","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/04/2020","ms.service":"microsoft-endpoint-configuration-manager","ms.subservice":"other","ms.topic":"reference","online version":"","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-08-03 08:55 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmonedrivebusinessprofile","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMOneDriveBusinessProfile","schemaType":"PowershellCmdlet","summary":"<p>設定商務用 OneDrive 設定文件原則。</p>\n","uid":"ConfigurationManager.Set-CMOneDriveBusinessProfile"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Set-CMOneDriveBusinessProfile":{"href":"set-cmonedrivebusinessprofile","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMOneDriveBusinessProfile","schemaType":"PowershellCmdlet","summary":"<p>設定商務用 OneDrive 設定文件原則。</p>\n","uid":"ConfigurationManager.Set-CMOneDriveBusinessProfile"}},"description":"<p>設定商務用 OneDrive 設定文件原則。 使用此原則將 Windows 已知資料夾移至商務用 OneDrive。 這些資料夾包括 Desktop、Documents 和 Pictures。 在每個設定檔中，您可以指定移動 Windows 已知資料夾的設定。 如需商務用 OneDrive 的詳細資訊，請參閱 <a href=\"/onedrive/redirect-known-folders\">將 Windows 已知資料夾重新導向並移至 OneDrive</a>。</p>\n<p>如需此 Configuration Manager 原則的詳細資訊，請參閱 <a href=\"/mem/configmgr/compliance/deploy-use/onedrive-profile\">商務用 OneDrive 配置檔</a>。</p>\n","examples":[{"code":"$Plats2 = Get-CMSupportedPlatform -Name \"All Windows 10 *\" -Fast -Platform \"X64\"\n\nSet-CMOneDriveBusinessProfile -Name \"ODfB policy\" -ClearSupportedPlatform -AddSupportedPlatform $Plats2 -O365TenantId \"05d683b9-caed-4eea-b229-45f72b89ca05\" -KnownFolderMoveOption SilentlyMove -ShowNotification $true -PreventRedirectKnownFolders $true","description":"","summary":"","title":"範例 1"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"get-cmonedrivebusinessprofile","text":"Get-CMOneDriveBusinessProfile"},{"href":"new-cmonedrivebusinessprofile","text":"New-CMOneDriveBusinessProfile"},{"href":"/mem/configmgr/compliance/deploy-use/onedrive-profile","text":"商務用 OneDrive 設定檔"}],"module":"ConfigurationManager","name":"Set-CMOneDriveBusinessProfile","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"AddSupportedPlatforms","defaultValue":"None","description":"<p>指定此原則適用的支持平台物件。 若要取得此物件，請使用 <a href=\"get-cmsupportedplatform\">Get-CMSupportedPlatform</a> Cmdlet。</p>\n","name":"AddSupportedPlatform","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>新增此參數以清除目前支援的平台清單。</p>\n","name":"ClearSupportedPlatform","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"cf","defaultValue":"None","description":"<p>執行 Cmdlet 之前提示您確認。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"LocalizedDescription","defaultValue":"None","description":"<p>指定商務用 OneDrive 原則的選擇性描述，以更妥善地加以識別。</p>\n","name":"Description","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會將通配符視為常值字元值。 您無法將其與 <strong>ForceWildcardHandling</strong> 結合。</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會處理通配符，並可能導致非預期的行為 (不建議) 。 您無法將其與 <strong>DisableWildcardHandling</strong> 結合。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"CI_ID, CIId","defaultValue":"None","description":"<p>指定要設定之商務用 OneDrive 原則的 <strong>CI 識別</strong> 碼。 格式為五到七位數的數位，例如 <code>403823</code>。</p>\n","isRequired":true,"name":"Id","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"},{"aliases":"OneDriveBusinessPolicy","defaultValue":"None","description":"<p>指定要設定的商務用 OneDrive 原則物件。 若要取得此物件，請使用 <a href=\"get-cmonedrivebusinessprofile\">Get-CMOneDriveBusinessProfile</a> Cmdlet。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"OneDriveKnownFolderMoveOption","defaultValue":"None","description":"<p>指定要如何將已知資料夾移至 OneDrive：</p>\n<ul>\n<li>\n              <code>PromptToMove</code>：提示使用者將 Windows 已知資料夾移至 OneDrive。 使用者看到精靈移動其檔案。 如果他們選擇延後或拒絕移動資料夾，OneDrive 會定期提醒他們。</li>\n<li>\n              <code>SilentlyMove</code>：以無訊息方式將 Windows 已知資料夾移至 OneDrive。 當此原則套用至裝置時，OneDrive 用戶端會自動將已知資料夾重新導向至商務用 OneDrive。</li>\n</ul>\n","name":"KnownFolderMoveOption","parameterValueGroup":"PromptToMove, SilentlyMove","position":"Named","type":"<span class=\"no-loc xref\">MoveKnownFolderOptionType</span>\n"},{"aliases":"LocalizedDisplayName","defaultValue":"None","description":"<p>指定要設定的商務用 OneDrive 原則名稱。</p>\n","isRequired":true,"name":"Name","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>若要重新命名此商務用 OneDrive 原則，請指定新名稱。</p>\n","name":"NewName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"AADTenantId","defaultValue":"None","description":"<p>指定您的Microsoft 365 租用戶標識碼。 \n              <a href=\"/onedrive/find-your-office-365-tenant-id\">尋找您的Microsoft 365 租用戶標識碼</a>。</p>\n","name":"O365TenantId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>將此參數設定為 ， <code>$true</code> 以防止使用者將其 Windows 已知資料夾重新導向回其電腦。 它會停用用戶端上商務用 OneDrive 中的 選項，讓使用者將這些資料夾移回裝置。</p>\n","name":"PreventRedirectKnownFolders","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"RemoveSupportedPlatforms","defaultValue":"None","description":"<p>指定要從此原則中移除的支持平台物件。 若要取得此物件，請使用 <a href=\"get-cmsupportedplatform\">Get-CMSupportedPlatform</a> Cmdlet。</p>\n","name":"RemoveSupportedPlatform","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>當您使用 <code>SilentlyMove</code><strong>KnownFolderMoveOption</strong> 參數時，如果您將此參數設定為 <code>$true</code>，OneDrive 用戶端會在行動使用者的資料夾之後通知使用者。</p>\n","name":"ShowNotification","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"wi","defaultValue":"None","description":"<p>顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>設定商務用 OneDrive 設定文件原則。</p>\n","syntaxes":["Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] [-KnownFolderMoveOption <MoveKnownFolderOptionType>] -Name <String>\n [-NewName <String>] [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>]\n [-RemoveSupportedPlatform <IResultObject[]>] [-ShowNotification <Boolean>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] -Id <Int32> [-KnownFolderMoveOption <MoveKnownFolderOptionType>] [-NewName <String>]\n [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>] [-RemoveSupportedPlatform <IResultObject[]>]\n [-ShowNotification <Boolean>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]","Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] -InputObject <IResultObject> [-KnownFolderMoveOption <MoveKnownFolderOptionType>]\n [-NewName <String>] [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>]\n [-RemoveSupportedPlatform <IResultObject[]>] [-ShowNotification <Boolean>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Set-CMOneDriveBusinessProfile","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"zh-tw","loc_version":"2024-08-21T21:18:36.7205003Z","loc_source_id":"Github-72476255#live","loc_file_id":"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmonedrivebusinessprofile","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMOneDriveBusinessProfile","schemaType":"PowershellCmdlet","summary":"<p>設定商務用 OneDrive 設定文件原則。</p>\n","uid":"ConfigurationManager.Set-CMOneDriveBusinessProfile"}],"canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmonedrivebusinessprofile?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmonedrivebusinessprofile?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>設定商務用 OneDrive 設定文件原則。 使用此原則將 Windows 已知資料夾移至商務用 OneDrive。 這些資料夾包括 Desktop、Documents 和 Pictures。 在每個設定檔中，您可以指定移動 Windows 已知資料夾的設定。 如需商務用 OneDrive 的詳細資訊，請參閱 <a href=&quot;/onedrive/redirect-known-folders&quot;>將 Windows 已知資料夾重新導向並移至 OneDrive</a>。</p>\n<p>如需此 Configuration Manager 原則的詳細資訊，請參閱 <a href=&quot;/mem/configmgr/compliance/deploy-use/onedrive-profile&quot;>商務用 OneDrive 配置檔</a>。</p>\n\" />\r\n<meta name=\"hideEdit\" content=\"true\" />\r\n<meta name=\"loc_file_id\" content=\"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMOneDriveBusinessProfile.md\" />\r\n<meta name=\"loc_source_id\" content=\"Github-72476255#live\" />\r\n<meta name=\"loc_version\" content=\"2024-08-21T21:18:36.7205003Z\" />\r\n<meta name=\"module\" content=\"ConfigurationManager\" />\r\n<meta name=\"ms.contentlocale\" content=\"zh-tw\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Set-CMOneDriveBusinessProfile\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>設定商務用 OneDrive 設定文件原則。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] [-KnownFolderMoveOption <MoveKnownFolderOptionType>] -Name <String>\n [-NewName <String>] [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>]\n [-RemoveSupportedPlatform <IResultObject[]>] [-ShowNotification <Boolean>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] -Id <Int32> [-KnownFolderMoveOption <MoveKnownFolderOptionType>] [-NewName <String>]\n [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>] [-RemoveSupportedPlatform <IResultObject[]>]\n [-ShowNotification <Boolean>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMOneDriveBusinessProfile [-AddSupportedPlatform <IResultObject[]>] [-ClearSupportedPlatform]\n [-Description <String>] -InputObject <IResultObject> [-KnownFolderMoveOption <MoveKnownFolderOptionType>]\n [-NewName <String>] [-O365TenantId <String>] [-PreventRedirectKnownFolders <Boolean>]\n [-RemoveSupportedPlatform <IResultObject[]>] [-ShowNotification <Boolean>] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Set-CMOneDriveBusinessProfile\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}