|
|
********** dsadd usage **********
********** dsadd -h usage **********
********** dsadd ou -h ********** Description: dsadd ou adds an organizational unit to the directory Syntax: dsadd ou OBJECTDN [-desc DESCRIPTION] Parameters:
Value Description OBJECTDN DN of the OU to add -desc DESCRIPTION Set the OU description to DESCRIPTION
********** dsadd group -h ********** Description: dsadd group adds a group to the directory Syntax: dsadd group OBJECTDN [-secgrp yes|no] [-scope l|g|u] [-samid SAMNAME] [-desc DESCRIPTION] [-memberof GROUP;...] [-members MEMBER;...] Parameters:
Value Description OBJECTDN DN of group to add -secgrp yes|no This group is a security grp or not [Default: yes] -scope l|g|u Scope of this group: local, global or universal [Default: global] -samid SAMNAME Set the SAM account name of group to SAMNAME -desc DESCRIPTION Set group description to DESCRIPTION -memberof GROUP;... Make group a member of one or more groups GROUP;... -members MEMBER;... Add one or more members MEMBER;... to this group
********** dsadd user -h ********** Description: dsadd user will add a user to the directory Syntax: dsadd user OBJECTDN -samid SAMNAME [-upn UPN] [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME] [-display DISPLAYNAME] [-empid EMPLOYEEID] [-pwd {PASSWORD|*}] [-desc DESCRIPTION] [-memberof GROUP;...] [-office OFFICE] [-tel PHONE#] [-email EMAIL] [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#] [-fax FAX#] [-iptel IPPHONE#] [-webpg WEBPAGE] [-title TITLE] [-dept DEPARTMENT] [-company COMPANY] [-mgr MANAGER] [-hmdir HOMEDIR] [-hmdrv DRIVELTR:] [-profile PROFILEPATH] [-loscr SCRIPTPATH] [-mustchpwd yes|no] [-canchpwd yes|no] [-reversiblepwd yes|no] [-pwdneverexpires yes|no] [-acctexpires NUMDAYS] [-disabled yes|no] Parameters:
Value Description OBJECTDN DN of user to add -samid SAMNAME Set the SAM account name of user to SAMNAME -upn UPN Set the upn value to UPN -fn FIRSTNAME Set user first name to FIRSTNAME -mi INITIAL Set user middle initial to INITIAL -ln LASTNAME Set user last name to LASTNAME -display DISPLAYNAME Set user display name to DISPLAYNAME -empid EMPLOYEEID Set user employee ID to EMPLOYEEID -pwd PASSWORD | * Set user password to PASSWORD [if *, then prompt for password] -desc DESCRIPTION Set user description to DESCRIPTION -memberof GROUP;... Make user a member of one or more groups GROUP;... -office OFFICE Set user office location to OFFICE -tel PHONE# Set user telephone# to PHONE# -email EMAIL Set user e-mail address to EMAIL -hometel HOMEPHONE# Set user home phone# to HOMEPHONE# -pager PAGER# Set user pager# to PAGER# -mobile CELLPHONE# Set user mobile# to CELLPHONE# -fax FAX# Set user fax# to FAX# -iptel IPPHONE# Set user IP phone# to IPPHONE# -webpg WEBPAGE Set user web page URL to WEBPAGE -title TITLE Set user title to TITLE -dept DEPARTMENT Set user department to DEPARTMENT -company COMPANY Set user company info to COMPANY -mgr MANAGER Set user's manager to MANAGER -hmdir HOMEDIR Set user home directory to HOMEDIR (if this is UNC path, then a drive letter to be mapped to this path must also be specified through -hmdrv) -hmdrv DRIVELTR: Set user home drive letter to DRIVELTR: -profile PROFILEPATH Set user's profile path to PROFILEPATH -loscr SCRIPTPATH Set user's logon script path to SCRIPTPATH -mustchpwd yes|no User must change password at next logon or not [Default: no] -canchpwd yes|no User can change password or not (this should be "yes" if the -mustchpwd is "yes") [Default: yes] -reversiblepwd yes|no Store user password using reversible encryption or not [Default: no] -pwdneverexpires yes|no User password never expires or not [Default: no] -acctexpires NUMDAYS Set user account to expire in NUMDAYS days from today [a value of 0 implies account never expires] -disabled yes|no User account is disabled or not [Default: no]
********** dsadd computer -h ********** Description: dsadd computer will add a computer to the directory Syntax: dsadd computer OBJECTDN [-samid SAMNAME] [-desc DESCRIPTION] [-loc LOCATION] [-memberof GROUP;...] Parameters:
Value Description OBJECTDN DN of computer to add -samid SAMNAME Set the computer SAM account name to SAMNAME -desc DESCRIPTION Set the computer description to DESCRIPTION -loc LOCATION Set the computer location to LOCATION -memberof GROUP;... Make computer a member of one or more groups given by the list GROUP;...
********** dsadd contact -h ********** Description: dsadd contact adds a contact to the directory Syntax: dsadd contact OBJECTDN [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME] [-display DISPLAYNAME] [-desc DESCRIPTION] [-office OFFICE] [-tel PHONE#] [-email EMAIL] [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#] [-fax FAX#] [-iptel IPPHONE#] [-title TITLE] [-dept DEPARTMENT] [-company COMPANY] Parameters:
Value Description OBJECTDN DN of contact to add -fn FIRSTNAME Set contact first name to FIRSTNAME -mi INITIAL Set contact middle initial to INITIAL -ln LASTNAME Set contact last name to LASTNAME -display DISPLAYNAME Set contact display name to DISPLAYNAME -desc DESCRIPTION Set contact description to DESCRIPTION -office OFFICE Set contact office location to OFFICE -tel PHONE# Set contact telephone# to PHONE# -email EMAIL Set contact e-mail address to EMAIL -hometel HOMEPHONE# Set contact home phone# to HOMEPHONE# -pager PAGER# Set contact pager# to PAGER# -mobile CELLPHONE# Set contact mobile# to CELLPHONE# -fax FAX# Set contact fax# to FAX# -title TITLE Set contact title to TITLE -dept DEPARTMENT Set contact department to DEPARTMENT -company COMPANY Set contact company info to COMPANY
********** Adding OUs ********** dsadd succeeded:OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:OU=bTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding groups ********** dsadd succeeded:CN=aGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=bGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=cGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=dGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=eGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=fGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=gGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=hGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=iGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=jGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=kGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=lGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=mGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=nGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=LocalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=GlobalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=UniDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding users ********** dsadd succeeded:CN=aUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=bUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=cUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=dUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding users in groups ********** dsadd succeeded:CN=fUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=gUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=hUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=iUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=jUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=kUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=lUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=mUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=nUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding groups in groups ********** dsadd succeeded:CN=oGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=pGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=qGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=rGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=sGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=tGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=uGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=vGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=wGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=xGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=yGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=zGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding computers ********** dsadd succeeded:CN=aComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=bComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=cComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=dComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=eComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=fComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=gComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=hComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=iComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=jComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=kComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding groups with members ********** dsadd succeeded:CN=aaGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=bbGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=ccGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=ddGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=eeGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=ffGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=ggGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=hhGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=iiGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=jjGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=kkGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=llGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=mmGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Adding contacts ********** dsadd succeeded:CN=aCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=bCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=cCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=dCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=eCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsadd succeeded:CN=fCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Expected Group MemberOf Failures **********
********** Expected Group Member Failures **********
********** Expected Duplicate Failures ********** ******** Quite execution - If you see anything after this its a bug!!! ******** ********** dsmod usage **********
********** dsmod -h **********
********** dsmod ou **********
********** dsmod ou -h ********** Description: dsmod ou will modify an existing organizational unit in the directory Syntax: dsmod ou {<NAME > | <OBJECTDN ...>} [-name NEWNAME] [-desc DESCRIPTION] Parameters:
Value Description NAME Common name of one or more OUs to modify OBJECTDN ... DNs of one or more OUs to modify -name NEWNAME Rename the OU to NEWNAME -desc DESCRIPTION Set OU description to DESCRIPTION
********** dsmod group **********
********** dsmod group -h ********** Description: dsmod group modifies an existing group in the directory Syntax: dsmod group <OBJECTDN ......> [-samid SAMNAME] [-desc DESCRIPTION] [-secgrp yes|no] [-scope l|g|u] dsmod group {-addmbr|-rmmbr|-chmbr} OBJECTDN ...<MEMBER ...>
Parameters:
Value Description NAME Common name of one or more groups to modify OBJECTDN ...... DNs of one or more groups to modify -name NEWNAME Rename the group to NEWNAME -samname SAMNAME Set the SAM account name of group to SAMNAME -desc DESCRIPTION Set group description to DESCRIPTION -secgrp yes|no Set the group type to security or non-security -scope l|g|u Set the scope of group to local/global/universal -memberof GROUP; Make group a member of one or more groups GROUP;
********** dsmod user **********
********** dsmod user -h ********** Description: dsmod user will modify an existing user in the directory Syntax: dsmod user {<NAME > | <OBJECTDN ...>} [-name NEWNAME] [-upn UPN] [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME] [-display DISPLAYNAME] [-pwd PASSWORD] [-desc DESCRIPTION] [-office OFFICE] [-tel PHONE#] [-email EMAIL] [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#] [-fax FAX#] [-iptel IPPHONE#] [-title TITLE] [-dept DEPARTMENT] [-company COMPANY] [-mustchpwd yes|no] [-canchpwd yes|no] [-pwdneverexpires yes|no] [-acctexpires NUMDAYS] [-disabled yes|no] Parameters:
Value Description NAME Common name of one or more users to modify OBJECTDN ... DNs of one or more users to modify -name NEWNAME Rename the user to NEWNAME -upn UPN Set the upn value to UPN -fn FIRSTNAME Set user first name to FIRSTNAME -mi INITIAL Set user middle initial to INITIAL -ln LASTNAME Set user last name to LASTNAME -display DISPLAYNAME Set user display name to DISPLAYNAME -pwd PASSWORD Reset user password to PASSWORD -desc DESCRIPTION Set user description to DESCRIPTION -office OFFICE Set user office location to OFFICE -tel PHONE# Set user telephone# to PHONE# -email EMAIL Set user e-mail address to EMAIL -hometel HOMEPHONE# Set user home phone# to HOMEPHONE# -pager PAGER# Set user pager# to PAGER# -mobile CELLPHONE# Set user mobile# to CELLPHONE# -fax FAX# Set user fax# to FAX# -title TITLE Set user title to TITLE -dept DEPARTMENT Set user department to DEPARTMENT -company COMPANY Set user company info to COMPANY -mustchpwd yes|no Set if user must change password at next logon -canchpwd yes|no Set if user can change password or not -pwdneverexpires yes|no Set if user password never expires or not -acctexpires NUMDAYS Set user account to expire in NUMDAYS days from today [a value of 0 implies account never expires] -disabled yes|no Set if user account is disabled or not
Examples: Resetting a user password can be accomplished by running
dsmod user USERDN -pwd NEW_PASSWORD -mustchpwd yes
Passwords of multiple users can be reset at the same time to a common password forcing them to change their password the next time they logon by running
dsmod user USERDN1 USERDN2 USERDN3 -pwd NEW_PASSWORD -mustchpwd yes
Disabling multiple user accounts at the same time can be accomplished by running
dsmod user USERDN1 USERDN2 USERDN3 -disabled yes
********** dsmod computer **********
********** dsmod computer -h ********** Description: dsmod computer will modify an existing computer in the directory Syntax: dsmod computer {<NAME > | <OBJECTDN ...>} [-name NEWNAME] [-desc DESCRIPTION] [-disabled yes|no] [-reset] Parameters:
Value Description NAME Common name of one or more computers to modify OBJECTDN ... DNs of one or more computers to modify -name NEWNAME Rename the computer to NEWNAME -desc DESCRIPTION Set computer description to DESCRIPTION -disabled yes|no Set if computer account is disabled or not -reset Reset computer account
Examples: Disabling (or reseting) multiple computer accounts at the same time can be accomplished by running
dsmod computer DN1 DN2 DN3 -disabled yes dsmod computer DN1 DN2 DN3 -reset
********** dsmod contact**********
********** dsmod contact -h ********** Description: dsmod contact will modify an existing contact in the directory Syntax: dsmod contact {<NAME > | <OBJECTDN ...>} [-name NEWNAME] [-fn FIRSTNAME] [-mi INITIAL] [-ln LASTNAME] [-full FULLNAME] [-desc DESCRIPTION] [-office OFFICE] [-tel PHONE#] [-email EMAIL] [-hometel HOMEPHONE#] [-pager PAGER#] [-mobile CELLPHONE#] [-fax FAX#] [-iptel IPPHONE#] [-title TITLE] [-dept DEPARTMENT] [-company COMPANY] Parameters:
Value Description NAME Common name of one or more contacts to modify OBJECTDN ... DNs of one or more contacts to modify -name NEWNAME Rename the contact to NEWNAME -fn FIRSTNAME Set contact first name to FIRSTNAME -mi INITIAL Set contact middle initial to INITIAL -ln LASTNAME Set contact last name to LASTNAME -full FULLNAME Set contact full name to FULLNAME -desc DESCRIPTION Set contact description to DESCRIPTION -office OFFICE Set contact office location to OFFICE -tel PHONE# Set contact telephone# to PHONE# -email EMAIL Set contact e-mail address to EMAIL -hometel HOMEPHONE# Set contact home phone# to HOMEPHONE# -pager PAGER# Set contact pager# to PAGER# -mobile CELLPHONE# Set contact mobile# to CELLPHONE# -fax FAX# Set contact fax# to FAX# -title TITLE Set contact title to TITLE -dept DEPARTMENT Set contact department to DEPARTMENT -company COMPANY Set contact company info to COMPANY
********** Modifying OUs ********** dsmod succeeded:OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Modifying groups types ********** dsmod succeeded:CN=LocalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist3,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist4,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist5,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist6,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist7,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Expected group mod type failures **********
********** Expected group mod failures **********
********** Modifying users ********** dsmod succeeded:CN=bUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=cUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=dUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eUser,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Expected user mod failures (usage shown) *********
********** Modifying user in group membership ********** dsmod succeeded:CN=gGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=hGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=iGroup,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Modifying group in group using -addmbr ********** dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist1,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Expected group -addmbr failures *********
********** Modifying group in group using -chmbr ********** dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniSec2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=LocalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=GlobalDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=UniDist2,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Expected group -chmbr failures *********
********** Modifying computers ********** dsmod succeeded:CN=bComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=cComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=dComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=fComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=gComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=hComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=iComp,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com
********** Modifying contacts ********** dsmod succeeded:CN=aCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=bCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=cCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=dCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=eCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com dsmod succeeded:CN=fCont,OU=aTest,DC=jeffjontst,DC=nttest,DC=microsoft,DC=com ******** Quite execution - If you see anything after this its a bug!!! ********
|