In: Computer Science
You have created about 50 users for a new branch office of the csmtech.local domain that will be opening soon. The accounts are in the BranchOff OU and are currently disabled. You want to enable them when the branch office opens next week. Construct a dsquery command that pipes to a dsmod command that will enable all accounts that are disabled
** FOR FINDING DISABLED USERS ::
C:\>dsquery * CN=ActiveDirectoryUpdate,CN=ForestUpdates,cn=configuration,dc=msft ,dc=net -scope base -attr revision revision 5 C:\>dsquery * CN=ActiveDirectoryRodcUpdate,CN=ForestUpdates,cn=configuration,dc= msft,dc=net -scope base -attr revision revision 2
*** FINDIND PARTICULAR USER ATTRIBUTE USING LDAP FILTER
C:\>dsquery * -filter (samaccountname=biz) -attr name whenchanged name whenchanged biz dd/mm/yyyy hh:mm:ss
*** FUNCTIONAL LEVELS OF ACTIVE DIRECTORY ::
dsquery * "DC=contoso,DC=com" -scope base -attr msDS-Behavior-Version ntMixedDomain
0, 0 Windows 2000 Native domain Level
0, 1 Windows 2000 Mixed domain Level
2, 0 Windows 2003 Domain Level
3, 0 Windows 2008 Domain Level
4, 0 Windows 2008 R2 Domain Level