Vous êtes sur la page 1sur 60

Implementing an Organizational Unit Structure

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage OU using Directory Service Tools

Type the command to create the OU

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage OU using Directory Service Tools

Created OU will displayed here

ADVANTAGE PRO Chennais Premier Networking Training Center

Modifying an Organizational Unit


Procedure Dsmod ou Organizational Unit DN desc Description d Domain u UserName p Password

ADVANTAGE PRO Chennais Premier Networking Training Center

Modifying an Organizational Unit

To modify the query

ADVANTAGE PRO Chennais Premier Networking Training Center

Modifying an Organizational Unit

Our modify thing will be displayed here

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing an OU

This command will remove the OU type Y to confirm

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing an OU

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing an OU

Our OU will be removed

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Ldifide Tool


Create an input file Dn: OU=Sample OU,DC=nwtraders,DC=msft Changetype: add objectClass: organizational Unit. Run Ldifide to create, modify or delete OU Ldifde i k f OU List.ldf -b

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Ldifide Tool

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Ldifide Tool

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Ldifide Tool

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Windows Script Host

Save this script to create the OU

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Windows Script Host

This is the command to run the script

ADVANTAGE PRO Chennais Premier Networking Training Center

Create OU using Windows Script Host

Ou will be created here

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control

Click ACTIVE DIRECTORY USERS AND COMPUTERS

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control

Select the OU and right click select DELEGATE CONTROL

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control

Click NEXT to continue

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control


Select the user by clicking ADD Click NEXT to continue

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control


Select the delegate control Click NEXT to continue

ADVANTAGE PRO Chennais Premier Networking Training Center

Delegate Administrative Control

Click FINISH

ADVANTAGE PRO Chennais Premier Networking Training Center

Verify Delegation of Administrative Control

Click ACTIVE DIRECTORY USERS AND COMPUTERS

ADVANTAGE PRO Chennais Premier Networking Training Center

Verify Delegation of Administrative Control

Select VIEW and select ADVANCED FEATURES

ADVANTAGE PRO Chennais Premier Networking Training Center

Verify Delegation of Administrative Control

Select OU and select properties

ADVANTAGE PRO Chennais Premier Networking Training Center

Verify Delegation of Administrative Control

Then click ADVANCED Here select SECURITY

ADVANTAGE PRO Chennais Premier Networking Training Center

Verify Delegation of Administrative Control

In the list it will display the user

ADVANTAGE PRO Chennais Premier Networking Training Center

Implementing User, Group, and Computer Accounts

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Right click the domain and select the NEW then OU

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Then click OK Then type the name of the OU

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Created OU will be displayed here

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Type this is the file of the code

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Type this command and press enter your user account

ADVANTAGE PRO Chennais Premier Networking Training Center

Create Accounts Using the Csvde Tool

Your user account is created

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool


Procedure: Prepare the Ldifide file for importing
-- Ldifide file contains a record that consists of a sequence of lines that describe either an entry for a user account. -- Any line that begins with a pound-sign(#) is a comment line is ignored when you run the Ldifide file. -- If a value is missing for an attribute, it must be represented as Attribute Description : FILL SEP

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool


Sample Code: Create Shyam dn: cn=Shyam,ou=Human Resources,dc=test1,dc=com Changetype: Add objectClass: user SAMaccountName: shyam userPrinicipalName:shyam@test1.com displayName:shyam userAccountControl: 512
ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool


Run the ldifde command to import the file and create multiple user accounts in Active Directory In Command Prompt type: ldifide i k f filename b UserName Domain Password Where i indicates importing a file to Active Directory f indicates next parameter of the file that are importing b sets the command to run as username,domain and password -k ignores errors during an import operation and continues processing
ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool

Create the file in this format

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool

Type the command and execute it

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Ldifde Tool

The user will display here

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host


Procedure Use Note to create a text file with a .vbs extension.
-- Connect to the container in which you want to create the Active Directory object by specifying the Lightweight Directory Access Protocol (LDAP) query.

Set objou=Get object(LDAP://ou=Human Resources,dc=test1,dc=com)

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host


-- Create the Active Directory object and specify the object class and the object name Set objUser=objou.Create(User, cn=Marry) -- Set the properties of the Active Directory Object. objUser.PutsAMAccountName,Marry -- Write the information to the Active Directory database objUser.Set Info

Run the script at command prompt: wscript.exe filename


ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host

This is the script to create the user

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host

Then click SAVE

Save the .vbs format

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host

Then execute the script by using WSCRIPT

ADVANTAGE PRO Chennais Premier Networking Training Center

Create and Manage Accounts using Windows Script Host

Created account will display here

ADVANTAGE PRO Chennais Premier Networking Training Center

Changing Value using Windows Script Host


Procedure Connect to the object that the property will be changed
Set objUser=Get Object(LDAP://cn=Mary,ou=Test, dc=test1,dc=com)

Set the new value of the property-for example, the room number of an employee who has moved to a new office
objUser.Putphysical Delivery Office Name,Room 4358
ADVANTAGE PRO Chennais Premier Networking Training Center

Changing Value using Windows Script Host


Write the change to Active Directory.
objUser.SetInfo

Save the file with the extension .vbs Execute the command in command prompt
wscript.exe filename

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix


Procedure Open Active Directory Domains and Trusts. In the console tree, right click Active Directory Domains and Trusts, and then click properties On the UPN suffixes tab, type an alternative UPN suffix, and then click Add.

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix


Open Active Directory Domains and Trusts

Select the ACTIVE DIRECTORY DOMAINS AND TRUSTS

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix


In the console tree, right click Active Directory Domains and Trusts, and then click properties

Right click the trust and select the properties

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix

Here type the suffix name

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix

Then click ADD

ADVANTAGE PRO Chennais Premier Networking Training Center

Adding a UPN suffix


On the UPN suffixes tab, type an alternative UPN suffix, and then click Add

Then click APPLY and click OK

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing a UPN suffix


Procedure In Active Directory Domains and Trusts, in the console tree, right-click Active Directory Domains and Trusts, and then click Properties On the UPN Suffixes tab, select the UPN suffix name that you want to remove, and then click Remove

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing a UPN suffix


In Active Directory Domains and Trusts, in the console tree, right-click Active Directory Domains and Trusts, and then click Properties

In active directory domain trust right click and select properties

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing a UPN suffix


On the UPN Suffixes tab, select the UPN suffix name that you want to remove, and then click Remove

Click REMOVE

ADVANTAGE PRO Chennais Premier Networking Training Center

Removing a UPN suffix

Click YES

ADVANTAGE PRO Chennais Premier Networking Training Center

SID
Is a list of all SIDs that were assigned to a user account Provides migrated user account with continuity of access to resources

ADVANTAGE PRO Chennais Premier Networking Training Center

ADVANTAGE PRO Chennais Premier Networking Training Center

Vous aimerez peut-être aussi