{"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"},{"display_name":"gwblok","id":"26312309","name":"gwblok","profile_url":"https://github.com/gwblok"},{"display_name":"Dan Mabee","id":"40476441","name":"damabe","profile_url":"https://github.com/damabe"},{"display_name":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"2026/6/25","updated_at_date_time":"2026-06-25T23:46:48.9652693Z"},"_path":"module/configurationmanager/remove-cmobjectsecurityscope.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/remove-cmobjectsecurityscope?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Remove-CMObjectSecurityScope.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"87de5d3f-9c12-d350-864f-c176cffc232e","document_version_independent_id":"d22f8224-35d5-b84d-4648-2b7774b44fea","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":"0eebe140da8d33091d6703e03cf0d5da3ec90ad8","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/0eebe140da8d33091d6703e03cf0d5da3ec90ad8/sccm-ps/ConfigurationManager/Remove-CMObjectSecurityScope.md","github_contributors":["aczechowski","gwblok","damabe","sankethka"],"locale":"zh-tw","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/21/2021","ms.service":"configuration-manager","ms.subservice":"other","ms.topic":"reference","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/Remove-CMObjectSecurityScope.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Remove-CMObjectSecurityScope.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"Remove-CMObjectSecurityScope","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-06-25 11:46 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/remove-cmobjectsecurityscope","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Remove-CMObjectSecurityScope","schemaType":"PowershellCmdlet","summary":"<p>從 Configuration Manager 對象移除安全性範圍。</p>\n","uid":"ConfigurationManager.Remove-CMObjectSecurityScope"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Remove-CMObjectSecurityScope":{"href":"remove-cmobjectsecurityscope","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Remove-CMObjectSecurityScope","schemaType":"PowershellCmdlet","summary":"<p>從 Configuration Manager 對象移除安全性範圍。</p>\n","uid":"ConfigurationManager.Remove-CMObjectSecurityScope"}},"description":"<p>使用此 Cmdlet 可從 Configuration Manager 物件移除一或多個安全性範圍。</p>\n<p>如需安全性範圍的詳細資訊，請參閱 Configuration <a href=\"/mem/configmgr/core/understand/fundamentals-of-role-based-administration\">Manager 中以角色為基礎的系統管理基本概念</a>。</p>\n<div class=\"NOTE\">\n<p>注意事項</p>\n<p>從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet，例如 <code>PS XYZ:\\&gt;</code>。 如需詳細資訊，請 <a href=\"/powershell/sccm/overview\">參閱開始使用</a>。</p>\n</div>\n","examples":[{"code":"$Scope = Get-CMSecurityScope -Name \"Scope1\"\n$apps = Get-CMApplication -Name \"Central*\"\n$app | Remove-CMObjectSecurityScope -Scope $Scope -Force","description":"","summary":"<p>第一個命令會取得名為 <strong>Scope1</strong> 的安全性範圍，並將物件儲存在 <strong>$Scope</strong> 變數中。</p>\n<p>第二個命令會取得名稱開頭為 「Central」 的所有應用程式物件。 然後，它會使用管線運算符將對象傳遞至 <strong>Remove-CMObjectSecurityScope</strong>。</p>\n<p>最後一個命令會從每個應用程式物件移除安全性範圍。\n\n              <strong>Force</strong> 參數表示在 Cmdlet 執行之前不會提示您。</p>\n","title":"範例 1：從應用程式移除安全性範圍"},{"code":"$ScopeName = \"Team ABC\"\n$TeamABCScope = Get-CMSecurityScope | Where-Object {$_.CategoryName -eq $ScopeName}\n\n$app = Get-CMApplication -Name \"Edge Enterprise Stable\"\n\nAdd-CMObjectSecurityScope -InputObject $app -Scope $TeamABCScope\n\n$scopes = Get-CMObjectSecurityScope -InputObject $app | Where-Object {$_.CategoryName -ne $ScopeName}\nforeach ( $ExtraScope in $scopes )\n  {\n  Remove-CMObjectSecurityScope -InputObject $app -Scope $ExtraScope -Force\n  }","description":"","summary":"<p>第一個命令會取得 <strong>TeamABCScope</strong>變數中的安全性範圍。\n第二個命令會取得 <strong>Edge Enterprise Stable</strong> 的應用程式物件。\n第三個命令會將新的 <strong>TeamABCScope</strong> 新增至應用程式。\n最後一個命令會從不是 <strong>TeamABCScope</strong> 的應用程式取得範圍，然後將其全部移除。</p>\n","title":"範例 3：新增安全性範圍，然後從應用程式物件中移除所有其他安全性範圍"}],"inputs":[{"description":"","name":"<p><span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span><span>[</span><span>]</span></p>\n"}],"links":[{"href":"add-cmobjectsecurityscope","text":"Add-CMObjectSecurityScope"},{"href":"get-cmobjectsecurityscope","text":"Get-CMObjectSecurityScope"},{"href":"get-cmsecurityscope","text":"Get-CMSecurityScope"},{"href":"remove-cmsecurityscope","text":"Remove-CMSecurityScope"},{"href":"remove-cmsecurityscopefromadministrativeuser","text":"Remove-CMSecurityScopeFromAdministrativeUser"},{"href":"/mem/configmgr/core/servers/deploy/configure/configure-role-based-administration#automate-with-windows-power-shell","text":"使用 Windows PowerShell 自動化角色型管理"}],"module":"ConfigurationManager","name":"Remove-CMObjectSecurityScope","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"cf","defaultValue":"False","description":"<p>執行 Cmdlet 之前提示您確認。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</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>強制命令在不要求使用者確認的情況下執行。</p>\n","name":"Force","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":"SecurityScopeId","defaultValue":"None","description":"<p>指定與 Configuration Manager 對象相關聯之安全性範圍的標識碼。 這個值是 <code>CategoryID</code> 屬性，例如<code>SMS00UNA</code><strong>預設</strong>範圍。</p>\n","isRequired":true,"name":"Id","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定與安全性範圍相關聯之 Configuration Manager 物件的陣列。 若要取得這個物件，請使用 <strong>物件類型的 Get</strong> Cmdlet。 例如， <strong>應用程式物件的 Get-CMApplication</strong> 。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"SecurityScopeName","defaultValue":"None","description":"<p>指定與 Configuration Manager 對象相關聯的安全性範圍名稱。</p>\n","isRequired":true,"name":"Name","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"SecurityScope, SecuredCategory, Scopes, SecurityScopes, SecuredCategories","defaultValue":"None","description":"<p>指定要移除的安全性範圍物件陣列。 若要取得此物件，請使用 <a href=\"get-cmsecurityscope\">Get-CMSecurityScope</a> Cmdlet。</p>\n","isRequired":true,"name":"Scope","parameterValueGroup":"","position":"0","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"wi","defaultValue":"False","description":"<p>顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>從 Configuration Manager 對象移除安全性範圍。</p>\n","syntaxes":["Remove-CMObjectSecurityScope [-Force] -InputObject <IResultObject[]> [-Scope] <IResultObject[]>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Remove-CMObjectSecurityScope [-Force] -Id <String> -InputObject <IResultObject[]> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Remove-CMObjectSecurityScope [-Force] -InputObject <IResultObject[]> [-Name] <String>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Remove-CMObjectSecurityScope","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/Remove-CMObjectSecurityScope.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/remove-cmobjectsecurityscope","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Remove-CMObjectSecurityScope","schemaType":"PowershellCmdlet","summary":"<p>從 Configuration Manager 對象移除安全性範圍。</p>\n","uid":"ConfigurationManager.Remove-CMObjectSecurityScope"}],"canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/remove-cmobjectsecurityscope?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/remove-cmobjectsecurityscope?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>使用此 Cmdlet 可從 Configuration Manager 物件移除一或多個安全性範圍。</p>\n<p>如需安全性範圍的詳細資訊，請參閱 Configuration <a href=&quot;/mem/configmgr/core/understand/fundamentals-of-role-based-administration&quot;>Manager 中以角色為基礎的系統管理基本概念</a>。</p>\n<div class=&quot;NOTE&quot;>\n<p>注意事項</p>\n<p>從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet，例如 <code>PS XYZ:\\&amp;gt;</code>。 如需詳細資訊，請 <a href=&quot;/powershell/sccm/overview&quot;>參閱開始使用</a>。</p>\n</div>\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/Remove-CMObjectSecurityScope.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=\"Remove-CMObjectSecurityScope\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>從 Configuration Manager 對象移除安全性範圍。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Remove-CMObjectSecurityScope [-Force] -InputObject <IResultObject[]> [-Scope] <IResultObject[]>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Remove-CMObjectSecurityScope [-Force] -Id <String> -InputObject <IResultObject[]> [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Remove-CMObjectSecurityScope [-Force] -InputObject <IResultObject[]> [-Name] <String>\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Remove-CMObjectSecurityScope\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}