23 June,2025 by Tom Collins
Question: How can I check the user attributes in Active Directory for a user ? I need to identify the user attributes indicating the AD user can log onto a Linux server , also refered to as Unix-enabled.
I want to gather this information using Powershell.
Answer: This Powershell cmdlet and recovering these columns are a good starting point to give you information for a specific user , and attributes associated with logging into Linux
Get-ADUser MyUser1 -Properties * -server myserver.net | select SamAccountName,msSFU30NisDomain,unixHomeDirectory,loginShell,uidNumber,gidnumber
Related links for Active Directory , Unix Enabled and Powershell
How to check an AD group is Unix-Enabled with Powershell
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |