Active Directory Interview Question and Answers
Active Directory Interview Question and Answers
Active Directory Interview Question and Answers
Active Directory is a centralized and standardized system that automates network management of user
data, security, and distributed resources, and enables interoperation with other directories. Active
Directory is designed especially for distributed networking environments.
• A hierarchical organization that provides a single point of access for system administration
(management of user accounts, clients, servers, and applications, for example) to reduce redundancy
and errors
• Support for the Lightweight Directory Access Protocol (LDAP) to enable inter-directory operability
X.500
X.500 Directory Service is a standard way to develop an electronic directory of people in an organization
so that it can be part of a global directory available to anyone in the world with Internet access. Such a
directory is sometimes called a global White Pages directory.
What is domain?
A domain is defined as a logical group of network objects (computers, users, devices) that share the
same Active Directory database. A tree can have multiple domains.
A domain controller (DC) or network domain controller is a Windows-based computer system that is used
for storing user account data in a central database. It is the centerpiece of the Windows Active Directory
service that authenticates users, stores user account information and enforces security policy for a
Windows domain.
A domain controller allows system administrators to grant or deny users access to system resources, such
as printers, documents, folders, network locations, etc., via a single username and password.
What is Tree?
Tree is a hierarchical arrangement of windows Domain that share a contiguous name space
What is Forest?
Forest is used to define an assembly of AD domains that share a single schema for the AD. All DC’s in
the forest share this schema and is replicated in a hierarchical fashion among them.
What is Schema?
Active directory schema is the set of definitions that define the kinds of object and the type of
information about those objects that can be stored in Active Directory
What is KCC?
KCC (knowledge consistency checker) is used to generate replication topology for inter site replication
and for intra-site replication. Within a site replication traffic is done via remote procedure calls over ip,
while between sites it is done through either RPC or SMTP.
Where is the AD database held? What other folders are related to AD?
All AD changes didn’t write directly to NTDS.DIT database file, first write to EDB.Log and from log file to
database, EDB.Che used to track the database update from log file, to know what changes are copied to
database file.
NTDS.DIT: NTDS.DIT is the AD database and store all AD objects, Default location is the %system
root%\nrds\nrds.dit, Active Directory database engine is the extensible storage engine which us based on
the Jet database
EDB.Log: EDB.Log is the transaction log file when EDB.Log is full, it is renamed to EDB Num.log where
num is the increasing number starting from 1, like EDB1.Log
EDB.Che: EDB.Che is the checkpoint file used to trace the data not yet written to database file this
indicate the starting point from which data is to be recovered from the log file in case if failure
Res1.log and Res2.log: Res is reserved transaction log file which provide the transaction log file
enough time to shutdown if the disk didn’t have enough space.
Configuration Partition – It store details about the AD configuration information like, Site, site-link,
subnet and other replication topology information. Replicates to all domain controllers in the Forest
Domain Partitions – object information for a domain like user, computer, group, printer and other
Domain specific information. Replicates to all domain controllers within a domain
The SYSVOL folder stores the server copy of the domain’s public files that must be shared for common
access and replication throughout a domain.
All AD databases are stored in a SYSVOL folder and it’s only created in an NTFS partition.
The Active Directory Database is stored in the %SYSTEM ROOT%NDTS folder.
Group Policy allows you to implement specific configurations for users and computers. Group Policy
settings are contained in Group Policy objects (GPOs), which are linked to the following Active Directory
service containers: sites, domains, or organizational units (OUs).
A Group Policy Object (GPO) is a collection of settings that control the working environment of user
accounts and computer accounts. GPOs define registry-based policies, security options, software
installation and maintenance options, script options, and folder redirection options.
There are two kinds of Group Policy objects:
What is LDAP?
LDAP (Lightweight Directory Access Protocol) is a directory service protocol provides a mechanism to
connect, query, and update the directories (Active Directory). LDAP directory service is based on a client-
server mode. Active Directory supports LDAPv2 and LDAPv3.
Where are the Windows NT Primary Domain Controller (PDC) and its Backup Domain
Controller (BDC) in Server 2003?
The Active Directory replaces them. Now all domain controllers share a multi master peer-to-peer read
and write relationship that hosts copies of the Active Directory.
What is LSDOU?
Its group policy inheritance model, where the policies are applied to Local machines, Sites, Domains
and Organizational Units.
If the NTConfig.pol file exists, it has the highest priority among the numerous policies.
Unlimited. Remember, though, that it’s the Administrator account, not any account that’s part of the
Administrators group.
Whats the difference between guest accounts in Server 2003 and other editions?
How many passwords by default are remembered when you check “Enforce Password
History Remembered”?
No, As Infrastructure master does the same job as the GC. It does not work together.
How many domain controllers need to back up? Or which domain controllers to back up?
Minimum requirement is to back up two domain controllers in each domain.
The default protocol used in directory services is LDAP ( Lightweight Directory Access Protocol).
Intrasite is the replication within the same site &intersite the replication between sites.
It’s the folder where you can find the objects missed due to conflict.
Ex: you created a user in OU which is deleted in other DC & when replication happed ADS didn’t find the
OU then it will put that in Lost & Found Folder.
Garbage collection is the process of the online defragmentation of active directory. It happens every 12
Hours.
Mention what is Kerberos?
Kerberos is an authentication protocol for network. It is built to offer strong authentication for
server/client applications by using secret-key cryptography.
Lingering objects can exists if a domain controller does not replicate for an interval of time that is longer
than the tombstone lifetime (TSL).
Tombstone lifetime in an Active Directory determines how long a deleted object is retained in Active
Directory. The deleted objects in Active Directory is stored in a special object referred as TOMBSTONE.
Usually, windows will use a 60- day tombstone lifetime if time is not set in the forest configuration.
I want to setup a DNS server and Active Directory domain. What do I do first? If I install the
DNS service first and name the zone ‘name.org’ can I name the AD domain ‘name.org’ too?
Not only can you have a DNS zone and an Active Directory domain with the same name, it’s actually the
preferred way to go if at all possible. You can install and configure DNS before installing Active Directory,
or you can allow the Active Directory Installation Wizard (dcpromo) itself install DNS on your server in the
background.
You can use the net local group administrators command on each workstation (probably in a login script
so that it records its information to a central file for later review). This command will enumerate the
members of the Administrators group on each machine you run it on. Alternately, you can use the
Restricted Groups feature of Group Policy to restrict the membership of Administrators to only those
users you want to belong.
1. Virtualization. (Windows Server 2008 introduces Hyper-V (V for Virtualization) but only on 64bit
versions.
More and more companies are seeing this as a way of reducing hardware costs by running several
‘virtual’ servers on one physical machine.)
2. Server Core (provides the minimum installation required to carry out a specific server role, such as for
a DHCP, DNS or print server)
3. Better security.
4. Role-based installation.
7. Network Access Protection – Microsoft’s system for ensuring that clients connecting to Server 2008 are
patched, running a firewall and in compliance with corporate security policies.
8. Power Shell – Microsoft’s command line shell and scripting language has proved popular with some
server administrators.
9. IIS 7.
10. Bit locker – System drive encryption can be a sensible security measure for servers located in remote
branch offices. The main difference between 2003 and 2008 is Virtualization, management. 2008 has
more in-build components and updated third party drivers.
A NIC Properly configured TCP/IP (IP address, subnet mask and – optional – default gateway).
The Windows 2000 or Windows Server 2003 CD media (or at least the i386 folder) .
What is LDP?
LDP: Label Distribution Protocol (LDP) is often used to establish MPLS LSPs when traffic engineering is
not required. It establishes LSPs that follow the existing IP routing, and is particularly well suited for
establishing a full mesh of LSPs between all of the routers on the network.
Distribution groups: Distribution groups are used for sending e-mail messages to groups of users. You
cannot grant permissions to security groups. Even though security groups have all the capabilities of
distribution groups, distribution groups still requires, because some applications can only read distribution
groups.
What is REPLMON?
The Microsoft definition of the Replmon tool is as follows; This GUI tool enables administrators to view
the low-level status of Active Directory replication, force synchronization between domain controllers,
view the topology in a graphical format, and monitor the status and performance of domain controller
replication.
What is ADSIEDIT ?
ADSIEDIT :ADSIEdit is a Microsoft Management Console (MMC) snap-in that acts as a low-level editor
for Active Directory. It is a Graphical User Interface (GUI) tool. Network administrators can use it for
common administrative tasks such as adding, deleting, and moving objects with a directory service. The
attributes for each object can be edited or deleted by using this tool. ADSIEdit uses the ADSI application
programming interfaces (APIs) to access Active Directory. The following are the required files for using
this tool: ADSIEDIT.DLL ADSIEDIT.
What is NETDOM ?
NETDOM is a command-line tool that allows management of Windows domains and trust relationships.
It is used for batch management of trusts, joining computers to domains, verifying trusts, and secure
channels.
What is REPADMIN?
This command-line tool assists administrators in diagnosing replication problems between Windows
domain controllers.Administrators can use Repadmin to view the replication topology (sometimes referred
to as RepsFrom and RepsTo) as seen from the perspective of each domain controller. In addition,
Repadmin can be used to manually create the replication topology (although in normal practice this
should not be necessary), to force replication events between domain controllers, and to view both the
replication metadata and up-to-dateness vectors.
For taking backup of active directory you have to do this : first go START -> PROGRAM ->ACCESORIES -
> SYSTEM TOOLS -> BACKUP OR Open run window and ntbackup and take systemstate backup when
the backup screen is flash then take the backup of SYSTEM STATE it will take the backup of all the
necessary information about the syatem including AD backup , DNS ETC.
To allow users in one domain to access resources in another, Active Directory uses trusts. Trusts inside a
forest are automatically created when domains are created.
The forest sets the default boundaries of trust, not the domain, and implicit, transitive trust is automatic
for all domains within a forest. As well as two-way transitive trust, AD trusts can be a shortcut (joins two
domains in different trees, transitive, one- or two-way), forest (transitive, one- or two-way), realm
(transitive or nontransitive, one- or two-way), or external (nontransitive, one- or two-way) in order to
connect to other forests or non-AD domains.
The number of days before a deleted object is removed from the directory services. This assists in
removing objects from replicated servers and preventing restores from reintroducing a deleted object.
This value is in the Directory Service object in the configuration NIC.
An application diretcory partition is a directory partition that is replicated only to specific domain
controller. Only domain controller running windows Server 2003 can host a replica of application directory
partition.
Using an application directory partition provides redundancy,availability or fault tolerance by replicating
data to specific domain controller or any set of domain controllers anywhere in the forest.
Can you connect Active Directory to other 3rd-party Directory Services? Name a few
options.
What is IPSecPolicy
IPSec provides secure gateway-to-gateway connections across outsourced private wide area network
(WAN) or Internet-based connections using L2TP/IPSec tunnels or pure IPSec tunnel mode. IPSec Policy
can be deployed via Group policy to the Windows Domain controllers 7 Servers.
In Windows Server 2003, you can use the dsmod command-line utility with the -delmbr switch to remove
a group member from the command line.
Authoritative restore
Just start the domain controller in Directory Services Restore Mode and perform system state restore
from backup
Non-authoritative restore
Non-authoritative restore is restore the domain controller to its state at the time of backup, and allows
normal replication to overwrite restored domain controller with any changes that have occurred after the
backup.
Seizing an FSMO can be a destructive process and should only be attempted if the existing server with
the FSMO is no longer available.
If you perform a seizure of the FSMO roles from a DC, you need to ensure two things:
the current holder is actually dead and offline, and that the old DC will NEVER return to the network. If
you do an FSMO role Seize and then bring the previous holder back online, you’ll have a problem.
An FSMO role TRANSFER is the graceful movement of the roles from a live, working DC to another live
DC During the process, the current DC holding the role(s) is updated, so it becomes aware it is no longer
the role holder
All the Microsoft Windows Server Operating System like (2000,2003,2008 Forest Function Level & Domain
Function Levels) the Default Size of the NTDS.Dit is 12MB(12,304 KB) Initially''. But it is extendable.
Where is the AD database held and What are other folders related to AD ?
AD Database is saved in %systemroot%/ntds. You can see other files also in this folder. These are the
main files controlling the AD structure.
ntds.dit
edb.log
res1.log
res2.log
edb.chk
What is OU?
Organization Unit is a container object in which you can keep objects such as user accounts, groups,
computer, printer .applications and other (OU).
In organization unit you can assign specific permission to the user’s organization unit can also be used to
create departmental limitation.
A site allows administrators to configure Active Directory access and replication topology to take
advantage of the physical network.
A Site object in Active Directory represents a physical geographic location that hosts networks. Sites
contain objects called Subnets.
Sites can be used to Assign Group Policy Objects, facilitate the discovery of resources, manage active
directory replication, and manage network link traffic.
Windows 2000 and Windows Server 2003 Active Directory uses a database set of rules called “Schema”.
The Schema is defines as the formal definition of all object classes, and the attributes that make up those
object classes, that can be stored in the directory. As mentioned earlier, the Active Directory database
includes a default Schema, which defines many object classes, such as users, groups, computers,
domains, organizational units, and so on.
c:\windows\system32>regsvr32 schmmgmt.dll
Open mmc –> add snapin –> add Active directory schema
name it as schema.msc
Open administrative tool –>schema.msc
What are the FSMO roles? Who has them by default? What happens when each one fails?
Flexible Single Master Operation (FSMO) role. Currently there are five FSMO roles:
Schema master
Domain naming master
RID master
PDC emulator
Infrastructure master
Domain Trees: A domain tree comprises several domains that share a common schema and
configuration, forming a contiguous namespace. Domains in a tree are also linked together by trust
relationships. Active Directory is a set of one or more trees.
Trees can be viewed two ways. One view is the trust relationships between domains. The other view is
the namespace of the domain tree.
Where are the Windows NT Primary Domain Controller (PDC) and its Backup Domain
Controller (BDC) in Server 2003?
The Active Directory replaces them. Now all domain controllers share a multimaster peer-to-peer read
and write relationship that hosts copies of the Active Directory.
The Global Catalog authenticates network user logons and fields inquiries about objects across a forest or
tree. Every domain has at least one GC that is hosted on a domain controller. In Windows 2000, there
was typically one GC on every site in order to prevent user logon failures across the network.
How long does it take for security changes to be replicated among the domain controllers?
Security-related modifications are replicated within a site immediately. These changes include account
and individual user lockout policies, changes to password policies, changes to computer account
passwords, and modifications to the Local Security Authority (LSA).
Organizations that operate on radically different bases may require separate trees with distinct
namespaces. Unique trade or brand names often give rise to separate DNS identities. Organizations
merge or are acquired and naming continuity is desired. Organizations form partnerships and joint
ventures. While access to common resources is desired, a separately defined tree can enforce more direct
administrative and security restrictions.
The advantage to this approach is that it provides you with a unique internal domain name. The
disadvantage is that this configuration requires you to manage two separate namespaces. Also, using a
stand-alone internal domain that is unrelated to your external domain might create confusion for users
because the namespaces do not reflect a relationship between resources within and outside of your
network.
In addition, you might have to register two DNS names with an Internet name authority if you want to
make the internal domain publicly accessible.
C:\>repadmin /showreps
domain_controller
OR
You can use Replmon.exe for the same purpose.
OR
To find the in GC from the command line you can try using DSQUERY command.
Domain controllers and Sites. Domain controllers are physical computers which are running Windows
Server operating system and Active Directory data base. Sites are a network segment based on
geographical location and which contains multiple domain controllers in each site.
What are the logical components of Active Directory?
Domains, Organizational Units, trees and forests are logical components of Active Directory.
Active Directory database is divided into different partitions such as Schema partition, Domain partition,
and Configuration partition. Apart from these partitions, we can create Application partition based on the
requirement.
Adding one group as a member of another group is called ‘group nesting’. This will help for easy
administration and reduced replication traffic.
Domain local groups are mainly used for granting access to network resources.A Domain local group can
contain accounts from any domain, global groups from any domain and universal groups from any
domain
Active Directory is backed up along with System State data. System state data includes Local registry,
COM+, Boot files, NTDS.DIT and SYSVOL folder. System state can be backed up either using Microsoft’s
default NTBACKUP tool or third party tools such as SymantechNetBackup, IBM Tivoli Storage Manager
etc.
No one installs Active Directory in a cluster. There is no need of clustering a domain controller. Because
Active Directory provides total redundancy with two or more servers.
Which version of Kerberos is used for Windows 2000/2003 and 2008 Active Directory ?
All versions of Windows Server Active Directory use Kerberos 5.
What is an FQDN?
FQDN can be expanded as Fully Qualified Domain Name.It is a hierarchy of a domain name system which
points to a device in the domain at its left most end.
ADAC- Active Directory Administrative Center is a new GUI tool came with Windows Server 2008 R2,
which provides enhanced data management experience to the admin. ADAC helps administrators to
perform common Active Directory object management task across multiple domains with the same ADAC
instance.
How many objects can be created in Active Directory? (both 2003 and 2008)
As per Microsoft, a single AD domain controller can create around 2.15 billion objects during its lifetime.