Follow sqlserver-dba.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

SQLServer-DBA.com Links

Dba_db2_button

dba-ninja.com

SQL Server DBA Jobs

How to check Unix User Attributes for a user using Powershell

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


Author: Tom Collins (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

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.

Working...

Post a comment on How to check Unix User Attributes for a user using Powershell


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer