Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Deny-CMUserDeviceAffinityRequest

Deny-CMUserDeviceAffinityRequest

Denies a request for user device affinity in Configuration Manager.

Syntax

Parameter Set: SearchByNameMandatory
Deny-CMUserDeviceAffinityRequest -CollectionName <String> [-DeviceId <String> ] [-DeviceName <String> ] [-UserDeviceAffinityRequest <IResultObject> ] [-UserDeviceAffinityRequestId <String> ] [-UserId <String> ] [-UserName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Deny-CMUserDeviceAffinityRequest -CollectionId <String> [-DeviceId <String> ] [-DeviceName <String> ] [-UserDeviceAffinityRequest <IResultObject> ] [-UserDeviceAffinityRequestId <String> ] [-UserId <String> ] [-UserName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Deny-CMUserDeviceAffinityRequest cmdlet denies a request for user device affinity.

In Microsoft System Center 2012 Configuration Manager, user device affinity defines a relationship between a user and a device.

Parameters

-CollectionId<String>

Specifies a collection ID that represents the user device affinity in Configuration Manager.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionName<String>

Specifies a name of a collection that represents the user device affinity in Configuration Manager.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceId<String>

Specifies a device ID in Configuration Manager.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceName<String>

Specifies a device name in Configuration Manager.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UserDeviceAffinityRequest<IResultObject>

Specifies a CMUserDeviceAffinityRequest object. To obtain a CMUserDeviceAffinityRequest object, use the Get-CMUserDeviceAffinityRequest cmdlet.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UserDeviceAffinityRequestId<String>

Specifies a unique ID for a request for user device affinity.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UserId<String>

Specifies a Configuration Manager ID for a user resource.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-UserName<String>

Specifies a user name for a resource in Configuration Manager.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Deny a request for user device affinity

This command denies a request for user device affinity for the collection named All Systems.


PS C:\> Deny-CMUserDeviceAffinityRequest -CollectionName "All Systems" -UserName "Western\Alameda$"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft