Curious why this PowerShell command affected a (seemingly) unrelated attribute
Apologies if this isn't in the correct space; I'm not seeing Active Directory as a tag I can select.
I was playing around with some automation scripts and had attempted to use the attribute "l" (for Location) to set the city value for a batch of users that was being created.
Get-ADUser -Filter "streetaddress -eq '123 Company Way'" | Set-ADUser -l "Topeka"
This didn't populate the value, but didn't give me any error either. I found this weird, but did not pursue it further. Ultimately I used -City instead of -l and that worked fine.
However I found that the users could not log into the computer, getting the message, "Your account is configured to prevent you from using this PC. Please try another PC."
I went to the user properties -> Account -> Log On To and sure enough it said they could only log into the computer Topeka.
Everything is fine now, but I'm curious why the above command set the userWorkstations attribute to Topeka? Any ideas?