Get-CMUserDeviceAffinityRequest

SYNOPSIS

Gets a request for user device affinity in Configuration Manager.

SYNTAX

SearchByNameMandatory (Default)

Get-CMUserDeviceAffinityRequest -CollectionName <String> [-UserName <String>] [-UserId <String>]
 [-DeviceName <String>] [-DeviceId <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<CommonParameters>]

SearchByIdMandatory

Get-CMUserDeviceAffinityRequest -CollectionId <String> [-UserName <String>] [-UserId <String>]
 [-DeviceName <String>] [-DeviceId <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<CommonParameters>]

DESCRIPTION

The Get-CMUserDeviceAffinityRequest cmdlet gets a request for user device affinity.

In Microsoft System Center Configuration Manager, user device affinity defines a relationship between a user and a device. Instead of deploying an application to a group of devices, you deploy an application to a user and Configuration Manager installs the application on all devices associated with the user.

EXAMPLES

Example 1: Get a request for user device affinity

PS C:\> Get-CMUserDeviceAffinityRequest -CollectionName "All Systems"

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

PARAMETERS

-CollectionId

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

Type: String
Parameter Sets: SearchByIdMandatory
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CollectionName

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

Type: String
Parameter Sets: SearchByNameMandatory
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DeviceId

Specifies a device ID in Configuration Manager.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DeviceName

Specifies a device name in Configuration Manager.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserId

Specifies a Configuration Manager ID for a user resource.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserName

Specifies a user name for a resource in Configuration Manager.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Approve-CMUserDeviceAffinityRequest

Deny-CMUserDeviceAffinityRequest