Hello
Thank you for your question and reaching out.
Please try below three different powershell commands to get list of User's workstations.
- Get-Aduser -filter {LogonWorkstations -like "*"} -Properties LogonWorkstations
- Get-Aduser -filter * -Properties LogonWorkstations
Import-Module ActiveDirectory
$complist = Import-Csv -Path "c:\temp\myworkstationList.csv" | ForEach-Object {$_.NetBIOSName}
foreach($comp in $complist){
$comparray += $comp
}
Set-ADUser -Identity username -LogonWorkstations $comparray
Reference:
--If the reply is helpful, please Upvote and Accept as answer--