Active Directory

dsconfigad — retrieves/changes configuration for Active Directory

dsconfigad -show
dsconfigad -a compname -u domainadmin -domain contoso.lan
dsconfigad -localhome enable -useuncpath enable -groups "Domain Admins,Enterprise Admins" -alldomains enable
dsconfigad -f -r -u

dsmemberutil — various operations for the membership APIs, including state dump, check memberships, UUIDs, etc.

dsmemberutil getsid -U leo

get windows ACLs

-e Print the Access Control List (ACL) associated with the file, if present, in long (-l) output.

ls -lae /Volumes/stornextvolume/myfile