You’ll often need a quick way to get the names of users in a particular Active Directory group into a text or Excel file for reporting or other reasons. You can use dsquery to achieve this easily: dsquery group -name “group name” | dsget group -members -expand | dsget user -fn -ln Of course you [...]