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.

551 lines
32 KiB

  1. ********** dsadd usage **********
  2. ********** dsadd -h usage **********
  3. ********** dsadd ou -h **********
  4. Description: dsadd ou adds an organizational unit to the directory
  5. Syntax: dsadd ou OBJECTDN [-desc DESCRIPTION]
  6. Parameters:
  7. Value Description
  8. OBJECTDN DN of the OU to add
  9. -desc DESCRIPTION Set the OU description to DESCRIPTION
  10. ********** dsadd group -h **********
  11. Description: dsadd group adds a group to the directory
  12. Syntax: dsadd group OBJECTDN [-secgrp yes|no]
  13. [-scope l|g|u] [-samid SAMNAME] [-desc DESCRIPTION]
  14. [-memberof GROUP;...] [-members MEMBER;...]
  15. Parameters:
  16. Value Description
  17. OBJECTDN DN of group to add
  18. -secgrp yes|no This group is a security grp or not [Default: yes]
  19. -scope l|g|u Scope of this group: local, global or universal
  20. [Default: global]
  21. -samid SAMNAME Set the SAM account name of group to SAMNAME
  22. -desc DESCRIPTION Set group description to DESCRIPTION
  23. -memberof GROUP;... Make group a member of one or more groups GROUP;...
  24. -members MEMBER;... Add one or more members MEMBER;... to this group
  25. ********** dsadd user -h **********
  26. Description: dsadd user will add a user to the directory
  27. Syntax: dsadd user OBJECTDN -samid SAMNAME [-upn UPN]
  28. [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME]
  29. [-display DISPLAYNAME] [-empid EMPLOYEEID]
  30. [-pwd {PASSWORD|*}] [-desc DESCRIPTION] [-memberof GROUP;...]
  31. [-office OFFICE] [-tel PHONE#] [-email EMAIL]
  32. [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#]
  33. [-fax FAX#] [-iptel IPPHONE#] [-webpg WEBPAGE]
  34. [-title TITLE] [-dept DEPARTMENT] [-company COMPANY]
  35. [-mgr MANAGER] [-hmdir HOMEDIR] [-hmdrv DRIVELTR:]
  36. [-profile PROFILEPATH] [-loscr SCRIPTPATH]
  37. [-mustchpwd yes|no] [-canchpwd yes|no] [-reversiblepwd yes|no]
  38. [-pwdneverexpires yes|no] [-acctexpires NUMDAYS]
  39. [-disabled yes|no]
  40. Parameters:
  41. Value Description
  42. OBJECTDN DN of user to add
  43. -samid SAMNAME Set the SAM account name of user to SAMNAME
  44. -upn UPN Set the upn value to UPN
  45. -fn FIRSTNAME Set user first name to FIRSTNAME
  46. -mi INITIAL Set user middle initial to INITIAL
  47. -ln LASTNAME Set user last name to LASTNAME
  48. -display DISPLAYNAME Set user display name to DISPLAYNAME
  49. -empid EMPLOYEEID Set user employee ID to EMPLOYEEID
  50. -pwd PASSWORD | * Set user password to PASSWORD [if *, then prompt
  51. for password]
  52. -desc DESCRIPTION Set user description to DESCRIPTION
  53. -memberof GROUP;... Make user a member of one or more groups GROUP;...
  54. -office OFFICE Set user office location to OFFICE
  55. -tel PHONE# Set user telephone# to PHONE#
  56. -email EMAIL Set user e-mail address to EMAIL
  57. -hometel HOMEPHONE# Set user home phone# to HOMEPHONE#
  58. -pager PAGER# Set user pager# to PAGER#
  59. -mobile CELLPHONE# Set user mobile# to CELLPHONE#
  60. -fax FAX# Set user fax# to FAX#
  61. -iptel IPPHONE# Set user IP phone# to IPPHONE#
  62. -webpg WEBPAGE Set user web page URL to WEBPAGE
  63. -title TITLE Set user title to TITLE
  64. -dept DEPARTMENT Set user department to DEPARTMENT
  65. -company COMPANY Set user company info to COMPANY
  66. -mgr MANAGER Set user's manager to MANAGER
  67. -hmdir HOMEDIR Set user home directory to HOMEDIR (if this is
  68. UNC path, then a drive letter to be mapped to
  69. this path must also be specified through -hmdrv)
  70. -hmdrv DRIVELTR: Set user home drive letter to DRIVELTR:
  71. -profile PROFILEPATH Set user's profile path to PROFILEPATH
  72. -loscr SCRIPTPATH Set user's logon script path to SCRIPTPATH
  73. -mustchpwd yes|no User must change password at next logon or not
  74. [Default: no]
  75. -canchpwd yes|no User can change password or not (this should be
  76. "yes" if the -mustchpwd is "yes") [Default: yes]
  77. -reversiblepwd yes|no Store user password using reversible encryption or
  78. not [Default: no]
  79. -pwdneverexpires yes|no User password never expires or not [Default: no]
  80. -acctexpires NUMDAYS Set user account to expire in NUMDAYS days from
  81. today [a value of 0 implies account never expires]
  82. -disabled yes|no User account is disabled or not [Default: no]
  83. ********** dsadd computer -h **********
  84. Description: dsadd computer will add a computer to the directory
  85. Syntax: dsadd computer OBJECTDN [-samid SAMNAME] [-desc DESCRIPTION]
  86. [-loc LOCATION] [-memberof GROUP;...]
  87. Parameters:
  88. Value Description
  89. OBJECTDN DN of computer to add
  90. -samid SAMNAME Set the computer SAM account name to SAMNAME
  91. -desc DESCRIPTION Set the computer description to DESCRIPTION
  92. -loc LOCATION Set the computer location to LOCATION
  93. -memberof GROUP;... Make computer a member of one or more groups
  94. given by the list GROUP;...
  95. ********** dsadd contact -h **********
  96. Description: dsadd contact adds a contact to the directory
  97. Syntax: dsadd contact OBJECTDN [-fn FIRSTNAME]
  98. [-mi INITIAL] [-ln LASTNAME] [-display DISPLAYNAME]
  99. [-desc DESCRIPTION]
  100. [-office OFFICE] [-tel PHONE#] [-email EMAIL]
  101. [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#]
  102. [-fax FAX#] [-iptel IPPHONE#]
  103. [-title TITLE] [-dept DEPARTMENT] [-company COMPANY]
  104. Parameters:
  105. Value Description
  106. OBJECTDN DN of contact to add
  107. -fn FIRSTNAME Set contact first name to FIRSTNAME
  108. -mi INITIAL Set contact middle initial to INITIAL
  109. -ln LASTNAME Set contact last name to LASTNAME
  110. -display DISPLAYNAME Set contact display name to DISPLAYNAME
  111. -desc DESCRIPTION Set contact description to DESCRIPTION
  112. -office OFFICE Set contact office location to OFFICE
  113. -tel PHONE# Set contact telephone# to PHONE#
  114. -email EMAIL Set contact e-mail address to EMAIL
  115. -hometel HOMEPHONE# Set contact home phone# to HOMEPHONE#
  116. -pager PAGER# Set contact pager# to PAGER#
  117. -mobile CELLPHONE# Set contact mobile# to CELLPHONE#
  118. -fax FAX# Set contact fax# to FAX#
  119. -title TITLE Set contact title to TITLE
  120. -dept DEPARTMENT Set contact department to DEPARTMENT
  121. -company COMPANY Set contact company info to COMPANY
  122. ********** Adding OUs **********
  123. dsadd succeeded:OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  124. dsadd succeeded:OU=bTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  125. ********** Adding groups **********
  126. dsadd succeeded:CN=aGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  127. dsadd succeeded:CN=bGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  128. dsadd succeeded:CN=cGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  129. dsadd succeeded:CN=dGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  130. dsadd succeeded:CN=eGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  131. dsadd succeeded:CN=fGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  132. dsadd succeeded:CN=gGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  133. dsadd succeeded:CN=hGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  134. dsadd succeeded:CN=iGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  135. dsadd succeeded:CN=jGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  136. dsadd succeeded:CN=kGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  137. dsadd succeeded:CN=lGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  138. dsadd succeeded:CN=mGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  139. dsadd succeeded:CN=nGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  140. dsadd succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  141. dsadd succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  142. dsadd succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  143. dsadd succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  144. dsadd succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  145. dsadd succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  146. dsadd succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  147. dsadd succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  148. dsadd succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  149. dsadd succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  150. dsadd succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  151. dsadd succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  152. dsadd succeeded:CN=LocalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  153. dsadd succeeded:CN=GlobalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  154. dsadd succeeded:CN=UniSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  155. dsadd succeeded:CN=LocalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  156. dsadd succeeded:CN=GlobalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  157. dsadd succeeded:CN=UniDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  158. dsadd succeeded:CN=LocalSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  159. dsadd succeeded:CN=GlobalSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  160. dsadd succeeded:CN=UniSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  161. dsadd succeeded:CN=LocalDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  162. dsadd succeeded:CN=GlobalDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  163. dsadd succeeded:CN=UniDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  164. dsadd succeeded:CN=LocalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  165. dsadd succeeded:CN=GlobalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  166. dsadd succeeded:CN=UniSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  167. dsadd succeeded:CN=LocalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  168. dsadd succeeded:CN=GlobalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  169. dsadd succeeded:CN=UniDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  170. dsadd succeeded:CN=LocalSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  171. dsadd succeeded:CN=GlobalSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  172. dsadd succeeded:CN=UniSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  173. dsadd succeeded:CN=LocalDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  174. dsadd succeeded:CN=GlobalDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  175. dsadd succeeded:CN=UniDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  176. dsadd succeeded:CN=LocalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  177. dsadd succeeded:CN=GlobalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  178. dsadd succeeded:CN=UniSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  179. dsadd succeeded:CN=LocalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  180. dsadd succeeded:CN=GlobalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  181. dsadd succeeded:CN=UniDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  182. ********** Adding users **********
  183. dsadd succeeded:CN=aUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  184. dsadd succeeded:CN=bUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  185. dsadd succeeded:CN=cUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  186. dsadd succeeded:CN=dUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  187. dsadd succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  188. ********** Adding users in groups **********
  189. dsadd succeeded:CN=fUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  190. dsadd succeeded:CN=gUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  191. dsadd succeeded:CN=hUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  192. dsadd succeeded:CN=iUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  193. dsadd succeeded:CN=jUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  194. dsadd succeeded:CN=kUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  195. dsadd succeeded:CN=lUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  196. dsadd succeeded:CN=mUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  197. dsadd succeeded:CN=nUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  198. ********** Adding groups in groups **********
  199. dsadd succeeded:CN=oGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  200. dsadd succeeded:CN=pGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  201. dsadd succeeded:CN=qGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  202. dsadd succeeded:CN=rGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  203. dsadd succeeded:CN=sGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  204. dsadd succeeded:CN=tGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  205. dsadd succeeded:CN=uGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  206. dsadd succeeded:CN=vGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  207. dsadd succeeded:CN=wGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  208. dsadd succeeded:CN=xGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  209. dsadd succeeded:CN=yGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  210. dsadd succeeded:CN=zGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  211. ********** Adding computers **********
  212. dsadd succeeded:CN=aComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  213. dsadd succeeded:CN=bComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  214. dsadd succeeded:CN=cComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  215. dsadd succeeded:CN=dComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  216. dsadd succeeded:CN=eComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  217. dsadd succeeded:CN=fComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  218. dsadd succeeded:CN=gComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  219. dsadd succeeded:CN=hComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  220. dsadd succeeded:CN=iComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  221. dsadd succeeded:CN=jComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  222. dsadd succeeded:CN=kComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  223. ********** Adding groups with members **********
  224. dsadd succeeded:CN=aaGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  225. dsadd succeeded:CN=bbGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  226. dsadd succeeded:CN=ccGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  227. dsadd succeeded:CN=ddGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  228. dsadd succeeded:CN=eeGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  229. dsadd succeeded:CN=ffGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  230. dsadd succeeded:CN=ggGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  231. dsadd succeeded:CN=hhGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  232. dsadd succeeded:CN=iiGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  233. dsadd succeeded:CN=jjGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  234. dsadd succeeded:CN=kkGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  235. dsadd succeeded:CN=llGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  236. dsadd succeeded:CN=mmGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  237. ********** Adding contacts **********
  238. dsadd succeeded:CN=aCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  239. dsadd succeeded:CN=bCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  240. dsadd succeeded:CN=cCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  241. dsadd succeeded:CN=dCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  242. dsadd succeeded:CN=eCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  243. dsadd succeeded:CN=fCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  244. ********** Expected Group MemberOf Failures **********
  245. ********** Expected Group Member Failures **********
  246. ********** Expected Duplicate Failures **********
  247. ******** Quite execution - If you see anything after this its a bug!!! ********
  248. ********** dsmod usage **********
  249. ********** dsmod -h **********
  250. ********** dsmod ou **********
  251. ********** dsmod ou -h **********
  252. Description: dsmod ou will modify an existing organizational unit in the
  253. directory
  254. Syntax: dsmod ou {<NAME > | <OBJECTDN ...>}
  255. [-name NEWNAME] [-desc DESCRIPTION]
  256. Parameters:
  257. Value Description
  258. NAME Common name of one or more OUs to modify
  259. OBJECTDN ... DNs of one or more OUs to modify
  260. -name NEWNAME Rename the OU to NEWNAME
  261. -desc DESCRIPTION Set OU description to DESCRIPTION
  262. ********** dsmod group **********
  263. ********** dsmod group -h **********
  264. Description: dsmod group modifies an existing group in the directory
  265. Syntax: dsmod group <OBJECTDN ......>
  266. [-samid SAMNAME] [-desc DESCRIPTION]
  267. [-secgrp yes|no] [-scope l|g|u]
  268. dsmod group {-addmbr|-rmmbr|-chmbr}
  269. OBJECTDN ...<MEMBER ...>
  270. Parameters:
  271. Value Description
  272. NAME Common name of one or more groups to modify
  273. OBJECTDN ...... DNs of one or more groups to modify
  274. -name NEWNAME Rename the group to NEWNAME
  275. -samname SAMNAME Set the SAM account name of group to SAMNAME
  276. -desc DESCRIPTION Set group description to DESCRIPTION
  277. -secgrp yes|no Set the group type to security or non-security
  278. -scope l|g|u Set the scope of group to local/global/universal
  279. -memberof GROUP; Make group a member of one or more groups GROUP;
  280. ********** dsmod user **********
  281. ********** dsmod user -h **********
  282. Description: dsmod user will modify an existing user in the directory
  283. Syntax: dsmod user {<NAME > | <OBJECTDN ...>}
  284. [-name NEWNAME]
  285. [-upn UPN] [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME]
  286. [-display DISPLAYNAME] [-pwd PASSWORD] [-desc DESCRIPTION]
  287. [-office OFFICE] [-tel PHONE#] [-email EMAIL]
  288. [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#]
  289. [-fax FAX#] [-iptel IPPHONE#]
  290. [-title TITLE] [-dept DEPARTMENT] [-company COMPANY]
  291. [-mustchpwd yes|no] [-canchpwd yes|no] [-pwdneverexpires
  292. yes|no] [-acctexpires NUMDAYS] [-disabled yes|no]
  293. Parameters:
  294. Value Description
  295. NAME Common name of one or more users to modify
  296. OBJECTDN ... DNs of one or more users to modify
  297. -name NEWNAME Rename the user to NEWNAME
  298. -upn UPN Set the upn value to UPN
  299. -fn FIRSTNAME Set user first name to FIRSTNAME
  300. -mi INITIAL Set user middle initial to INITIAL
  301. -ln LASTNAME Set user last name to LASTNAME
  302. -display DISPLAYNAME Set user display name to DISPLAYNAME
  303. -pwd PASSWORD Reset user password to PASSWORD
  304. -desc DESCRIPTION Set user description to DESCRIPTION
  305. -office OFFICE Set user office location to OFFICE
  306. -tel PHONE# Set user telephone# to PHONE#
  307. -email EMAIL Set user e-mail address to EMAIL
  308. -hometel HOMEPHONE# Set user home phone# to HOMEPHONE#
  309. -pager PAGER# Set user pager# to PAGER#
  310. -mobile CELLPHONE# Set user mobile# to CELLPHONE#
  311. -fax FAX# Set user fax# to FAX#
  312. -title TITLE Set user title to TITLE
  313. -dept DEPARTMENT Set user department to DEPARTMENT
  314. -company COMPANY Set user company info to COMPANY
  315. -mustchpwd yes|no Set if user must change password at next logon
  316. -canchpwd yes|no Set if user can change password or not
  317. -pwdneverexpires yes|no Set if user password never expires or not
  318. -acctexpires NUMDAYS Set user account to expire in NUMDAYS days from
  319. today [a value of 0 implies account never expires]
  320. -disabled yes|no Set if user account is disabled or not
  321. Examples:
  322. Resetting a user password can be accomplished by running
  323. dsmod user USERDN -pwd NEW_PASSWORD -mustchpwd yes
  324. Passwords of multiple users can be reset at the same time to a common password
  325. forcing them to change their password the next time they logon by running
  326. dsmod user USERDN1 USERDN2 USERDN3 -pwd NEW_PASSWORD -mustchpwd yes
  327. Disabling multiple user accounts at the same time can be accomplished by running
  328. dsmod user USERDN1 USERDN2 USERDN3 -disabled yes
  329. ********** dsmod computer **********
  330. ********** dsmod computer -h **********
  331. Description: dsmod computer will modify an existing computer in the directory
  332. Syntax: dsmod computer {<NAME > | <OBJECTDN ...>}
  333. [-name NEWNAME]
  334. [-desc DESCRIPTION] [-disabled yes|no] [-reset]
  335. Parameters:
  336. Value Description
  337. NAME Common name of one or more computers to modify
  338. OBJECTDN ... DNs of one or more computers to modify
  339. -name NEWNAME Rename the computer to NEWNAME
  340. -desc DESCRIPTION Set computer description to DESCRIPTION
  341. -disabled yes|no Set if computer account is disabled or not
  342. -reset Reset computer account
  343. Examples:
  344. Disabling (or reseting) multiple computer accounts at the same time can be
  345. accomplished by running
  346. dsmod computer DN1 DN2 DN3 -disabled yes
  347. dsmod computer DN1 DN2 DN3 -reset
  348. ********** dsmod contact**********
  349. ********** dsmod contact -h **********
  350. Description: dsmod contact will modify an existing contact in the directory
  351. Syntax: dsmod contact {<NAME > | <OBJECTDN ...>}
  352. [-name NEWNAME]
  353. [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME]
  354. [-full FULLNAME] [-desc DESCRIPTION]
  355. [-office OFFICE] [-tel PHONE#] [-email EMAIL]
  356. [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#]
  357. [-fax FAX#] [-iptel IPPHONE#]
  358. [-title TITLE] [-dept DEPARTMENT] [-company COMPANY]
  359. Parameters:
  360. Value Description
  361. NAME Common name of one or more contacts to modify
  362. OBJECTDN ... DNs of one or more contacts to modify
  363. -name NEWNAME Rename the contact to NEWNAME
  364. -fn FIRSTNAME Set contact first name to FIRSTNAME
  365. -mi INITIAL Set contact middle initial to INITIAL
  366. -ln LASTNAME Set contact last name to LASTNAME
  367. -full FULLNAME Set contact full name to FULLNAME
  368. -desc DESCRIPTION Set contact description to DESCRIPTION
  369. -office OFFICE Set contact office location to OFFICE
  370. -tel PHONE# Set contact telephone# to PHONE#
  371. -email EMAIL Set contact e-mail address to EMAIL
  372. -hometel HOMEPHONE# Set contact home phone# to HOMEPHONE#
  373. -pager PAGER# Set contact pager# to PAGER#
  374. -mobile CELLPHONE# Set contact mobile# to CELLPHONE#
  375. -fax FAX# Set contact fax# to FAX#
  376. -title TITLE Set contact title to TITLE
  377. -dept DEPARTMENT Set contact department to DEPARTMENT
  378. -company COMPANY Set contact company info to COMPANY
  379. ********** Modifying OUs **********
  380. dsmod succeeded:OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  381. ********** Modifying groups types **********
  382. dsmod succeeded:CN=LocalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  383. dsmod succeeded:CN=LocalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  384. dsmod succeeded:CN=LocalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  385. dsmod succeeded:CN=GlobalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  386. dsmod succeeded:CN=GlobalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  387. dsmod succeeded:CN=GlobalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  388. dsmod succeeded:CN=UniSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  389. dsmod succeeded:CN=UniSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  390. dsmod succeeded:CN=UniSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  391. dsmod succeeded:CN=UniSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  392. dsmod succeeded:CN=UniSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  393. dsmod succeeded:CN=LocalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  394. dsmod succeeded:CN=LocalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  395. dsmod succeeded:CN=LocalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  396. dsmod succeeded:CN=GlobalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  397. dsmod succeeded:CN=GlobalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  398. dsmod succeeded:CN=GlobalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  399. dsmod succeeded:CN=UniDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  400. dsmod succeeded:CN=UniDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  401. dsmod succeeded:CN=UniDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  402. dsmod succeeded:CN=UniDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  403. dsmod succeeded:CN=UniDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  404. ********** Expected group mod type failures **********
  405. ********** Expected group mod failures **********
  406. ********** Modifying users **********
  407. dsmod succeeded:CN=bUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  408. dsmod succeeded:CN=cUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  409. dsmod succeeded:CN=dUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  410. dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  411. dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  412. dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  413. dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  414. dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  415. ********** Expected user mod failures (usage shown) *********
  416. ********** Modifying user in group membership **********
  417. dsmod succeeded:CN=gGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  418. dsmod succeeded:CN=hGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  419. dsmod succeeded:CN=iGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  420. ********** Modifying group in group using -addmbr **********
  421. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  422. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  423. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  424. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  425. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  426. dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  427. dsmod succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  428. dsmod succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  429. dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  430. dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  431. dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  432. dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  433. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  434. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  435. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  436. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  437. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  438. dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  439. dsmod succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  440. dsmod succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  441. dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  442. dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  443. dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  444. dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  445. ********** Expected group -addmbr failures *********
  446. ********** Modifying group in group using -chmbr **********
  447. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  448. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  449. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  450. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  451. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  452. dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  453. dsmod succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  454. dsmod succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  455. dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  456. dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  457. dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  458. dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  459. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  460. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  461. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  462. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  463. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  464. dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  465. dsmod succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  466. dsmod succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  467. dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  468. dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  469. dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  470. dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  471. ********** Expected group -chmbr failures *********
  472. ********** Modifying computers **********
  473. dsmod succeeded:CN=bComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  474. dsmod succeeded:CN=cComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  475. dsmod succeeded:CN=dComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  476. dsmod succeeded:CN=eComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  477. dsmod succeeded:CN=fComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  478. dsmod succeeded:CN=gComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  479. dsmod succeeded:CN=hComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  480. dsmod succeeded:CN=iComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  481. ********** Modifying contacts **********
  482. dsmod succeeded:CN=aCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  483. dsmod succeeded:CN=bCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  484. dsmod succeeded:CN=cCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  485. dsmod succeeded:CN=dCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  486. dsmod succeeded:CN=eCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  487. dsmod succeeded:CN=fCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
  488. ******** Quite execution - If you see anything after this its a bug!!! ********