Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1972 lines
86 KiB

  1. ;//+-------------------------------------------------------------------------
  2. ;//
  3. ;// Microsoft Windows
  4. ;//
  5. ;// Copyright (C) Microsoft Corporation, 2000 - 2002
  6. ;//
  7. ;// File: usage.mc
  8. ;// Author: wguidry
  9. ;//--------------------------------------------------------------------------
  10. MessageId=1
  11. SymbolicName=USAGE_DSQUERY_DESCRIPTION
  12. Language=English
  13. Description: This tool's commands suite allow you to query the directory
  14. according to specified criteria. Each of the following dsquery commands finds
  15. objects of a specific object type, with the exception of dsquery *, which can
  16. query for any type of object:
  17. dsquery computer - finds computers in the directory.
  18. dsquery contact - finds contacts in the directory.
  19. dsquery subnet - finds subnets in the directory.
  20. dsquery group - finds groups in the directory.
  21. dsquery ou - finds organizational units in the directory.
  22. dsquery site - finds sites in the directory.
  23. dsquery server - finds domain controllers in the directory.
  24. dsquery user - finds users in the directory.
  25. dsquery quota - finds quota specifications in the directory.
  26. dsquery partition - finds partitions in the directory.
  27. dsquery * - finds any object in the directory by using a generic LDAP query.
  28. For help on a specific command, type "dsquery <ObjectType> /?" where
  29. <ObjectType> is one of the supported object types shown above.
  30. For example, dsquery ou /?.
  31. .
  32. MessageId=2
  33. SymbolicName=USAGE_DSQUERY_REMARKS
  34. Language=English
  35. Remarks:
  36. The dsquery commands help you find objects in the directory that match
  37. a specified search criterion: the input to dsquery is a search criterion
  38. and the output is a list of objects matching the search. To get the
  39. properties of a specific object, use the dsget commands (dsget /?).
  40. The results from a dsquery command can be piped as input to one of the other
  41. directory service command-line tools, such as dsmod, dsget, dsrm or dsmove.
  42. Commas that are not used as separators in distinguished names must be
  43. escaped with the backslash ("\") character
  44. (for example, "CN=Company\, Inc.,CN=Users,DC=microsoft,DC=com"). Backslashes
  45. used in distinguished names must be escaped with a backslash (for example,
  46. "CN=Sales\\ Latin America,OU=Distribution Lists,DC=microsoft,DC=com").
  47. .
  48. MessageId=3
  49. SymbolicName=USAGE_DSQUERY_EXAMPLES
  50. Language=English
  51. Examples:
  52. To find all computers that have been inactive for the last four weeks and
  53. remove them from the directory:
  54. dsquery computer -inactive 4 | dsrm
  55. To find all users in the organizational unit
  56. "ou=Marketing,dc=microsoft,dc=com" and add them to the Marketing Staff group:
  57. dsquery user ou=Marketing,dc=microsoft,dc=com | dsmod group
  58. "cn=Marketing Staff,ou=Marketing,dc=microsoft,dc=com" -addmbr
  59. To find all users with names starting with "John" and display his office
  60. number:
  61. dsquery user -name John* | dsget user -office
  62. To display an arbitrary set of attributes of any given object in the
  63. directory use the dsquery * command. For example, to display the
  64. sAMAccountName, userPrincipalName and department attributes of the object
  65. whose DN is ou=Test,dc=microsoft,dc=com:
  66. dsquery * ou=Test,dc=microsoft,dc=com -scope base
  67. -attr sAMAccountName userPrincipalName department
  68. To read all attributes of the object whose DN is ou=Test,dc=microsoft,dc=com:
  69. dsquery * ou=Test,dc=microsoft,dc=com -scope base -attr *
  70. Directory Service command-line tools help:
  71. dsadd /? - help for adding objects.
  72. dsget /? - help for displaying objects.
  73. dsmod /? - help for modifying objects.
  74. dsmove /? - help for moving objects.
  75. dsquery /? - help for finding objects matching search criteria.
  76. dsrm /? - help for deleting objects.
  77. .
  78. MessageId=4
  79. SymbolicName=USAGE_DSQUERY_STAR_DESCRIPTION
  80. Language=English
  81. Description: Finds any objects in the directory according to criteria.
  82. .
  83. MessageId=5
  84. SymbolicName=USAGE_DSQUERY_STAR_SYNTAX
  85. Language=English
  86. Syntax: dsquery * [{<StartNode> | forestroot | domainroot}]
  87. [-scope {subtree | onelevel | base}] [-filter <LDAPFilter>]
  88. [-attr {<AttrList> | *}] [-attrsonly] [-l]
  89. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  90. [-p {<Password> | *}] [-q] [-r] [-gc]
  91. [{-uc | -uco | -uci}]
  92. .
  93. MessageId=6
  94. SymbolicName=USAGE_DSQUERY_STAR_PARAMETERS
  95. Language=English
  96. Parameters:
  97. Value Description
  98. {<StartNode> | forestroot | domainroot}
  99. The node where the search will start:
  100. forest root, domain root, or a node
  101. whose DN is <StartNode>.
  102. Can be "forestroot", "domainroot" or an object
  103. DN.
  104. If "forestroot" is specified, the search is done
  105. via the global catalog. Default: domainroot.
  106. -scope {subtree | onelevel | base}
  107. Specifies the scope of the search:
  108. subtree rooted at start node (subtree);
  109. immediate children of start node only (onelevel);
  110. the base object represented by start node (base).
  111. Note that subtree and domain scope
  112. are essentially the same for any start node
  113. unless the start node represents a domain root.
  114. If forestroot is specified as <StartNode>,
  115. subtree is the only valid scope.
  116. Default: subtree.
  117. -filter <LDAPFilter> Specifies that the search use the explicit
  118. LDAP search filter <LDAPFilter> specified in the
  119. LDAP search filter format for searching.
  120. Default:(objectCategory=*).The search filter
  121. string must be enclosed in double quotes.
  122. -attr {<AttrList> | *} If <AttrList>, specifies a space-separated list
  123. of LDAP display names to be returned for
  124. each entry in the result set.
  125. If *, specifies all attributes present on
  126. the objects in the result set.
  127. Default: distinguishedName.
  128. -attrsonly Shows only the attribute types present on
  129. the entries in the result set but not
  130. their values.
  131. Default: shows both attribute type and value.
  132. -l Shows the entries in the search result set
  133. in a list format. Default: table format.
  134. {-s <Server> | -d <Domain>}
  135. -s <Server> connects to the domain controller
  136. (DC) with name <Server>.
  137. -d <Domain> connects to a DC in domain <Domain>.
  138. Default: a DC in the logon domain.
  139. -u <UserName> Connect as <UserName>. Default: the logged in
  140. user. User name can be: user name,
  141. domain\user name, or user principal name (UPN).
  142. -p <Password> Password for the user <UserName>. If * then you
  143. are prompted for a password.
  144. -q Quiet mode: suppress all output to standard
  145. output.
  146. -r Recurse or follow referrals during search.
  147. Default: do not chase referrals during search.
  148. -gc Search in the Active Directory global catalog.
  149. -limit <NumObjects> Specifies the number of objects matching the
  150. given criteria to be returned, where <NumObjects>
  151. is the number of objects to be returned.
  152. If the value of <NumObjects> is 0, all matching
  153. objects are returned. If this parameter is not
  154. specified, by default the first 100 results are
  155. displayed.
  156. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe
  157. is formatted in Unicode.
  158. -uco Specifies that output to pipe or file is
  159. formatted in Unicode.
  160. -uci Specifies that input from pipe or file is
  161. formatted in Unicode.
  162. .
  163. MessageId=7
  164. SymbolicName=USAGE_DSQUERY_STAR_REMARKS
  165. Language=English
  166. Remarks:
  167. The dsquery commands help you find objects in the directory that match
  168. a specified search criterion: the input to dsquery is a search criteria
  169. and the output is a list of objects matching the search. To get the
  170. properties of a specific object, use the dsget commands (dsget /?).
  171. A user-entered value containing spaces or semicolons must be enclosed in
  172. quotes (""). Multiple user-entered values must be separated using commas
  173. (for example, a list of attribute types).
  174. .
  175. MessageId=8
  176. SymbolicName=USAGE_DSQUERY_STAR_EXAMPLES
  177. Language=English
  178. Examples:
  179. To find all users in the current domain only whose SAM account name begins
  180. with the string "jon" and display their SAM account name,
  181. User Principal Name (UPN) and department in table format:
  182. dsquery * domainroot
  183. -filter "(&(objectCategory=Person)(objectClass=User)(sAMAccountName=jon*))"
  184. -attr sAMAccountName userPrincipalName department
  185. To read the sAMAccountName, userPrincipalName and department attributes of
  186. the object whose DN is ou=Test,dc=microsoft,dc=com:
  187. Dsquery * ou=Test,dc=microsoft,dc=com -scope base
  188. -attr sAMAccountName userPrincipalName department
  189. To read all attributes of the object whose DN is ou=Test,dc=microsoft,dc=com:
  190. Dsquery * ou=Test,dc=microsoft,dc=com -scope base -attr *
  191. .
  192. MessageId=9
  193. SymbolicName=USAGE_DSQUERY_STAR_SEE_ALSO
  194. Language=English
  195. See also:
  196. dsquery computer /? - help for finding computers in the directory.
  197. dsquery contact /? - help for finding contacts in the directory.
  198. dsquery subnet /? - help for finding subnets in the directory.
  199. dsquery group /? - help for finding groups in the directory.
  200. dsquery ou /? - help for finding organizational units in the directory.
  201. dsquery site /? - help for finding sites in the directory.
  202. dsquery server /? - help for finding servers in the directory.
  203. dsquery user /? - help for finding users in the directory.
  204. dsquery quota /? - help for finding quotas in the directory.
  205. dsquery partition /? - help for finding partitions in the directory.
  206. dsquery * /? - help for finding any object in the directory by using
  207. a generic LDAP query.
  208. Directory Service command-line tools help:
  209. dsadd /? - help for adding objects.
  210. dsget /? - help for displaying objects.
  211. dsmod /? - help for modifying objects.
  212. dsmove /? - help for moving objects.
  213. dsquery /? - help for finding objects matching search criteria.
  214. dsrm /? - help for deleting objects.
  215. .
  216. MessageId=10
  217. SymbolicName=USAGE_DSQUERY_USER_DESCRIPTION
  218. Language=English
  219. Description: Finds users in the directory per given criteria.
  220. .
  221. MessageId=11
  222. SymbolicName=USAGE_DSQUERY_USER_SYNTAX
  223. Language=English
  224. Syntax: dsquery user [{<StartNode> | forestroot | domainroot}]
  225. [-o {dn | rdn | upn | samid}]
  226. [-scope {subtree | onelevel | base}]
  227. [-name <Name>] [-desc <Description>] [-upn <UPN>]
  228. [-samid <SAMName>] [-inactive <NumWeeks>] [-stalepwd <NumDays>]
  229. [-disabled] [{-s <Server> | -d <Domain>}] [-u <UserName>]
  230. [-p {<Password> | *}] [-q] [-r] [-gc] [-limit <NumObjects>]
  231. [{-uc | -uco | -uci}]
  232. .
  233. MessageId=12
  234. SymbolicName=USAGE_DSQUERY_USER_PARAMETERS
  235. Language=English
  236. Parameters:
  237. Value Description
  238. {<StartNode> | forestroot | domainroot}
  239. The node where the search will start:
  240. forest root, domain root, or a node
  241. whose DN is <StartNode>.
  242. Can be "forestroot", "domainroot" or an
  243. object DN. If "forestroot" is specified,
  244. the search is done via the global catalog.
  245. Default: domainroot.
  246. -o {dn | rdn | upn | samid}
  247. Specifies the output format.
  248. Default: distinguished name (DN).
  249. -scope {subtree | onelevel | base}
  250. Specifies the scope of the search:
  251. subtree rooted at start node (subtree);
  252. immediate children of start node only (onelevel);
  253. the base object represented by start node (base).
  254. Note that subtree and domain scope
  255. are essentially the same for any start node
  256. unless the start node represents a domain root.
  257. If forestroot is specified as <StartNode>,
  258. subtree is the only valid scope.
  259. Default: subtree.
  260. -name <Name> Finds users whose name matches the filter
  261. given by <Name>, e.g., "jon*" or "*ith"
  262. or "j*th".
  263. -desc <Description> Finds users whose description matches the
  264. filter given by <Description>, e.g., "jon*" or
  265. "*ith" or "j*th".
  266. -upn <UPN> Finds users whose UPN matches the filter given
  267. by <UPN>.
  268. -samid <SAMName> Finds users whose SAM account name matches the
  269. filter given by <SAMName>.
  270. -inactive <NumWeeks> Finds users that have been inactive
  271. (not logged on) for at least <NumWeeks>
  272. number of weeks.
  273. -stalepwd <NumDays> Finds users that have not changed their password
  274. for at least <NumDays> number of days.
  275. -disabled Finds users whose account is disabled.
  276. {-s <Server> | -d <Domain>}
  277. -s <Server> connects to the domain controller
  278. (DC) with name <Server>.
  279. -d <Domain> connects to a DC in domain <Domain>.
  280. Default: a DC in the logon domain.
  281. -u <UserName> Connect as <UserName>. Default: the logged in
  282. user. User name can be: user name,
  283. domain\user name, or user principal name (UPN).
  284. -p <Password> Password for the user <UserName>.
  285. If * is specified, then you are prompted
  286. for a password.
  287. -q Quiet mode: suppress all output to
  288. standard output.
  289. -r Recurse or follow referrals during search.
  290. Default: do not chase referrals during search.
  291. -gc Search in the Active Directory global catalog.
  292. -limit <NumObjects> Specifies the number of objects matching the
  293. given criteria to be returned, where <NumObjects>
  294. is the number of objects to be returned.
  295. If the value of <NumObjects> is 0, all
  296. matching objects are returned. If this parameter
  297. is not specified, by default the first
  298. 100 results are displayed.
  299. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe
  300. is formatted in Unicode.
  301. -uco Specifies that output to pipe or file is
  302. formatted in Unicode.
  303. -uci Specifies that input from pipe or file is
  304. formatted in Unicode.
  305. .
  306. MessageId=13
  307. SymbolicName=USAGE_DSQUERY_USER_REMARKS
  308. Language=English
  309. Remarks:
  310. The dsquery commands help you find objects in the directory that match
  311. a specified search criterion: the input to dsquery is a search criteria
  312. and the output is a list of objects matching the search. To get the
  313. properties of a specific object, use the dsget commands (dsget /?).
  314. If a value that you supply contains spaces, use quotation marks
  315. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  316. If you enter multiple values, the values must be separated by spaces
  317. (for example, a list of distinguished names).
  318. .
  319. MessageId=14
  320. SymbolicName=USAGE_DSQUERY_USER_EXAMPLES
  321. Language=English
  322. Examples:
  323. To find all users in a given organizational unit (OU)
  324. whose name starts with "jon" and whose account has been disabled
  325. for logon and display their user principal names (UPNs):
  326. dsquery user ou=Test,dc=microsoft,dc=com -o upn -name jon* -disabled
  327. To find all users in only the current domain, whose names end with "smith"
  328. and who have been inactive for 3 weeks or more, and display their DNs:
  329. dsquery user domainroot -name *smith -inactive 3
  330. To find all users in the OU given by ou=sales,dc=microsoft,dc=com and display
  331. their UPNs:
  332. dsquery user ou=sales,dc=microsoft,dc=com -o upn
  333. .
  334. MessageId=15
  335. SymbolicName=USAGE_DSQUERY_USER_SEE_ALSO
  336. Language=English
  337. See also:
  338. dsquery computer /? - help for finding computers in the directory.
  339. dsquery contact /? - help for finding contacts in the directory.
  340. dsquery subnet /? - help for finding subnets in the directory.
  341. dsquery group /? - help for finding groups in the directory.
  342. dsquery ou /? - help for finding organizational units in the directory.
  343. dsquery site /? - help for finding sites in the directory.
  344. dsquery server /? - help for finding servers in the directory.
  345. dsquery user /? - help for finding users in the directory.
  346. dsquery quota /? - help for finding quotas in the directory.
  347. dsquery partition /? - help for finding partitions in the directory.
  348. dsquery * /? - help for finding any object in the directory by using a
  349. generic LDAP query.
  350. Directory Service command-line tools help:
  351. dsadd /? - help for adding objects.
  352. dsget /? - help for displaying objects.
  353. dsmod /? - help for modifying objects.
  354. dsmove /? - help for moving objects.
  355. dsquery /? - help for finding objects matching search criteria.
  356. dsrm /? - help for deleting objects.
  357. .
  358. MessageId=16
  359. SymbolicName=USAGE_DSQUERY_COMPUTER_DESCRIPTION
  360. Language=English
  361. Description: Finds computers in the directory matching specified
  362. search criteria.
  363. .
  364. MessageId=17
  365. SymbolicName=USAGE_DSQUERY_COMPUTER_SYNTAX
  366. Language=English
  367. Syntax: dsquery computer [{<StartNode> | forestroot | domainroot}]
  368. [-o {dn | rdn | samid}] [-scope {subtree | onelevel | base}]
  369. [-name <Name>] [-desc <Description>] [-samid <SAMName>]
  370. [-inactive <NumWeeks>] [-stalepwd <NumDays>] [-disabled]
  371. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  372. [-p {<Password> | *}] [-q] [-r] [-gc]
  373. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  374. .
  375. MessageId=18
  376. SymbolicName=USAGE_DSQUERY_COMPUTER_PARAMETERS
  377. Language=English
  378. Parameters:
  379. Value Description
  380. {<StartNode> | forestroot | domainroot}
  381. The node where the search will start:
  382. forest root, domain root, or a node
  383. whose DN is <StartNode>.
  384. Can be "forestroot", "domainroot"
  385. or an object DN.
  386. If "forestroot" is specified, the search is done
  387. via the global catalog. Default: domainroot.
  388. -o {dn | rdn | samid} Specifies the output format.
  389. Default: distinguished name (DN).
  390. -scope {subtree | onelevel | base}
  391. Specifies the scope of the search:
  392. subtree rooted at start node (subtree);
  393. immediate children of start node only (onelevel);
  394. the base object represented by start node (base).
  395. Note that subtree and domain scope
  396. are essentially the same for any start node
  397. unless the start node represents a domain root.
  398. If forestroot is specified as <StartNode>,
  399. subtree is the only valid scope.
  400. Default: subtree.
  401. -name <Name> Finds computers whose name matches the value
  402. given by <Name>, e.g., "jon*" or "*ith"
  403. or "j*th".
  404. -desc <Description> Finds computers whose description matches
  405. the value given by <Description>,
  406. e.g., "jon*" or "*ith" or "j*th".
  407. -samid <SAMName> Finds computers whose SAM account name
  408. matches the filter given by <SAMName>.
  409. -inactive <NumWeeks> Finds computers that have been inactive (stale)
  410. for at least <NumWeeks> number of weeks.
  411. -stalepwd <NumDays> Finds computers that have not changed their
  412. password for at least <NumDays> number of days.
  413. -disabled Finds computers with disabled accounts.
  414. {-s <Server> | -d <Domain>}
  415. -s <Server> connects to the domain controller
  416. (DC) with name <Server>.
  417. -d <Domain> connects to a DC in domain <Domain>.
  418. Default: a DC in the logon domain.
  419. -u <UserName> Connect as <UserName>. Default: the logged in
  420. user. User name can be: user name,
  421. domain\user name, or user principal name (UPN).
  422. -p <Password> Password for the user <UserName>.
  423. If * then prompt for password.
  424. -q Quiet mode: suppress all output to
  425. standard output.
  426. -r Recurse or follow referrals during search.
  427. Default: do not chase referrals during search.
  428. -gc Search in the Active Directory global catalog.
  429. -limit <NumObjects> Specifies the number of objects matching the
  430. given criteria to be returned, where <NumObjects>
  431. is the number of objects to be returned.
  432. If the value of <NumObjects> is 0, all
  433. matching objects are returned.
  434. If this parameter is not specified, by default
  435. the first 100 results are displayed.
  436. {-uc | -uco | -uci} -uc Specifies that input from or output
  437. to pipe is formatted in Unicode.
  438. -uco Specifies that output to pipe or file is
  439. formatted in Unicode.
  440. -uci Specifies that input from pipe or file is
  441. formatted in Unicode.
  442. .
  443. MessageId=19
  444. SymbolicName=USAGE_DSQUERY_COMPUTER_REMARKS
  445. Language=English
  446. Remarks:
  447. The dsquery commands help you find objects in the directory that match
  448. a specified search criterion: the input to dsquery is a search criteria
  449. and the output is a list of objects matching the search. To get the
  450. properties of a specific object, use the dsget commands (dsget /?).
  451. If a value that you supply contains spaces, use quotation marks
  452. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  453. If you enter multiple values, the values must be separated by spaces
  454. (for example, a list of distinguished names).
  455. .
  456. MessageId=20
  457. SymbolicName=USAGE_DSQUERY_COMPUTER_EXAMPLES
  458. Language=English
  459. Examples:
  460. To find all computers in the current domain whose name starts with "ms"
  461. and whose description starts with "desktop", and display their DNs:
  462. dsquery computer domainroot -name ms* -desc desktop*
  463. To find all computers in the organizational unit (OU) given
  464. by ou=sales,dc=micrsoft,dc=com and display their DNs:
  465. dsquery computer ou=sales,dc=microsoft,dc=com
  466. .
  467. MessageId=21
  468. SymbolicName=USAGE_DSQUERY_COMPUTER_SEE_ALSO
  469. Language=English
  470. See also:
  471. dsquery computer /? - help for finding computers in the directory.
  472. dsquery contact /? - help for finding contacts in the directory.
  473. dsquery subnet /? - help for finding subnets in the directory.
  474. dsquery group /? - help for finding groups in the directory.
  475. dsquery ou /? - help for finding organizational units in the directory.
  476. dsquery site /? - help for finding sites in the directory.
  477. dsquery server /? - help for finding servers in the directory.
  478. dsquery user /? - help for finding users in the directory.
  479. dsquery quota /? - help for finding quotas in the directory.
  480. dsquery partition /? - help for finding partitions in the directory.
  481. dsquery * /? - help for finding any object in the directory by using a
  482. generic LDAP query.
  483. Directory Service command-line tools help:
  484. dsadd /? - help for adding objects.
  485. dsget /? - help for displaying objects.
  486. dsmod /? - help for modifying objects.
  487. dsmove /? - help for moving objects.
  488. dsquery /? - help for finding objects matching search criteria.
  489. dsrm /? - help for deleting objects.
  490. .
  491. MessageId=22
  492. SymbolicName=USAGE_DSQUERY_GROUP_DESCRIPTION
  493. Language=English
  494. Description: Finds groups in the directory per given criteria.
  495. .
  496. MessageId=23
  497. SymbolicName=USAGE_DSQUERY_GROUP_SYNTAX
  498. Language=English
  499. Syntax: dsquery group [{<StartNode> | forestroot | domainroot}]
  500. [-o {dn | rdn | samid}] [-scope {subtree | onelevel | base}]
  501. [-name <Name>] [-desc <Description>] [-samid <SAMName>]
  502. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  503. [-p {<Password> | *}] [-q] [-r] [-gc]
  504. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  505. .
  506. MessageId=24
  507. SymbolicName=USAGE_DSQUERY_GROUP_PARAMETERS
  508. Language=English
  509. Parameters:
  510. Value Description
  511. {<StartNode> | forestroot | domainroot}
  512. The node where the search will start:
  513. forest root, domain root, or a node
  514. whose DN is <StartNode>.
  515. Can be "forestroot", "domainroot" or an
  516. object DN. If "forestroot" is specified,
  517. the search is done via the global catalog.
  518. Default: domainroot.
  519. -o {dn | rdn | samid} Specifies the output format.
  520. Default: distinguished name (DN).
  521. -scope {subtree | onelevel | base}
  522. Specifies the scope of the search:
  523. subtree rooted at start node (subtree);
  524. immediate children of start node only (onelevel);
  525. the base object represented by start node (base).
  526. Note that subtree and domain scope
  527. are essentially the same for any start node
  528. unless the start node represents a domain root.
  529. If forestroot is specified as <StartNode>,
  530. subtree is the only valid scope.
  531. Default: subtree.
  532. -name <Name> Find groups whose name matches the value given
  533. by <Name>, e.g., "jon*" or "*ith"
  534. or "j*th".
  535. -desc <Description> Find groups whose description matches the value
  536. given by <Description>, e.g., "jon*" or "*ith"
  537. or "j*th".
  538. -samid <SAMName> Find groups whose SAM account name matches the
  539. value given by <SAMName>.
  540. {-s <Server> | -d <Domain>}
  541. -s <Server> connects to the domain controller
  542. (DC) with name <Server>.
  543. -d <Domain> connects to a DC in domain <Domain>.
  544. Default: a DC in the logon domain.
  545. -u <UserName> Connect as <UserName>. Default: the logged in
  546. user. User name can be: user name,
  547. domain\user name, or user principal name (UPN).
  548. -p <Password> Password for the user <UserName>.
  549. If * is specified, then you are prompted for
  550. a password.
  551. -q Quiet mode: suppress all output to
  552. standard output.
  553. -r Recurse or follow referrals during search.
  554. Default: do not chase referrals during search.
  555. -gc Search in the Active Directory global catalog.
  556. -limit <NumObjects> Specifies the number of objects matching the
  557. given criteria to be returned, where <NumObjects>
  558. is the number of objects to be returned.
  559. If the value of <NumObjects> is 0,
  560. all matching objects are returned.
  561. If this parameter is not specified,
  562. by default the first 100 results are displayed.
  563. {-uc | -uco | -uci} -uc Specifies that input from or output
  564. to pipe is formatted in Unicode.
  565. -uco Specifies that output to pipe or file is
  566. formatted in Unicode.
  567. -uci Specifies that input from pipe or file is
  568. formatted in Unicode.
  569. .
  570. MessageId=25
  571. SymbolicName=USAGE_DSQUERY_GROUP_REMARKS
  572. Language=English
  573. Remarks:
  574. The dsquery commands help you find objects in the directory that match
  575. a specified search criterion: the input to dsquery is a search criteria
  576. and the output is a list of objects matching the search. To get the
  577. properties of a specific object, use the dsget commands (dsget /?).
  578. If a value that you supply contains spaces, use quotation marks
  579. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  580. If you enter multiple values, the values must be separated by spaces
  581. (for example, a list of distinguished names).
  582. .
  583. MessageId=26
  584. SymbolicName=USAGE_DSQUERY_GROUP_EXAMPLES
  585. Language=English
  586. Examples:
  587. To find all groups in the current domain whose name starts
  588. with "ms" and whose description starts with "admin",
  589. and display their DNs:
  590. dsquery group domainroot -name ms* -desc admin*
  591. Find all groups in the domain given by dc=microsoft,dc=com
  592. and display their DNs:
  593. dsquery group dc=microsoft,dc=com
  594. .
  595. MessageId=27
  596. SymbolicName=USAGE_DSQUERY_GROUP_SEE_ALSO
  597. Language=English
  598. See also:
  599. dsquery computer /? - help for finding computers in the directory.
  600. dsquery contact /? - help for finding contacts in the directory.
  601. dsquery subnet /? - help for finding subnets in the directory.
  602. dsquery group /? - help for finding groups in the directory.
  603. dsquery ou /? - help for finding organizational units in the directory.
  604. dsquery site /? - help for finding sites in the directory.
  605. dsquery server /? - help for finding servers in the directory.
  606. dsquery user /? - help for finding users in the directory.
  607. dsquery quota /? - help for finding quotas in the directory.
  608. dsquery partition /? - help for finding partitions in the directory.
  609. dsquery * /? - help for finding any object in the directory by using a
  610. generic LDAP query.
  611. Directory Service command-line tools help:
  612. dsadd /? - help for adding objects.
  613. dsget /? - help for displaying objects.
  614. dsmod /? - help for modifying objects.
  615. dsmove /? - help for moving objects.
  616. dsquery /? - help for finding objects matching search criteria.
  617. dsrm /? - help for deleting objects.
  618. .
  619. MessageId=28
  620. SymbolicName=USAGE_DSQUERY_OU_DESCRIPTION
  621. Language=English
  622. Description: Finds organizational units (OUs) in the directory according to
  623. specified criteria.
  624. .
  625. MessageId=29
  626. SymbolicName=USAGE_DSQUERY_OU_SYNTAX
  627. Language=English
  628. Syntax: dsquery ou [{<StartNode> | forestroot | domainroot}]
  629. [-o {dn | rdn}] [-scope {subtree | onelevel | base}]
  630. [-name <Name>] [-desc <Description>]
  631. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  632. [-p {<Password> | *}] [-q] [-r] [-gc]
  633. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  634. .
  635. MessageId=30
  636. SymbolicName=USAGE_DSQUERY_OU_PARAMETERS
  637. Language=English
  638. Parameters:
  639. Value Description
  640. {<StartNode> | forestroot | domainroot}
  641. The node where the search will start:
  642. forest root, domain root, or a node
  643. whose DN is <StartNode>.
  644. Can be "forestroot", "domainroot" or an object DN.
  645. If "forestroot" is specified, the search is done
  646. via the global catalog. Default: domainroot.
  647. -o {dn | rdn} Specifies the output format.
  648. Default: distinguished name (DN).
  649. -scope {subtree | onelevel | base}
  650. Specifies the scope of the search:
  651. subtree rooted at start node (subtree);
  652. immediate children of start node only (onelevel);
  653. the base object represented by start node (base).
  654. Note that subtree and domain scope
  655. are essentially the same for any start node
  656. unless the start node represents a domain root.
  657. If forestroot is specified as <StartNode>,
  658. subtree is the only valid scope.
  659. Default: subtree.
  660. -name <Name> Find organizational units (OUs) whose name
  661. matches the value given by <Name>,
  662. e.g., "jon*" or "*ith" or "j*th".
  663. -desc <Description> Find OUs whose description matches the value
  664. given by <Description>, e.g., "jon*" or "*ith"
  665. or "j*th".
  666. {-s <Server> | -d <Domain>}
  667. -s <Server> connects to the domain controller (DC)
  668. with name <Server>.
  669. -d <Domain> connects to a DC in domain <Domain>.
  670. Default: a DC in the logon domain.
  671. -u <UserName> Connect as <UserName>. Default: the logged in
  672. user. User name can be: user name,
  673. domain\user name, or user principal name (UPN).
  674. -p <Password> Password for the user <UserName>.
  675. If * then prompt for password.
  676. -q Quiet mode: suppress all output to standard output.
  677. -r Recurse or follow referrals during search.
  678. Default: do not chase referrals during search.
  679. -gc Search in the Active Directory global catalog.
  680. -limit <NumObjects> Specifies the number of objects matching
  681. the given criteria to be returned, where
  682. <NumObjects> is the number of objects
  683. to be returned.
  684. If the value of <NumObjects> is 0, all
  685. matching objects are returned.
  686. If this parameter is not specified,
  687. by default the first 100 results are displayed.
  688. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  689. formatted in Unicode.
  690. -uco Specifies that output to pipe or file is
  691. formatted in Unicode.
  692. -uci Specifies that input from pipe or file is
  693. formatted in Unicode.
  694. .
  695. MessageId=31
  696. SymbolicName=USAGE_DSQUERY_OU_REMARKS
  697. Language=English
  698. Remarks:
  699. The dsquery commands help you find objects in the directory that match
  700. a specified search criterion: the input to dsquery is a search criteria
  701. and the output is a list of objects matching the search. To get the
  702. properties of a specific object, use the dsget commands (dsget /?).
  703. If a value that you supply contains spaces, use quotation marks
  704. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  705. If you enter multiple values, the values must be separated by spaces
  706. (for example, a list of distinguished names).
  707. .
  708. MessageId=32
  709. SymbolicName=USAGE_DSQUERY_OU_EXAMPLES
  710. Language=English
  711. Examples:
  712. To find all OUs in the current domain whose name starts with "ms"
  713. and whose description starts with "sales", and display their DNs:
  714. dsquery ou domainroot -name ms* -desc sales*
  715. To find all OUs in the domain given by dc=microsoft,dc=com and display their
  716. DNs:
  717. dsquery ou dc=microsoft,dc=com
  718. .
  719. MessageId=33
  720. SymbolicName=USAGE_DSQUERY_OU_SEE_ALSO
  721. Language=English
  722. See also:
  723. dsquery computer /? - help for finding computers in the directory.
  724. dsquery contact /? - help for finding contacts in the directory.
  725. dsquery subnet /? - help for finding subnets in the directory.
  726. dsquery group /? - help for finding groups in the directory.
  727. dsquery ou /? - help for finding organizational units in the directory.
  728. dsquery site /? - help for finding sites in the directory.
  729. dsquery server /? - help for finding servers in the directory.
  730. dsquery user /? - help for finding users in the directory.
  731. dsquery quota /? - help for finding quotas in the directory.
  732. dsquery partition /? - help for finding partitions in the directory.
  733. dsquery * /? - help for finding any object in the directory by using a
  734. generic LDAP query.
  735. Directory Service command-line tools help:
  736. dsadd /? - help for adding objects.
  737. dsget /? - help for displaying objects.
  738. dsmod /? - help for modifying objects.
  739. dsmove /? - help for moving objects.
  740. dsquery /? - help for finding objects matching search criteria.
  741. dsrm /? - help for deleting objects.
  742. .
  743. MessageId=34
  744. SymbolicName=USAGE_DSQUERY_SUBNET_DESCRIPTION
  745. Language=English
  746. Description: Finds subnets in the directory per given criteria.
  747. .
  748. MessageId=35
  749. SymbolicName=USAGE_DSQUERY_SUBNET_SYNTAX
  750. Language=English
  751. Syntax: dsquery subnet [-o {dn | rdn}] [-name <Name>]
  752. [-desc <Description>] [-loc <Location>] [-site <SiteName>]
  753. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  754. [-p {<Password> | *}] [-q] [-r] [-gc]
  755. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  756. .
  757. MessageId=36
  758. SymbolicName=USAGE_DSQUERY_SUBNET_PARAMETERS
  759. Language=English
  760. Parameters:
  761. Value Description
  762. -o {dn | rdn} Specifies the output format.
  763. Default: distinguished name (DN).
  764. -name <Name> Find subnets whose name matches the value given
  765. by <Name>, e.g., "10.23.*" or "12.2.*".
  766. -desc <Description> Find subnets whose description matches the value
  767. given by <Description>, e.g., "corp*" or "*nch"
  768. or "j*th".
  769. -loc <Location> Find subnets whose location matches the value
  770. given by <Location>.
  771. -site <SiteName> Find subnets that are part of site <SiteName>.
  772. {-s <Server> | -d <Domain>}
  773. -s <Server> connects to the domain controller (DC)
  774. with name <Server>.
  775. -d <Domain> connects to a DC in domain <Domain>.
  776. Default: a DC in the logon domain.
  777. -u <UserName> Connect as <UserName>. Default: the logged in
  778. user. User name can be: user name,
  779. domain\user name, or user principal name (UPN).
  780. -p <Password> Password for the user <UserName>. If * then prompt for
  781. password.
  782. -q Quiet mode: suppress all output to standard output.
  783. -r Recurse or follow referrals during search. Default: do
  784. not chase referrals during search.
  785. -gc Search in the Active Directory global catalog.
  786. -limit <NumObjects> Specifies the number of objects matching the given
  787. criteria to be returned, where <NumObjects>
  788. is the number of objects to be returned.
  789. If the value of <NumObjects> is 0,
  790. all matching objects are returned.
  791. If this parameter is not specified,
  792. by default the first 100 results are displayed.
  793. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  794. formatted in Unicode.
  795. -uco Specifies that output to pipe or file is
  796. formatted in Unicode.
  797. -uci Specifies that input from pipe or file is
  798. formatted in Unicode.
  799. .
  800. MessageId=37
  801. SymbolicName=USAGE_DSQUERY_SUBNET_REMARKS
  802. Language=English
  803. Remarks:
  804. The dsquery commands help you find objects in the directory that match
  805. a specified search criterion: the input to dsquery is a search criteria
  806. and the output is a list of objects matching the search. To get the
  807. properties of a specific object, use the dsget commands (dsget /?).
  808. If a value that you supply contains spaces, use quotation marks
  809. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  810. If you enter multiple values, the values must be separated by spaces
  811. (for example, a list of distinguished names).
  812. .
  813. MessageId=38
  814. SymbolicName=USAGE_DSQUERY_SUBNET_EXAMPLES
  815. Language=English
  816. Examples:
  817. To find all subnets with the network IP address starting with 123.12:
  818. dsquery subnet -name 123.12.*
  819. To find all subnets in the site whose name is "Latin-America",
  820. and display their names as Relative Distinguished Names (RDNs):
  821. dsquery subnet -o rdn -site Latin-America
  822. To list the names (RDNs) of all subnets defined in the directory:
  823. dsquery subnet -o rdn
  824. .
  825. MessageId=39
  826. SymbolicName=USAGE_DSQUERY_SUBNET_SEE_ALSO
  827. Language=English
  828. See also:
  829. dsquery computer /? - help for finding computers in the directory.
  830. dsquery contact /? - help for finding contacts in the directory.
  831. dsquery subnet /? - help for finding subnets in the directory.
  832. dsquery group /? - help for finding groups in the directory.
  833. dsquery ou /? - help for finding organizational units in the directory.
  834. dsquery site /? - help for finding sites in the directory.
  835. dsquery server /? - help for finding servers in the directory.
  836. dsquery user /? - help for finding users in the directory.
  837. dsquery quota /? - help for finding quotas in the directory.
  838. dsquery partition /? - help for finding partitions in the directory.
  839. dsquery * /? - help for finding any object in the directory by using a
  840. generic LDAP query.
  841. Directory Service command-line tools help:
  842. dsadd /? - help for adding objects.
  843. dsget /? - help for displaying objects.
  844. dsmod /? - help for modifying objects.
  845. dsmove /? - help for moving objects.
  846. dsquery /? - help for finding objects matching search criteria.
  847. dsrm /? - help for deleting objects.
  848. .
  849. MessageId=40
  850. SymbolicName=USAGE_DSQUERY_SITE_DESCRIPTION
  851. Language=English
  852. Description: Finds sites in the directory per given criteria.
  853. .
  854. MessageId=41
  855. SymbolicName=USAGE_DSQUERY_SITE_SYNTAX
  856. Language=English
  857. Syntax: dsquery site [-o {dn | rdn}] [-name <Name>]
  858. [-desc <Description>] [{-s <Server> | -d <Domain>}]
  859. [-u <UserName>] [-p {<Password> | *}] [-q]
  860. [-r] [-gc] [-limit <NumObjects>] [{-uc | -uco | -uci}]
  861. .
  862. MessageId=42
  863. SymbolicName=USAGE_DSQUERY_SITE_PARAMETERS
  864. Language=English
  865. Parameters:
  866. Value Description
  867. -o {dn | rdn} Specifies the output format.
  868. Default: distinguished name (DN).
  869. -name <Name> Finds subnets whose name matches the value given
  870. by <Name>, e.g., "NA*" or "Europe*".
  871. -desc <Description> Finds subnets whose description matches the filter
  872. given by <Description>, e.g., "corp*" or "*nch"
  873. or "j*th".
  874. {-s <Server> | -d <Domain>}
  875. -s <Server> connects to the domain controller (DC)
  876. with name <Server>.
  877. -d <Domain> connects to a DC in domain <Domain>.
  878. Default: a DC in the logon domain.
  879. -u <UserName> Connect as <UserName>. Default: the logged in
  880. user. User name can be: user name,
  881. domain\user name, or user principal name (UPN).
  882. -p <Password> Password for the user <UserName>. If * then prompt for
  883. password.
  884. -q Quiet mode: suppress all output to standard output.
  885. -r Recurse or follow referrals during search. Default: do
  886. not chase referrals during search.
  887. -gc Search in the Active Directory global catalog.
  888. -limit <NumObjects> Specifies the number of objects matching the given
  889. criteria to be returned, where <NumObjects>
  890. is the number of objects to be returned.
  891. If the value of <NumObjects> is 0,
  892. all matching objects are returned.
  893. If this parameter is not specified,
  894. by default the first 100 results are displayed.
  895. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  896. formatted in Unicode.
  897. -uco Specifies that output to pipe or file is
  898. formatted in Unicode.
  899. -uci Specifies that input from pipe or file is
  900. formatted in Unicode.
  901. .
  902. MessageId=43
  903. SymbolicName=USAGE_DSQUERY_SITE_REMARKS
  904. Language=English
  905. Remarks:
  906. The dsquery commands help you find objects in the directory that match
  907. a specified search criterion: the input to dsquery is a search criteria
  908. and the output is a list of objects matching the search. To get the
  909. properties of a specific object, use the dsget commands (dsget /?).
  910. If a value that you supply contains spaces, use quotation marks
  911. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  912. If you enter multiple values, the values must be separated by spaces
  913. (for example, a list of distinguished names).
  914. .
  915. MessageId=44
  916. SymbolicName=USAGE_DSQUERY_SITE_EXAMPLES
  917. Language=English
  918. Examples:
  919. To find all sites in North America with name starting with "north"
  920. and display their DNs:
  921. dsquery site -name north*
  922. To list the distinguished names (RDNs) of all sites defined in the directory:
  923. dsquery site -o rdn
  924. .
  925. MessageId=45
  926. SymbolicName=USAGE_DSQUERY_SITE_SEE_ALSO
  927. Language=English
  928. See also:
  929. dsquery computer /? - help for finding computers in the directory.
  930. dsquery contact /? - help for finding contacts in the directory.
  931. dsquery subnet /? - help for finding subnets in the directory.
  932. dsquery group /? - help for finding groups in the directory.
  933. dsquery ou /? - help for finding organizational units in the directory.
  934. dsquery site /? - help for finding sites in the directory.
  935. dsquery server /? - help for finding servers in the directory.
  936. dsquery user /? - help for finding users in the directory.
  937. dsquery quota /? - help for finding quotas in the directory.
  938. dsquery partition /? - help for finding partitions in the directory.
  939. dsquery * /? - help for finding any object in the directory by using a
  940. generic LDAP query.
  941. Directory Service command-line tools help:
  942. dsadd /? - help for adding objects.
  943. dsget /? - help for displaying objects.
  944. dsmod /? - help for modifying objects.
  945. dsmove /? - help for moving objects.
  946. dsquery /? - help for finding objects matching search criteria.
  947. dsrm /? - help for deleting objects.
  948. .
  949. MessageId=46
  950. SymbolicName=USAGE_DSQUERY_SLINK_DESCRIPTION
  951. Language=English
  952. Description: Finds site links per given criteria.
  953. .
  954. MessageId=47
  955. SymbolicName=USAGE_DSQUERY_SLINK_SYNTAX
  956. Language=English
  957. Syntax: dsquery slink [-transport {ip | smtp}] [-o {dn | rdn}]
  958. [-name <Name>] [-desc <Description>]
  959. [{-s <Server> | -d <Domain>}]
  960. [-u <UserName>] [-p {<Password> | *}] [-q] [-r] [-gc]
  961. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  962. .
  963. MessageId=48
  964. SymbolicName=USAGE_DSQUERY_SLINK_PARAMETERS
  965. Language=English
  966. Parameters:
  967. Value Description
  968. -transport {ip | smtp} Specifies site link transport type: IP or SMTP.
  969. Default: IP.
  970. -o {dn | rdn} Specifies output formats supported.
  971. Default: distinguished name (DN).
  972. -name <Name> Finds sitelinks with names matching the value given
  973. by <Name>, e.g., "def*" or "alt*" or "j*th".
  974. -desc <Description> Finds sitelinks with descriptions matching the value
  975. given by <Description>, e.g., "def*" or "alt*"
  976. or "j*th".
  977. {-s <Server> | -d <Domain>}
  978. -s <Server> connects to the domain controller (DC)
  979. with name <Server>.
  980. -d <Domain> connects to a DC in domain <Domain>.
  981. Default: a DC in the logon domain.
  982. -u <UserName> Connect as <UserName>. Default: the logged in
  983. user. User name can be: user name,
  984. domain\user name, or user principal name (UPN).
  985. -p <Password> Password for the user <UserName>.
  986. If * then prompt for password.
  987. -q Quiet mode: suppress all output to standard output.
  988. -r Recurse or follow referrals during search.
  989. Default: do not chase referrals during search.
  990. -gc Search in the Active Directory global catalog.
  991. -limit <NumObjects> Specifies the number of objects matching the given
  992. criteria to be returned, where <NumObjects> is the
  993. number of objects to be returned. If the value of
  994. <NumObjects> is 0, all matching objects are returned.
  995. If this parameter is not specified,
  996. by default the first 100 results are displayed.
  997. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  998. formatted in Unicode.
  999. -uco Specifies that output to pipe or file is
  1000. formatted in Unicode.
  1001. -uci Specifies that input from pipe or file is
  1002. formatted in Unicode.
  1003. .
  1004. MessageId=49
  1005. SymbolicName=USAGE_DSQUERY_SLINK_REMARKS
  1006. Language=English
  1007. Remarks:
  1008. The dsquery commands help you find objects in the directory that match
  1009. a specified search criterion: the input to dsquery is a search criteria
  1010. and the output is a list of objects matching the search. To get the
  1011. properties of a specific object, use the dsget commands (dsget /?).
  1012. If a value that you supply contains spaces, use quotation marks
  1013. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  1014. If you enter multiple values, the values must be separated by spaces
  1015. (for example, a list of distinguished names).
  1016. Examples:
  1017. To find all IP-based site links whose description starts with "TransAtlantic"
  1018. and display their DNs:
  1019. dsquery slink -desc TransAtlantic*
  1020. To list the Relative distinguished names (RDNs) of all SMTP-based site links
  1021. defined in the directory:
  1022. dsquery slink -transport smtp -o rdn
  1023. .
  1024. MessageId=50
  1025. SymbolicName=USAGE_DSQUERY_SLINK_SEE_ALSO
  1026. Language=English
  1027. See also:
  1028. dsquery computer /? - help for finding computers in the directory.
  1029. dsquery contact /? - help for finding contacts in the directory.
  1030. dsquery subnet /? - help for finding subnets in the directory.
  1031. dsquery group /? - help for finding groups in the directory.
  1032. dsquery ou /? - help for finding organizational units in the directory.
  1033. dsquery site /? - help for finding sites in the directory.
  1034. dsquery server /? - help for finding servers in the directory.
  1035. dsquery user /? - help for finding users in the directory.
  1036. dsquery quota /? - help for finding quotas in the directory.
  1037. dsquery partition /? - help for finding partitions in the directory.
  1038. dsquery * /? - help for finding any object in the directory by using a
  1039. generic LDAP query.
  1040. Directory Service command-line tools help:
  1041. dsadd /? - help for adding objects.
  1042. dsget /? - help for displaying objects.
  1043. dsmod /? - help for modifying objects.
  1044. dsmove /? - help for moving objects.
  1045. dsquery /? - help for finding objects matching search criteria.
  1046. dsrm /? - help for deleting objects.
  1047. .
  1048. MessageId=51
  1049. SymbolicName=USAGE_DSQUERY_SLINKBR_DESCRIPTION
  1050. Language=English
  1051. Description: Finds site link bridges per given criteria.
  1052. .
  1053. MessageId=52
  1054. SymbolicName=USAGE_DSQUERY_SLINKBR_SYNTAX
  1055. Language=English
  1056. Syntax: dsquery slinkbr [-transport {ip | smtp}]
  1057. [-o {dn | rdn}] [-name <Name>] [-desc <Description>]
  1058. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  1059. [-p {<Password> | *}] [-q] [-r] [-gc]
  1060. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  1061. .
  1062. MessageId=53
  1063. SymbolicName=USAGE_DSQUERY_SLINKBR_PARAMETERS
  1064. Language=English
  1065. Parameters:
  1066. Value Description
  1067. -transport {ip | smtp} Specifies the site link bridge transport type:
  1068. IP or SMTP. Default:IP.
  1069. -o {dn | rdn} Specifies the output format. Default: DN.
  1070. -name <Name> Finds sitelink bridges with names matching the
  1071. value given by <Name>, e.g., "def*" or
  1072. "alt*" or "j*th".
  1073. -desc <Description> Finds sitelink bridges with descriptions matching
  1074. the value given by <Description>, e.g., "def*" or
  1075. "alt*" or "j*th".
  1076. {-s <Server> | -d <Domain>}
  1077. -s <Server> connects to the domain controller (DC)
  1078. with name <Server>.
  1079. -d <Domain> connects to a DC in domain <Domain>.
  1080. Default: a DC in the logon domain.
  1081. -u <UserName> Connect as <UserName>. Default: the logged in
  1082. user. User name can be: user name,
  1083. domain\user name, or user principal name (UPN).
  1084. -p <Password> Password for the user <UserName>.
  1085. If * then prompt for password.
  1086. -q Quiet mode: suppress all output to standard output.
  1087. -r Recurse or follow referrals during search.
  1088. Default: do not chase referrals during search.
  1089. -gc Search in the Active Directory global catalog.
  1090. -limit <NumObjects> Specifies the number of objects matching the given
  1091. criteria to be returned, where <NumObjects> is the
  1092. number of objects to be returned. If the value
  1093. of <NumObjects> is 0, all matching objects are
  1094. returned. If this parameter is not specified,
  1095. by default the first 100 results are displayed.
  1096. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  1097. formatted in Unicode.
  1098. -uco Specifies that output to pipe or file is
  1099. formatted in Unicode.
  1100. -uci Specifies that input from pipe or file is
  1101. formatted in Unicode.
  1102. .
  1103. MessageId=54
  1104. SymbolicName=USAGE_DSQUERY_SLINKBR_REMARKS
  1105. Language=English
  1106. Remarks:
  1107. The dsquery commands help you find objects in the directory that match
  1108. a specified search criterion: the input to dsquery is a search criteria
  1109. and the output is a list of objects matching the search. To get the
  1110. properties of a specific object, use the dsget commands (dsget /?).
  1111. If a value that you supply contains spaces, use quotation marks
  1112. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  1113. If you enter multiple values, the values must be separated by spaces
  1114. (for example, a list of distinguished names).
  1115. Examples:
  1116. To find all IP-based site link bridges whose description starts with
  1117. "TransAtlantic" and display their DNs:
  1118. dsquery slinkbr -desc TransAtlantic*
  1119. To list the Relative distinguished names (RDNs) of all SMTP-based
  1120. site link bridges defined in the directory:
  1121. dsquery slinkbr -transport smtp -o rdn
  1122. .
  1123. MessageId=55
  1124. SymbolicName=USAGE_DSQUERY_SLINKBR_SEE_ALSO
  1125. Language=English
  1126. See also:
  1127. dsquery computer /? - help for finding computers in the directory.
  1128. dsquery contact /? - help for finding contacts in the directory.
  1129. dsquery subnet /? - help for finding subnets in the directory.
  1130. dsquery group /? - help for finding groups in the directory.
  1131. dsquery ou /? - help for finding organizational units in the directory.
  1132. dsquery site /? - help for finding sites in the directory.
  1133. dsquery server /? - help for finding servers in the directory.
  1134. dsquery user /? - help for finding users in the directory.
  1135. dsquery quota /? - help for finding quotas in the directory.
  1136. dsquery partition /? - help for finding partitions in the directory.
  1137. dsquery * /? - help for finding any object in the directory by using a
  1138. generic LDAP query.
  1139. Directory Service command-line tools help:
  1140. dsadd /? - help for adding objects.
  1141. dsget /? - help for displaying objects.
  1142. dsmod /? - help for modifying objects.
  1143. dsmove /? - help for moving objects.
  1144. dsquery /? - help for finding objects matching search criteria.
  1145. dsrm /? - help for deleting objects.
  1146. .
  1147. MessageId=56
  1148. SymbolicName=USAGE_DSQUERY_CONN_DESCRIPTION
  1149. Language=English
  1150. Description: Finds replication connections per given criteria.
  1151. .
  1152. MessageId=57
  1153. SymbolicName=USAGE_DSQUERY_CONN_SYNTAX
  1154. Language=English
  1155. Syntax: dsquery conn [-o {dn | rdn}] [-to <SrvName> [-from <SrvName>]]
  1156. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  1157. [-p {<Password> | *}] [-q] [-r] [-gc]
  1158. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  1159. .
  1160. MessageId=58
  1161. SymbolicName=USAGE_DSQUERY_CONN_PARAMETERS
  1162. Language=English
  1163. Parameters:
  1164. Value Description
  1165. -o {dn | rdn} Specifies output format.
  1166. Default: distinguished name (DN).
  1167. -to <SrvName> Finds connections whose destination is given
  1168. by server <SrvName>.
  1169. -from <SrvName> Finds connections whose source end is given
  1170. by server <SrvName> (used along with -to parameter).
  1171. {-s <Server> | -d <Domain>}
  1172. -s <Server> connects to the domain controller (DC)
  1173. with name <Server>.
  1174. -d <Domain> connects to a DC in domain <Domain>.
  1175. Default: a DC in the logon domain.
  1176. -u <UserName> Connect as <UserName>. Default: the logged in
  1177. user. User name can be: user name,
  1178. domain\user name, or user principal name (UPN).
  1179. -p <Password> Password for the user <UserName>.
  1180. If * then prompt for password.
  1181. -q Quiet mode: suppress all output to standard output.
  1182. -r Recurse or follow referrals during search.
  1183. Default: do not chase referrals during search.
  1184. -gc Search in the Active Directory global catalog.
  1185. -limit <NumObjects> Specifies the number of objects matching the given
  1186. criteria to be returned, where <NumObjects> is the
  1187. number of objects to be returned. If the value
  1188. of <NumObjects> is 0, all matching objects are
  1189. returned. If this parameter is not specified,
  1190. by default the first 100 results are displayed.
  1191. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  1192. formatted in Unicode.
  1193. -uco Specifies that output to pipe or file is
  1194. formatted in Unicode.
  1195. -uci Specifies that input from pipe or file is
  1196. formatted in Unicode.
  1197. .
  1198. MessageId=59
  1199. SymbolicName=USAGE_DSQUERY_CONN_REMARKS
  1200. Language=English
  1201. Remarks:
  1202. The dsquery commands help you find objects in the directory that match
  1203. a specified search criterion: the input to dsquery is a search criteria
  1204. and the output is a list of objects matching the search. To get the
  1205. properties of a specific object, use the dsget commands (dsget /?).
  1206. If a value that you supply contains spaces, use quotation marks
  1207. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  1208. If you enter multiple values, the values must be separated by spaces
  1209. (for example, a list of distinguished names).
  1210. Examples:
  1211. To find all connections to the domain controller whose name is "CORPDC1"
  1212. and display their DNs:
  1213. dsquery conn -to CORPDC1
  1214. List the Relative distinguished names (RDNs) of all replication connections
  1215. defined in the directory:
  1216. dsquery conn -o rdn
  1217. .
  1218. MessageId=60
  1219. SymbolicName=USAGE_DSQUERY_CONN_SEE_ALSO
  1220. Language=English
  1221. See also:
  1222. dsquery computer /? - help for finding computers in the directory.
  1223. dsquery contact /? - help for finding contacts in the directory.
  1224. dsquery subnet /? - help for finding subnets in the directory.
  1225. dsquery group /? - help for finding groups in the directory.
  1226. dsquery ou /? - help for finding organizational units in the directory.
  1227. dsquery site /? - help for finding sites in the directory.
  1228. dsquery server /? - help for finding servers in the directory.
  1229. dsquery user /? - help for finding users in the directory.
  1230. dsquery quota /? - help for finding quotas in the directory.
  1231. dsquery partition /? - help for finding partitions in the directory.
  1232. dsquery * /? - help for finding any object in the directory by using a
  1233. generic LDAP query.
  1234. Directory Service command-line tools help:
  1235. dsadd /? - help for adding objects.
  1236. dsget /? - help for displaying objects.
  1237. dsmod /? - help for modifying objects.
  1238. dsmove /? - help for moving objects.
  1239. dsquery /? - help for finding objects matching search criteria.
  1240. dsrm /? - help for deleting objects.
  1241. .
  1242. MessageId=61
  1243. SymbolicName=USAGE_DSQUERY_SERVER_DESCRIPTION
  1244. Language=English
  1245. Description: Finds domain controllers according to specified search criteria.
  1246. .
  1247. MessageId=62
  1248. SymbolicName=USAGE_DSQUERY_SERVER_SYNTAX
  1249. Language=English
  1250. Syntax: dsquery server [-o {dn | rdn}] [-forest]
  1251. [-domain <DomainName>] [-site <SiteName>]
  1252. [-name <Name>] [-desc <Description>]
  1253. [-hasfsmo {schema | name | infr | pdc | rid}] [-isgc]
  1254. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  1255. [-p {<Password> | *}] [-q] [-r] [-gc]
  1256. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  1257. .
  1258. MessageId=63
  1259. SymbolicName=USAGE_DSQUERY_SERVER_PARAMETERS
  1260. Language=English
  1261. Parameters:
  1262. Value Description
  1263. -o {dn | rdn} Specifies output format.
  1264. Default: distinguished name (DN).
  1265. -forest Finds all domain controllers (DCs) in the current
  1266. forest.
  1267. -domain <DomainName> Finds all DCs in the domain with a DNS name
  1268. matching <DomainName>.
  1269. -site <SiteName> Finds all DCs that are part of site <SiteName>.
  1270. -name <Name> Finds DCs with names matching the value given
  1271. by <Name>, e.g., "NA*" or "Europe*" or "j*th".
  1272. -desc <Description> Finds DCs with descriptions matching the value
  1273. given by <Description>, e.g., "corp*" or "j*th".
  1274. -hasfsmo {schema | name | infr | pdc | rid}
  1275. Finds the DC that holds the specified
  1276. Flexible Single-master Operation (FSMO) role.
  1277. (For the "infr," "pdc" and "rid" FSMO roles,
  1278. if no domain is specified with the -domain
  1279. parameter, the current domain is used.)
  1280. -isgc Find all DCs that are also global
  1281. catalog servers (GCs) in the scope specified
  1282. (if the -forest, -domain or -site parameters
  1283. are not specified, then find all GCs in the current
  1284. domain are used).
  1285. {-s <Server> | -d <Domain>}
  1286. -s <Server> connects to the domain controller (DC)
  1287. with name <Server>.
  1288. -d <Domain> connects to a DC in domain <Domain>.
  1289. Default: a DC in the logon domain.
  1290. -u <UserName> Connect as <UserName>. Default: the logged in
  1291. user. User name can be: user name,
  1292. domain\user name, or user principal name (UPN).
  1293. -p <Password> Password for the user <UserName>.
  1294. If * then prompt for password.
  1295. -q Quiet mode: suppress all output to standard output.
  1296. -r Recurse or follow referrals during search.
  1297. Default: do not chase referrals during search.
  1298. -gc Search in the Active Directory global catalog.
  1299. -limit <NumObjects> Specifies the number of objects matching the given
  1300. criteria to be returned, where <NumObjects> is the
  1301. number of objects to be returned. If the value of
  1302. <NumObjects> is 0, all matching objects are returned.
  1303. If this parameter is not specified,
  1304. by default the first 100 results are displayed.
  1305. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  1306. formatted in Unicode.
  1307. -uco Specifies that output to pipe or file is
  1308. formatted in Unicode.
  1309. -uci Specifies that input from pipe or file is
  1310. formatted in Unicode.
  1311. .
  1312. MessageId=64
  1313. SymbolicName=USAGE_DSQUERY_SERVER_REMARKS
  1314. Language=English
  1315. Remarks:
  1316. The dsquery commands help you find objects in the directory that match
  1317. a specified search criterion: the input to dsquery is a search criteria
  1318. and the output is a list of objects matching the search. To get the
  1319. properties of a specific object, use the dsget commands (dsget /?).
  1320. If a value that you supply contains spaces, use quotation marks
  1321. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  1322. If you enter multiple values, the values must be separated by spaces
  1323. (for example, a list of distinguished names).
  1324. .
  1325. MessageId=65
  1326. SymbolicName=USAGE_DSQUERY_SERVER_EXAMPLES
  1327. Language=English
  1328. Examples:
  1329. To find all DCs in the current domain:
  1330. dsquery server
  1331. To find all DCs in the forest and display their
  1332. Relative Distinguished Names:
  1333. dsquery server -o rdn -forest
  1334. To find all DCs in the site whose name is "Latin-America", and display their
  1335. Relative Distinguished Names:
  1336. dsquery server -o rdn -site Latin-America
  1337. Find the DC in the forest that holds the schema FSMO role:
  1338. dsquery server -forest -hasfsmo schema
  1339. Find all DCs in the domain example.microsoft.com that are
  1340. global catalog servers:
  1341. dsquery server -domain example.microsoft.com -isgc
  1342. Find all DCs in the current domain that hold a copy of a given directory
  1343. partition called "ApplicationSales":
  1344. dsquery server -part "Application*"
  1345. .
  1346. MessageId=66
  1347. SymbolicName=USAGE_DSQUERY_SERVER_SEE_ALSO
  1348. Language=English
  1349. See also:
  1350. dsquery computer /? - help for finding computers in the directory.
  1351. dsquery contact /? - help for finding contacts in the directory.
  1352. dsquery subnet /? - help for finding subnets in the directory.
  1353. dsquery group /? - help for finding groups in the directory.
  1354. dsquery ou /? - help for finding organizational units in the directory.
  1355. dsquery site /? - help for finding sites in the directory.
  1356. dsquery server /? - help for finding servers in the directory.
  1357. dsquery user /? - help for finding users in the directory.
  1358. dsquery quota /? - help for finding quotas in the directory.
  1359. dsquery partition /? - help for finding partitions in the directory.
  1360. dsquery * /? - help for finding any object in the directory by using a
  1361. generic LDAP query.
  1362. Directory Service command-line tools help:
  1363. dsadd /? - help for adding objects.
  1364. dsget /? - help for displaying objects.
  1365. dsmod /? - help for modifying objects.
  1366. dsmove /? - help for moving objects.
  1367. dsquery /? - help for finding objects matching search criteria.
  1368. dsrm /? - help for deleting objects.
  1369. .
  1370. MessageId=67
  1371. SymbolicName=USAGE_DSQUERY_CONTACT_DESCRIPTION
  1372. Language=English
  1373. Description: Finds contacts per given criteria.
  1374. .
  1375. MessageId=68
  1376. SymbolicName=USAGE_DSQUERY_CONTACT_SYNTAX
  1377. Language=English
  1378. Syntax: dsquery contact [{<StartNode> | forestroot | domainroot}]
  1379. [-o {dn | rdn}] [-scope {subtree | onelevel | base}]
  1380. [-name <Name>] [-desc <Description>]
  1381. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  1382. [-p {<Password> | *}] [-q] [-r] [-gc]
  1383. [-limit <NumObjects>] [{-uc | -uco | -uci}]
  1384. .
  1385. MessageId=69
  1386. SymbolicName=USAGE_DSQUERY_CONTACT_PARAMETERS
  1387. Language=English
  1388. Parameters
  1389. Value Description
  1390. {<StartNode> | forestroot | domainroot}
  1391. The node where the search will start:
  1392. forest root, domain root, or a node
  1393. whose DN is <StartNode>.
  1394. Can be "forestroot", "domainroot" or an object DN.
  1395. If "forestroot" is specified, the search is done
  1396. via the global catalog. Default: domainroot.
  1397. -o {dn | rdn} Specifies the output format.
  1398. Default: distinguished name (DN).
  1399. -scope {subtree | onelevel | base}
  1400. Specifies the scope of the search:
  1401. subtree rooted at start node (subtree);
  1402. immediate children of start node only (onelevel);
  1403. the base object represented by start node (base).
  1404. Note that subtree and domain scope
  1405. are essentially the same for any start node
  1406. unless the start node represents a domain root.
  1407. If forestroot is specified as <StartNode>,
  1408. subtree is the only valid scope.
  1409. Default: subtree.
  1410. -name <Name> Finds all contacts whose name matches the filter
  1411. given by <Name>, e.g., "jon*" or *ith" or "j*th".
  1412. -desc <Description> Finds contacts with descriptions matching the
  1413. value given by <Description>, e.g., "corp*" or *branch"
  1414. or "j*th".
  1415. {-s <Server> | -d <Domain>}
  1416. -s <Server> connects to the domain controller (DC)
  1417. with name <Server>.
  1418. -d <Domain> connects to a DC in domain <Domain>.
  1419. Default: a DC in the logon domain.
  1420. -u <UserName> Connect as <UserName>. Default: the logged in
  1421. user. User name can be: user name,
  1422. domain\user name, or user principal name (UPN).
  1423. -p <Password> Password for the user <UserName>. If * then prompt for
  1424. password.
  1425. -q Quiet mode: suppress all output to standard output.
  1426. -r Recurse or follow referrals during search. Default: do
  1427. not chase referrals during search.
  1428. -gc Search in the Active Directory global catalog.
  1429. -limit <NumObjects>
  1430. Specifies the number of objects matching the given
  1431. criteria to be returned,
  1432. where <NumObjects> is the number of objects
  1433. to be returned. If the value of <NumObjects> is 0, all
  1434. matching objects are returned. If this parameter is not
  1435. specified, by default the first 100 results are
  1436. displayed.
  1437. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  1438. formatted in Unicode.
  1439. -uco Specifies that output to pipe or file is
  1440. formatted in Unicode.
  1441. -uci Specifies that input from pipe or file is
  1442. formatted in Unicode.
  1443. .
  1444. MessageId=70
  1445. SymbolicName=USAGE_DSQUERY_CONTACT_REMARKS
  1446. Language=English
  1447. Remarks:
  1448. The dsquery commands help you find objects in the directory that match
  1449. a specified search criterion: the input to dsquery is a search criteria
  1450. and the output is a list of objects matching the search. To get the
  1451. properties of a specific object, use the dsget commands (dsget /?).
  1452. If a value that you supply contains spaces, use quotation marks
  1453. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  1454. If you enter multiple values, the values must be separated by spaces
  1455. (for example, a list of distinguished names).
  1456. .
  1457. MessageId=71
  1458. SymbolicName=USAGE_DSQUERY_CONTACT_SEE_ALSO
  1459. Language=English
  1460. See also:
  1461. dsquery computer /? - help for finding computers in the directory.
  1462. dsquery contact /? - help for finding contacts in the directory.
  1463. dsquery subnet /? - help for finding subnets in the directory.
  1464. dsquery group /? - help for finding groups in the directory.
  1465. dsquery ou /? - help for finding organizational units in the directory.
  1466. dsquery site /? - help for finding sites in the directory.
  1467. dsquery server /? - help for finding servers in the directory.
  1468. dsquery user /? - help for finding users in the directory.
  1469. dsquery quota /? - help for finding quotas in the directory.
  1470. dsquery partition /? - help for finding partitions in the directory.
  1471. dsquery * /? - help for finding any object in the directory by using a
  1472. generic LDAP query.
  1473. Directory Service command-line tools help:
  1474. dsadd /? - help for adding objects.
  1475. dsget /? - help for displaying objects.
  1476. dsmod /? - help for modifying objects.
  1477. dsmove /? - help for moving objects.
  1478. dsquery /? - help for finding objects matching search criteria.
  1479. dsrm /? - help for deleting objects.
  1480. .
  1481. MessageId=72
  1482. SymbolicName=USAGE_DSQUERY_QUOTA_DESCRIPTION
  1483. Language=English
  1484. Quota specifications in the directory that match the specified search
  1485. criteria. A quota specification determines the maximum number of directory objects a
  1486. given security principal can own in a specific directory partition. If the
  1487. predefined search criteria in this command is insufficient, then use the more
  1488. general version of the query command, dsquery *.
  1489. .
  1490. MessageId=73
  1491. SymbolicName=USAGE_DSQUERY_QUOTA_SYNTAX
  1492. Language=English
  1493. dsquery quota startnode {domain root | <ObjectDN>} [-o {dn | rdn}]
  1494. [-acct <Name>] [-qlimit <Filter>] [-desc <Description>]
  1495. [{-s <Server> | -d <Domain>}] [-u <UserName>] [-p {<Password> | *}] [-q] [-r]
  1496. [-limit <NumberOfObjects>] [{-uc | -uco | -uci}]
  1497. .
  1498. MessageId=74
  1499. SymbolicName=USAGE_DSQUERY_QUOTA_PARAMETERS
  1500. Language=English
  1501. startnode {domain root | <ObjectDN>}
  1502. Required. Specifies where the search should begin.
  1503. Use ObjectDN to specify the distinguished name (also
  1504. known as DN), or use domainroot to specify the root
  1505. of the current domain.
  1506. -o {dn | rdn} Specifies the output format. The default format is
  1507. distinguished name (dn).
  1508. -acct <Name> Finds the quota specifications assigned to the
  1509. security principal (user, group, computer, or
  1510. InetOrgPerson) as represented by Name. The -acct
  1511. option can be provided in the form of the
  1512. distinguished name of the security principal or the
  1513. Domain\SAMAccountName of the security principal.
  1514. -qlimit <Filter> Finds the quota specifications whose limit matches
  1515. Filter.
  1516. -desc <Description> Searches for quota specifications that have a
  1517. description attribute that matches Description
  1518. (for example, "jon*" or "*ith" or "j*th").
  1519. {-s <Server> | -d <Domain>}
  1520. Connects to a specified remote server or domain. By
  1521. default, the computer is connected to a domain
  1522. controller in the logon domain.
  1523. -u <UserName> Specifies the user name with which the user logs on
  1524. to a remote server. By default, -u uses the user name
  1525. with which the user logged on. You can use any of the
  1526. following formats to specify a user name:
  1527. user name (for example, Linda)
  1528. domain\user name (for example, widgets\Linda)
  1529. user principal name (UPN)
  1530. (for example, Linda@widgets.microsoft.com)
  1531. -p {<Password> | *} Specifies to use either a password or a * to log on
  1532. to a remote server. If you type *, you are prompted
  1533. for a password.
  1534. -q Suppresses all output to standard output (quiet
  1535. mode).
  1536. -r Specifies that the search use recursion or follow
  1537. referrals during search. By default, the search does
  1538. not follow referrals.
  1539. -limit <NumberOfObjects>
  1540. Specifies the number of objects that match the given
  1541. criteria to be returned. If the value of
  1542. NumberOfObjects is 0, all matching objects are
  1543. returned. If this parameter is not specified, the
  1544. first 100 results are displayed by default.
  1545. {-uc | -uco | -uci} Specifies that output or input data is formatted in
  1546. Unicode, as follows:
  1547. -uc Specifies a Unicode format for input from or
  1548. output to a pipe (|).
  1549. -uco Specifies a Unicode format for output to a
  1550. pipe (|) or a file.
  1551. -uci Specifies a Unicode format for input from a
  1552. pipe (|) or a file.
  1553. .
  1554. MessageId=75
  1555. SymbolicName=USAGE_DSQUERY_QUOTA_REMARKS
  1556. Language=English
  1557. The results from a dsquery search can be piped as input to one of the other
  1558. directory service command-line tools, such as dsget, dsmod, dsmove, dsrm, or
  1559. to an additional dsquery search.
  1560. If a value that you use contains spaces, use quotation marks around the text
  1561. (for example, "CN=Linda,CN=Users,DC=Microsoft,DC=Com").
  1562. If you use multiple values for a parameter, use spaces to separate the values
  1563. (for example, a list of distinguished names).
  1564. If you do not specify any search filter options (that is, -forest, -domain,
  1565. -site, -name, -desc, -hasfsmo, -isgc), the default search criterion is to
  1566. find all servers in the current domain, as represented by an appropriate LDAP
  1567. search filter.
  1568. When you specify values for Description, you can use the wildcard
  1569. character (*) (for example, "NA*," "*BR," and "NA*BA").
  1570. Any value for Filter that you specify with qlimit is read as a string.
  1571. You must always use quotation marks around this parameter. Any value ranges
  1572. you specify using <=, =, or >= must also be inside quotation marks
  1573. (for example, -qlimit "=100", -qlimit "<=99", -qlimit ">=101").
  1574. To find quotas with no limit, use "-1". To find all quotas not equal
  1575. to unlimited, use ">=-1".
  1576. .
  1577. MessageId=76
  1578. SymbolicName=USAGE_DSQUERY_QUOTA_EXAMPLES
  1579. Language=English
  1580. To list all of the quota specifications in the current domain, type:
  1581. type:
  1582. dsquery quota domainroot
  1583. To list all users whose name begins with "Jon" that have quotas
  1584. assigned to them, type:
  1585. dsquery user -name jon* | dsquery quota domainroot -acct |
  1586. dsget quota -acct
  1587. .
  1588. MessageId=77
  1589. SymbolicName=USAGE_DSQUERY_QUOTA_SEE_ALSO
  1590. Language=English
  1591. See also:
  1592. dsquery computer /? - help for finding computers in the directory.
  1593. dsquery contact /? - help for finding contacts in the directory.
  1594. dsquery subnet /? - help for finding subnets in the directory.
  1595. dsquery group /? - help for finding groups in the directory.
  1596. dsquery ou /? - help for finding organizational units in the directory.
  1597. dsquery site /? - help for finding sites in the directory.
  1598. dsquery server /? - help for finding servers in the directory.
  1599. dsquery user /? - help for finding users in the directory.
  1600. dsquery quota /? - help for finding quotas in the directory.
  1601. dsquery partition /? - help for finding partitions in the directory.
  1602. dsquery * /? - help for finding any object in the directory by using a
  1603. generic LDAP query.
  1604. Directory Service command-line tools help:
  1605. dsadd /? - help for adding objects.
  1606. dsget /? - help for displaying objects.
  1607. dsmod /? - help for modifying objects.
  1608. dsmove /? - help for moving objects.
  1609. dsquery /? - help for finding objects matching search criteria.
  1610. dsrm /? - help for deleting objects.
  1611. .
  1612. MessageId=78
  1613. SymbolicName=USAGE_DSQUERY_PARTITION_DESCRIPTION
  1614. Language=English
  1615. Finds partition objects in the directory that match the specified search
  1616. criteria. If the predefined search criteria in this command is
  1617. insufficient, then use the more general version of the query command,
  1618. dsquery *.
  1619. .
  1620. MessageId=79
  1621. SymbolicName=USAGE_DSQUERY_PARTITION_SYNTAX
  1622. Language=English
  1623. dsquery partition [-o {dn | rdn}] [-part <Filter>] [-desc <Description>]
  1624. [{-s <Server> | -d <Domain>}] [-u <UserName>] [-p {<Password> | *}]
  1625. [-q] [-r] [-limit <NumberOfObjects>] [{-uc | -uco | -uci}]
  1626. .
  1627. MessageId=80
  1628. SymbolicName=USAGE_DSQUERY_PARTITION_PARAMETERS
  1629. Language=English
  1630. -o {dn | rdn} Specifies the output format. The default format is
  1631. distinguished name (dn).
  1632. -part <Filter> Finds partition specifications whose common name (CN)
  1633. matches the filter given by Filter.
  1634. {-s <Server> | -d <Domain>}
  1635. Connects to a specified remote server or domain. By
  1636. default, the computer is connected to a domain
  1637. controller in the logon domain.
  1638. -u <UserName> Specifies the user name with which the user logs on
  1639. to a remote server. By default, -u uses the user name
  1640. with which the user logged on. You can use any of the
  1641. following formats to specify a user name:
  1642. user name (for example, Linda)
  1643. domain\user name (for example, widgets\Linda)
  1644. user principal name (UPN)
  1645. (for example, Linda@widgets.microsoft.com)
  1646. -p {<Password> | *} Specifies to use either a password or a * to log on
  1647. to a remote server. If you type *, you are prompted
  1648. for a password.
  1649. -q Suppresses all output to standard output (quiet
  1650. mode).
  1651. -r Specifies that the search use recursion or follow
  1652. referrals during search. By default, the search does
  1653. not follow referrals.
  1654. -limit <NumberOfObjects>
  1655. Specifies the number of objects that match the given
  1656. criteria to be returned. If the value of
  1657. NumberOfObjects is 0, all matching objects are
  1658. returned. If this parameter is not specified, the
  1659. first 100 results are displayed by default.
  1660. {-uc | -uco | -uci} Specifies that output or input data is formatted in
  1661. Unicode, as follows:
  1662. -uc Specifies a Unicode format for input from or
  1663. output to a pipe (|).
  1664. -uco Specifies a Unicode format for output to a
  1665. pipe (|) or a file.
  1666. -uci Specifies a Unicode format for input from a
  1667. pipe (|) or a file.
  1668. .
  1669. MessageId=81
  1670. SymbolicName=USAGE_DSQUERY_PARTITION_REMARKS
  1671. Language=English
  1672. The results from a dsquery search can be piped as input to one of the other
  1673. directory service command-line tools, such as dsget, dsmod, dsmove, dsrm, or
  1674. to an additional dsquery search.
  1675. If a value that you use contains spaces, use quotation marks around the text
  1676. (for example, "CN=Linda,CN=Users,DC=Microsoft,DC=Com").
  1677. If you use multiple values for a parameter, use spaces to separate the values
  1678. (for example, a list of distinguished names).
  1679. If you do not specify any search filter options (that is, -forest, -domain,
  1680. -site, -name, -desc, -hasfsmo, -isgc), the default search criterion is to
  1681. find all servers in the current domain, as represented by an appropriate LDAP
  1682. search filter.
  1683. When you specify values for Description, you can use the wildcard character
  1684. (*) (for example, "NA*," "*BR," and "NA*BA").
  1685. .
  1686. MessageId=82
  1687. SymbolicName=USAGE_DSQUERY_PARTITION_EXAMPLES
  1688. Language=English
  1689. To list the DNs of all directory partitions in the forest, type:
  1690. dsquery partition
  1691. To list the DNs of all directory partitions in the forest whose common names
  1692. start with SQL, type:
  1693. dsquery partition -part SQL*
  1694. .
  1695. MessageId=83
  1696. SymbolicName=USAGE_DSQUERY_PARTITION_SEE_ALSO
  1697. Language=English
  1698. See also:
  1699. dsquery computer /? - help for finding computers in the directory.
  1700. dsquery contact /? - help for finding contacts in the directory.
  1701. dsquery subnet /? - help for finding subnets in the directory.
  1702. dsquery group /? - help for finding groups in the directory.
  1703. dsquery ou /? - help for finding organizational units in the directory.
  1704. dsquery site /? - help for finding sites in the directory.
  1705. dsquery server /? - help for finding servers in the directory.
  1706. dsquery user /? - help for finding users in the directory.
  1707. dsquery quota /? - help for finding quotas in the directory.
  1708. dsquery partition /? - help for finding partitions in the directory.
  1709. dsquery * /? - help for finding any object in the directory by using a
  1710. generic LDAP query.
  1711. Directory Service command-line tools help:
  1712. dsadd /? - help for adding objects.
  1713. dsget /? - help for displaying objects.
  1714. dsmod /? - help for modifying objects.
  1715. dsmove /? - help for moving objects.
  1716. dsquery /? - help for finding objects matching search criteria.
  1717. dsrm /? - help for deleting objects.
  1718. .