
Get-CMUserDeviceAffinity (ConfigurationManager)
It uses the Get-CMUserDeviceAffinity cmdlet to get the primary users for that device. If there are more than one primary users of the device, then it writes the computer name and each user on …
powershell - How do I retrieve a list of primary users of …
Dec 16, 2016 · You can try to use below PowerShell script: $Computers = Import-Csv C:\computerlist.CSV ForEach ($Computer in $Computers) { $Name = (Get …
sccm-docs-powershell-ref/sccm-ps/ConfigurationManager/Get ...
The Get-CMUserDeviceAffinity cmdlet gets one or more user device affinities in Configuration Manager. User device affinities are the relationships between a device and its primary users. …
Query Primary device from User query collection in SCCM? : r/SCCM - Reddit
Dec 9, 2022 · Get their primary devices: Get-CMUserDeviceAffinity. Add those devices to another collection if desired Add-CMDeviceCollectionDirectMembershipRule. I believe you can pipe …
PowerShell – Programmatically Determine the Primary User of a …
Aug 14, 2023 · Configuration Manager includes the device property and concept of UserDeviceAffinity, with which the Primary User of a device can easily be determined and …
SCCM Collection affinity script - PowerShell Help - PowerShell …
Apr 27, 2016 · The script checks to see if its a user or device collection and switch runs against the right commands. It works, but for improvement purposes co… I’ve written the below …
Get-CMUserDeviceAffinityRequest (ConfigurationManager)
The Get-CMUserDeviceAffinityRequest cmdlet gets a request for user device affinity. In Configuration Manager, user device affinity defines a relationship between a user and a device.
ConfigMgr User Device Affinity (UDA) Collection Query
May 22, 2017 · select distinct SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier, …
PowerShell – Get Affiliated Devices by User – Payton Flint's Tech …
The Configuration Manager PowerShell module contains the Get-CMUserDeviceAffinity cmdlet to allow one to use an AD user object to search for devices that the user is the Primary User for.
How can i get a list of devices that are used by a specific group of users
Mar 24, 2023 · Because if you want to find the primary devices of users in a specific AD group, then you would have to make query the 'SecurityGroupName' or the 'UserGroupName' …