dsquery * ou=sbsusers,ou=users,ou=mybusiness,dc=company,DC=local -limit 0 -uco -attr sAMAccountName distinguishedname > filename.txt eller dsquery user OU=organization,DC=company,DC=local -limit 0 | dsget user -display -upn -uco