匯出AD 帳號,只匯出使用者
匯出AD 帳號,只匯出使用者 dsquery * domainroot -filter "(&(objectClass=person)(objectClass=user)(!objectClass=computer)(cn=*)(!userAccountControl:1.2.840.113556.1.4.803:=2))" -attr cn sAMAccountName mail department title description -uco -limit 0 > C:\domain_user2.txt 說明 (!objectClass=computer) 略過電腦 (!userAccountControl:1.2.840.113556.1.4.803:=2) 略過停用帳號 cn sAMAccountName mail department title description 顯示格式