Active Directory Interview Question and Answers
Active Directory Interview Question and Answers
Its group policy inheritance model, where the policies are applied to Local machines, Sites, Domains and
Organizational Units.
11. Why doesnt LSDOU work under Windows NT?
If the NTConfig.pol file exists, it has the highest priority among the numerous policies.
12. How many number of permitted unsuccessful logons on Administrator account?
Unlimited. Remember, though, that its the Administrator account, not any account thats part of the
Administrators group.
13. Whats the difference between guest accounts in Server 2003 and other editions?
More restrictive in Windows Server 2003.
14. How many passwords by default are remembered when you check Enforce Password History
Remembered?
Users last 6 passwords.
15. Can GC Server and Infrastructure place in single server?
No, As Infrastructure master does the same job as the GC. It does not work together.
16. Which is service in your windows is responsible for replication of Domain controller to another
domain controller.
KCC generates the replication topology.
Use SMTP / RPC to replicate changes.
17. What Intrasite and Intersite Replication?
Intrasite is the replication within the same site & intersite the replication between sites.
18. What is lost & found folder in ADS?
Its 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 didnt find the
OU then it will put that in Lost & Found Folder.
19. What is Garbage collection?
Garbage collection is the process of the online defragmentation of active directory. It happens every 12
Hours.
20. What System State data contains?
Contains Startup files,
Registry
Com + Registration Database
Memory Page file
System files
AD information
Cluster Service information
SYSVOL Folder
21. What is the difference between Windows 2000 Active Directory and Windows 2003 Active
Directory? Is there any difference in 2000 Group Polices and 2003 Group Polices? What is meant
by ADS and ADS services in Windows 2003?
Windows 2003 Active Directory introduced a number of new security features, as well as convenience
features such as the ability to rename a domain controller and even an entire domain
Windows Server 2003 also introduced numerous changes to the default settings that can be affected by
Group Policy you can see a detailed list of each available setting and which OS is required to support
it by downloading the Group Policy Settings Reference.
ADS stands for Automated Deployment Services, and is used to quickly roll out identically-configured
servers in large-scale enterprise environments. You can get more information from the ADS homepage.
22. 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, its 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.
23. How do I determine if user accounts have local administrative access?
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.
24. Why am I having trouble printing with XP domain users?
In most cases, the inability to print or access resources in situations like this one will boil down to an issue
with name resolution, either DNS or WINS/NetBIOS. Be sure that your Windows XP clients wireless
connections are configured with the correct DNS and WINS name servers, as well as with the appropriate
NetBIOS over TCP/IP settings. Compare your wireless settings to your wired LAN settings and look for
any discrepancies that may indicate where the functional difference may lie.
25. What is the ISTG? Who has that role by default?
Windows 2000 Domain controllers each create Active Directory Replication connection objects
representing inbound replication from intra-site replication partners. For inter-site replication, one domain
controller per site has the responsibility of evaluating the inter-site replication topology and creating Active
Directory Replication Connection objects for appropriate bridgehead servers within its site. The domain
controller in each site that owns this role is referred to as the Inter-Site Topology Generator (ISTG).
26. What is difference between Server 2003 vs 2008?
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.)
Server Core (provides the minimum installation required to carry out a specific server role, such
as for a DHCP, DNS or print server)
Better security.
Role-based installation.
Read Only Domain Controllers (RODC).
Enhanced terminal services.
Network Access Protection Microsofts system for ensuring that clients connecting to Server
2008 are patched, running a firewall and in compliance with corporate security policies.
Power Shell Microsofts command line shell and scripting language has proved popular with
some server administrators.
IIS 7.
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.
Windows Aero.
limited as you can add members as user accounts, universal and global groups from any domain. Just to
remember, nesting cannot be done in domain local group. A domain local group will not be a member of
another Domain Local or any other groups in the same domain.
Global Group: Users with similar function can be grouped under global scope and can be given
permission to access a resource (like a printer or shared folder and files) available in local or another
domain in same forest. To say in simple words, Global groups can be use to grant permissions to gain
access to resources which are located in any domain but in a single forest as their memberships are
limited. User accounts and global groups can be added only from the domain in which global group is
created. Nesting is possible in Global groups within other groups as you can add a global group into
another global group from any domain. Finally to provide permission to domain specific resources (like
printers and published folder), they can be members of a Domain Local group. Global groups exist in all
mixed, native and interim functional level of domains and forests.
Universal Group Scope: These groups are precisely used for email distribution and can be granted
access to resources in all trusted domain as these groups can only be used as a security principal
(security group type) in a windows 2000 native or windows server 2003 domain functional level domain.
Universal group memberships are not limited like global groups. All domain user accounts and groups
can be a member of universal group. Universal groups can be nested under a global or Domain Local
group in any domain.
31. 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.
32. 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.
33. 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.
34. 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.
DSrm
DSmove
to relocate objects
DSadd
DSquery
DSget
One-way trust: One domain allows access to users on another domain, but the other domain
does not allow access to users on the first domain.
Two-way trust: Two domains allow access to users on both domains.
Trusting domain: The domain that allows access to users from a trusted domain.
Trusted domain: The domain that is trusted; whose users have access to the trusting domain.
Transitive trust: A trust that can extend beyond two domains to other trusted domains in the
forest.
Intransitive trust: A one way trust that does not extend beyond two domains.
Explicit trust: A trust that an admin creates. It is not transitive and is one way only.
Cross-link trust: An explicit trust between domains in different trees or in the same tree when a
descendant/ancestor (child/parent) relationship does not exist between the two domains.
Windows 2000 Server : supports the following types of trusts:
Two-way transitive trusts.
One-way intransitive trusts.
42. Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
Yes, you can use dirXML or LDAP to connect to other directories.
In Novel you can use E-directory.
43. What is IPSec Policy?
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.
44. What is RsOP
RsOP is the resultant set of policy applied on the object (Group Policy).
44. What are the different types of Terminal Services?
User Mode & Application Mode.
45. What is the System Startup process?
Windows 2K boot process on a Intel architecture.
The Windows 2000 loader switches the processor to the 32-bit flat memory model.
The Windows 2000 loader starts a mini-file system.
The Windows 2000 loader reads the BOOT.INI file and displays the operating system selections
(boot loader menu).
The Windows 2000 loader loads the operating system selected by the user. If Windows 2000 is
selected, NTLDR runs NTDETECT.COM. For other operating systems, NTLDR loads
BOOTSECT.DOS and gives it control.
NTDETECT.COM scans the hardware installed in the computer, and reports the list to NTLDR
for inclusion in the Registry under the HKEY_LOCAL_MACHINE_HARDWARE hive.
NTLDR then loads the NTOSKRNL.EXE, and gives it the hardware information collected by
NTDETECT.COM. Windows NT enters the Windows load phases.
Since NT4 relies on NetBIOS for name resolution, verify that your WINS server (you do have a WINS
server running, yes?) contains the records that you expect for the 2000 domain controller, and that your
clients have the correct address configured for the WINS server.
49. How do you view replication properties for AD partitions and DCs?
By using replication monitor
50. Why cant you restore a DC that was backed up 4 months ago?
Because of the tombstone life which is set to only 60 days.
51. Different modes of AD restore?
A nonauthoritative restore is the default method for restoring Active Directory. To perform a
nonauthoritative restore, you must be able to start the domain controller in Directory Services Restore
Mode. After you restore the domain controller from backup, replication partners use the standard
replication protocols to update Active Directory and associated information on the restored domain
controller.
52. Whats the difference between transferring a FSMO role and seizing ?
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
53.I want to look at the RID allocation table for a DC. What do I do?
dcdiag /test:ridmanager /s:servername /v (servername is the name of our DC)
54. What is BridgeHead Server in AD?
A bridgehead server is a domain controller in each site, which is used as a contact point to receive and
replicate data between sites. For intersite replication, KCC designates one of the domain controllers as
a bridgehead server. In case the server is down, KCC designates another one from the domain controller.
When a bridgehead server receives replication updates from another site, it replicates the data to the
other domain controllers within its site.
54. What is the default size of ntds.dit ?
10 MB in Server 2000 and 12 MB in Server 2003
55. 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
When a change is made to the Win2K database, triggering a write operation, Win2K records the
transaction in the log file (edb.log). Once written to the log file, the change is then written to the AD
database. System performance determines how fast the system writes the data to the AD database from
the log file. Any time the system is shut down, all transactions are saved to the database.
During the installation of AD, Windows creates two files: res1.log and res2.log. The initial size of each is
10MB. These files are used to ensure that changes can be written to disk should the system run out of
free disk space. The checkpoint file (edb.chk) records transactions committed to the AD database
(ntds.dit). During shutdown, a "shutdown" statement is written to the edb.chk file.
Then, during a reboot, AD determines that all transactions in the edb.log file have been committed to the
AD database. If, for some reason, the edb.chk file doesn't exist on reboot or the shutdown statement isn't
present, AD will use the edb.log file to update the AD database. The last file in our list of files to know is
the AD database itself, ntds.dit. By default, the file is located in\NTDS, along with the other files we've
discussed
56. What FSMO placement considerations do you know of?
Windows 2000/2003 Active Directory domains utilize a Single Operation Master method called FSMO
(Flexible Single Master Operation), as described in Understanding FSMO Roles in Active Directory.
In most cases an administrator can keep the FSMO role holders (all 5 of them) in the same spot (or
actually, on the same DC) as has been configured by the Active Directory installation process.
However, there are scenarios where an administrator would want to move one or more of the FSMO roles
from the default holder DC to a different DC.
Windows Server 2003 Active Directory is a bit different than the Windows 2000 version when dealing with
FSMO placement.
In this article I will only deal with Windows Server 2003 Active Directory, but you should bear in mind that
most considerations are also true when planning Windows 2000 AD FSMO roles
57. What is sites? What are they used for?
One or more well-connected (highly reliable and fast) TCP/IP subnets.
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.
Sites can be linked to other Sites. Site-linked objects may be assigned a cost value that represents the
speed, reliability, availability, or other real property of a physical resource. Site Links may also be
assigned a schedule.
58. Trying to look at the Schema, how can I do that?
Register schmmgmt.dll using this command
c:\windows\system32>regsvr32 schmmgmt.dll
Open mmc --> add snapin --> add Active directory schema
name it as schema.msc
Open administrative tool --> schema.msc
Schema master
Domain naming master
RID master
PDC emulator
Infrastructure master
Domain controllers and Sites. Domain controllers are physical computers which is 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.
65. What are the logical components of Active Directory?
Domains, Organizational Units, trees and forests are logical components of Active Directory.
66. What are the Active Directory Partitions?
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.
67. What is group nesting?
Adding one group as a member of another group is called 'group nesting'. This will help for easy
administration and reduced replication traffic.
68. What is Active Directory Recycle Bin ?
Active Directory Recycle bin is a feature of Windows Server 2008 AD. It helps to restore accidentally
deleted Active Directory objects without using a backed up AD database, rebooting domain controller or
restarting any services.
69. What is RODC? Why do we configure RODC?
Read only domain controller (RODC) is a feature of Windows Server 2008 Operating System. RODC is
a read only copy of Active Directory database and it can be deployed in a remote branch office where
physical security cannot be guaranteed. RODC provides more improved security and faster log on time
for the branch office.
70. How do you check currently forest and domain functional levels? Say both GUI and Command
line.
To find out forest and domain functional levels in GUI mode, open ADUC, right click on the domain name
and take properties. Both domain and forest functional levels will be listed there. TO find out forest and
domain functional levels, you can use DSQUERY command.
71. Which version of Kerberos is used for Windows 2000/2003 and 2008 Active Directory?
All versions of Windows Server Active Directory use Kerberos 5.
72. Name few port numbers related to Active Directory?
Kerberos 88, LDAP 389, DNS 53, SMB 445
73. Explain the process between a user providing his Domain credential to his workstation and
the desktop being loaded? Or how the AD authentication works?
When a user enters a user name and password, the computer sends the user name to the KDC. The
KDC contains a master database of unique long term keys for every principal in its realm. The KDC looks
up the user's master key (KA), which is based on the user's password. The KDC then creates two items:
a session key (SA) to share with the user and a Ticket-Granting Ticket (TGT). The TGT includes a second
copy of the SA, the user name, and an expiration time. The KDC encrypts this ticket by using its own
master key (KKDC), which only the KDC knows. The client computer receives the information from the
KDC and runs the user's password through a one-way hashing function, which converts the password
into the user's KA. The client computer now has a session key and a TGT so that it can securely
communicate with the KDC. The client is now authenticated to the domain and is ready to access other
resources in the domain by using the Kerberos protocol.
74. Which FSMO role directly impacting the consistency of Group Policy ?
PDC Emulator.
75. I want to promote a new additional Domain Controller in an existing domain. Which are the
groups I should be a member of?
You should be a member of Enterprise Admins group or the Domain Admins group. Also you should be
member of local Administrators group of the member server which you are going to promote as additional
Domain Controller.
76. Tell me one easiest way to check all the 5 FSMO roles?
Use netdom query /domain:YourDomain FSMO command. It will list all the FSMO role handling domain
controllers.
76. Tell me one easiest way to check all the 5 FSMO roles?
Use netdom query /domain:YourDomain FSMO command. It will list all the FSMO role handling
domain controllers.
77. Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
Yes you can connect other vendors Directory Services with Microsofts version.
Yes, you can use dirXML or LDAP to connect to other directories (i.e. E-directory from Novell or
NDS (Novel directory System).
Yes you can Connect Active Directory to other 3rd -party Directory Services such as dictionaries
used by SAP, Domino etc. with the help of MIIS ( Microsoft Identity Integration Server )
Schema NC : This NC is replicated to every other domain controller in the forest. It contains
information about the Active Directory schema, which in turn defines the different object classes
and attributes within Active Directory.
Configuration NC: Also replicated to every other DC in the forest, this NC contains forest-wide
configuration information pertaining to the physical layout of Active Directory, as well as
information about display specifies and forest-wide Active Directory quotas.
Domain NC: This NC is replicated to every other DC within a single Active Directory domain.
This is the NC that contains the most commonly-accessed Active Directory data: the actual users,
groups, computers, and other objects that reside within a particular Active Directory domain.
79. How do you view replication properties for AD partitions and DCs?
By using replication monitor
Primary restore: This method rebuilds the first domain controller in a domain when there is no
other way to rebuild the domain. Perform a primary restore only when all the domain controllers
in the domain are lost, and you want to rebuild the domain from the backup. Members of
Administrators group can perform the primary restore on local computer, or user should have
been delegated with this responsibility to perform restore. On a domain controller only Domain
Admins can perform this restore.
Normal restore: This method reinstates the Active Directory data to the state before the backup,
and then updates the data through the normal replication process. Perform a normal restore for
a single domain controller to a previously known good state.
Authoritative restore: You perform this method in tandem with a normal restore. An authoritative
restore marks specific data as current and prevents the replication from overwriting that data.
The authoritative data is then replicated through the domain.
Perform an authoritative restore individual object in a domain that has multiple domain controllers. When
you perform an authoritative restore, you lose all changes to the restore object that occurred after the
backup. Ntdsutil is a command line utility to perform an authoritative restore along with windows server
2003 system utilities. The Ntdsutil command-line tool is an executable file that you use to mark Active
Directory objects as authoritative so that they receive a higher version recently changed data on other
domain controllers does not overwrite system state data during replication.
86. Why cant you restore a DC that was backed up 4 months ago?
Because of the tombstone life which is set to only 60 days
87. How can you determine what GPO was and was not applied for a user? Name a few ways to
do that.
Simply use the Group Policy Management Console created by MS for that very purpose, allows you to
run simulated policies on computers or users to determine what policies are enforced. Link in sources
88. What are administrative templates?
Administrative Templates facilitate the management of registry-based policy. An ADM file is used to
describe both the user interface presented to the Group Policy administrator and the registry keys that
should be updated on the target machines.
You want to standardize the desktop environments (wallpaper, My Documents, Start menu, printers etc.)
on the computers in one department. How would you do that?
Login on client as Domain Admin user change whatever you need add printers etc go to system-User
profiles copy this user profile to any location by select Everyone in permitted to use after copy change
ntuser.dat to ntuser.man and assign this path under user profile
Dyanamic Access control: Native access control require a user or group needs to be add to
file/Folder NTFS permission to get an access. In 2012 added new features to an existing system. If the
user Dept. is Finance in AD user able to the FINANCE related data's from file server using dynamic
access control feature.
Customized audit polices: You can fine tune the audit polices as per your requirement.
Event Logs: If you enable auditing for multiple items and configuring the customized audit policies,
then security logs will grow faster and by default the log will overwrite old events when it runs out of
space. In 2012 you can select the option "Archive the log when full, do not overwrite events"
Offline Domain Join: Offline domain join is improved in Windows server 2012 AD DS.
AD federation Services ( AD FS) : Adding ADFS no longer requires a separate installation. ADFS
also gains multiple improvements.
Windows PowerShell: Windows PowerShell History Viewer , Will have a readymade command for
what action you did in AD administrative center
AD Recycle Bin: We can recover deleted object with in graphical user interface through AD
administrative center (ADAC)
Kerberos Constrained Delegation across Domains (KCD) : The KCD in Windows server
2012 supports across-domain, across forest scenarios, it's very demanding feature and reduce the pass
through authentication load.
Flexible Authentication secure tunneling (FAST) : More secure Kerberos in Windows server
2012 through Flexible authentication secure tunneling, it provides a protected channel between a domain
joined client and DC
Active Directory-Based Activation (ADBA): This will eliminates the need for KMS servers