Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:microsoft:ad:csvde [2018/05/17 19:56] – ↷ Page moved from code:java:vendors:microsoft:ad:csvde to vendors:microsoft:ad:csvde gerardorourke | vendors:microsoft:ad:csvde [2024/08/23 12:07] (current) – gerardorourke | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Retrieving Base DN / LDAP Syntax for a domain account using Domain Name==== | ==== Retrieving Base DN / LDAP Syntax for a domain account using Domain Name==== | ||
| - | Example Return all users who have a name Gerry | + | Example Return all users who have a name starts with "Gerry" |
| < | < | ||
| dsquery user -name Gerry* | dsquery user -name Gerry* | ||
| </ | </ | ||
| - | Example Return | + | Example Return |
| + | < | ||
| + | dsquery computer -name MYCOMPUTERNAME | ||
| + | </ | ||
| + | |||
| + | Example Return the users who have a login name is cuicldap | ||
| < | < | ||
| dsquery user -samid cuicldap | dsquery user -samid cuicldap | ||
| + | </ | ||
| + | |||
| + | Example dsquery command to return all attributes for a specific user | ||
| + | < | ||
| + | dsquery * " | ||
| + | </ | ||
| + | |||
| + | Return specific attributes for a LDAP search | ||
| + | < | ||
| + | C: | ||
| + | mail | ||
| + | [email protected] | ||
| + | </ | ||
| + | |||
| + | Example Response: | ||
| + | < | ||
| + | objectClass: | ||
| + | objectClass: | ||
| + | objectClass: | ||
| + | objectClass: | ||
| + | cn: admin | ||
| + | distinguishedName: | ||
| + | instanceType: | ||
| + | whenCreated: | ||
| + | whenChanged: | ||
| + | uSNCreated: 8198 | ||
| + | memberOf: CN=Cisco_ICM_Setup, | ||
| + | memberOf: CN=Cisco_ICM_Config, | ||
| + | memberOf: CN=Domain Admins, | ||
| + | memberOf: CN=Users, | ||
| + | memberOf: CN=Administrators, | ||
| + | uSNChanged: 1151098 | ||
| + | name: admin | ||
| + | objectGUID: {B18C5DA4-ABF2-492B-9A22-CC8985A91A33} | ||
| + | userAccountControl: | ||
| + | badPwdCount: | ||
| + | codePage: 1252 | ||
| + | countryCode: | ||
| + | badPasswordTime: | ||
| + | lastLogoff: 0 | ||
| + | lastLogon: 132228924307313910 | ||
| + | logonHours: 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff | ||
| + | pwdLastSet: 131416540663230034 | ||
| + | primaryGroupID: | ||
| + | objectSid: S-1-5-21-3443183386-3702885658-3434720438-1001 | ||
| + | adminCount: 1 | ||
| + | accountExpires: | ||
| + | logonCount: 65535 | ||
| + | sAMAccountName: | ||
| + | sAMAccountType: | ||
| + | userPrincipalName: | ||
| + | lockoutTime: | ||
| + | objectCategory: | ||
| + | dSCorePropagationData: | ||
| + | dSCorePropagationData: | ||
| + | dSCorePropagationData: | ||
| + | dSCorePropagationData: | ||
| + | lastLogonTimestamp: | ||
| + | msDS-SupportedEncryptionTypes: | ||
| + | ADsPath: LDAP:// | ||
| </ | </ | ||
| ==== CSVDE & LDIFDE ==== | ==== CSVDE & LDIFDE ==== | ||