This object
uses the following syntax:
dsquery user [{StartNode | forestroot | domainroot}]
[-o {dn | rdn | upn | samid}] [-scope {subtree | onelevel | base}]
[-name Name] [-desc Description] [-upn UPN] [-samid SAMName]
[-inactive NumberOfWeeks] [-stalepwd NumberOfDays] [-disabled]
[{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q]
[-r] [-gc] [-limit NumberOfObjects] [{-uc | -uco | -uci}]
The following list describes each of the command line arguments.
-upn UPN Searches for users with the specified UPN.
-samid SAMName Searches for users that have the specified SAM account name.
MANAGING ACTIVE DIRECTORY WITH THE DSQUERY UTILITY 483
-inactive NumberOfWeeks Searches for users that have been inactive for the specified number
of weeks. In this case, the system measures activity by logons to the domain. Consequently,
even if someone uses a computer daily, the system considers the user inactive until they log into
the domain.
-stalepwd NumberOfDays Searches for users that have not changed their password for the
specified number of days.
-disabled Searches for users that have disabled accounts. The reason the system disabled the
account isn??™t important.
Pages:
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142