{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/zh-cn/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":"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-25T22:44:53.7305732Z"},"_path":"module/configurationmanager/deny-cmuserdeviceaffinityrequest.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-cn/powershell/module/configurationmanager/deny-cmuserdeviceaffinityrequest?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Deny-CMUserDeviceAffinityRequest.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","description":"拒绝 Configuration Manager 中用户设备相关性的请求。","document_id":"3057d2df-b894-ea16-4ae4-e75bb47d799b","document_version_independent_id":"5bba445d-b8d9-0921-1e10-fc9e86e8c223","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/Deny-CMUserDeviceAffinityRequest.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"zh-cn","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"04/29/2019","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/Deny-CMUserDeviceAffinityRequest.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Deny-CMUserDeviceAffinityRequest.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"Deny-CMUserDeviceAffinityRequest","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-06-25 10:44 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/deny-cmuserdeviceaffinityrequest","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Deny-CMUserDeviceAffinityRequest","schemaType":"PowershellCmdlet","summary":"<p>拒绝 Configuration Manager 中用户设备相关性的请求。</p>\n","uid":"ConfigurationManager.Deny-CMUserDeviceAffinityRequest"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Deny-CMUserDeviceAffinityRequest":{"href":"deny-cmuserdeviceaffinityrequest","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Deny-CMUserDeviceAffinityRequest","schemaType":"PowershellCmdlet","summary":"<p>拒绝 Configuration Manager 中用户设备相关性的请求。</p>\n","uid":"ConfigurationManager.Deny-CMUserDeviceAffinityRequest"}},"description":"<p>\n              <strong>Deny-CMUserDeviceAffinityRequest</strong> cmdlet 拒绝用户设备相关性请求。</p>\n<p>在 Configuration Manager 中，用户设备相关性定义用户和设备之间的关系。</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":"PS XYZ:\\>Deny-CMUserDeviceAffinityRequest -CollectionName \"All Systems\" -UserName \"Western\\EvanNarvaez$\"","description":"<p>此命令拒绝对名为 All Systems 的集合的用户设备相关性的请求。</p>\n","summary":"","title":"示例 1：拒绝用户设备相关性请求"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"approve-cmuserdeviceaffinityrequest","text":"Approve-CMUserDeviceAffinityRequest"},{"href":"get-cmuserdeviceaffinityrequest","text":"Get-CMUserDeviceAffinityRequest"}],"module":"ConfigurationManager","name":"Deny-CMUserDeviceAffinityRequest","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"","defaultValue":"None","description":"<p>指定表示 Configuration Manager 中用户设备相关性的集合 ID。</p>\n","isRequired":true,"name":"CollectionId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定表示 Configuration Manager 中用户设备相关性的集合的名称。</p>\n","isRequired":true,"name":"CollectionName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"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>在 Configuration Manager 中指定设备 ID。</p>\n","name":"DeviceId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>在 Configuration Manager 中指定设备名称。</p>\n","name":"DeviceName","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":"","defaultValue":"None","description":"<p>指定 <strong>CMUserDeviceAffinityRequest</strong> 对象。\n若要获取 <strong>CMUserDeviceAffinityRequest</strong> 对象，请使用 <a href=\"get-cmuserdeviceaffinityrequest\">Get-CMUserDeviceAffinityRequest</a> cmdlet。</p>\n","name":"UserDeviceAffinityRequest","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>为用户设备相关性请求指定唯一 ID。</p>\n","name":"UserDeviceAffinityRequestId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定用户资源的 Configuration Manager ID。</p>\n","name":"UserId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>在 Configuration Manager 中指定资源的用户名。</p>\n","name":"UserName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\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":["Deny-CMUserDeviceAffinityRequest -CollectionName <String> [-DeviceId <String>] [-DeviceName <String>]\n [-UserDeviceAffinityRequest <IResultObject>] [-UserDeviceAffinityRequestId <String>] [-UserId <String>]\n [-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]","Deny-CMUserDeviceAffinityRequest -CollectionId <String> [-DeviceId <String>] [-DeviceName <String>]\n [-UserDeviceAffinityRequest <IResultObject>] [-UserDeviceAffinityRequestId <String>] [-UserId <String>]\n [-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]"],"uid":"ConfigurationManager.Deny-CMUserDeviceAffinityRequest","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"zh-cn","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/Deny-CMUserDeviceAffinityRequest.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/deny-cmuserdeviceaffinityrequest","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Deny-CMUserDeviceAffinityRequest","schemaType":"PowershellCmdlet","summary":"<p>拒绝 Configuration Manager 中用户设备相关性的请求。</p>\n","uid":"ConfigurationManager.Deny-CMUserDeviceAffinityRequest"}],"canonical_url":"https://learn.microsoft.com/zh-cn/powershell/module/configurationmanager/deny-cmuserdeviceaffinityrequest?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/zh-cn/powershell/module/configurationmanager/deny-cmuserdeviceaffinityrequest?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>\n              <strong>Deny-CMUserDeviceAffinityRequest</strong> cmdlet 拒绝用户设备相关性请求。</p>\n<p>在 Configuration Manager 中，用户设备相关性定义用户和设备之间的关系。</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/Deny-CMUserDeviceAffinityRequest.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-cn\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Deny-CMUserDeviceAffinityRequest\" />\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=\"Deny-CMUserDeviceAffinityRequest -CollectionName <String> [-DeviceId <String>] [-DeviceName <String>]\n [-UserDeviceAffinityRequest <IResultObject>] [-UserDeviceAffinityRequestId <String>] [-UserId <String>]\n [-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Deny-CMUserDeviceAffinityRequest -CollectionId <String> [-DeviceId <String>] [-DeviceName <String>]\n [-UserDeviceAffinityRequest <IResultObject>] [-UserDeviceAffinityRequestId <String>] [-UserId <String>]\n [-UserName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Deny-CMUserDeviceAffinityRequest\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}