Interview Questions

IT Interview Questions: How would you find all users that have not logged on since last month? What are the DS* commands?

Information Technology (IT) Interview Questions and Answers


(Continued from previous question...)

IT Interview Questions: How would you find all users that have not logged on since last month? What are the DS* commands?

The DS (Directory Service) group of commands are split into two families. In one branch are DSadd, DSmod, DSrm and DSMove and in the other branch are DSQuery and DSGet.

DS Syntax
These DS tools have their own command structure which you can split into five parts: 1 2 3 4 5

Tool object "DN" (as in LDAP distinguished name) -switch value For example: DSadd user "cn=billy, ou=managers, dc=cp, dc=com" -pwd cX49pQba This will add a user called Billy to the Managers OU and set the password to cx49Qba Here are some of the common DS switches which work with DSadd and DSmod -pwd (password) -upn (userPrincipalName) -fn (FirstName) -samid (Sam account name).

(Continued on next question...)

Other Interview Questions