Provisioning and configuring Active Directory Domain Services (AD DS) users and groups involves creating accounts for users, services, and computers. These accounts are placed into logical containers called Organizational Units (OUs), which help apply group policies and delegate administrative tasks to specific parts of the directory. The main tools for this work are the graphical Active Directory Users and Computers or Active Directory Administrative Center, and PowerShell for automation. Administrators choose group scopes—global, domain local, or universal—and nest groups inside one another to simplify assigning access permissions. This structure of OUs and groups is key for enforcing role-based access in both on-premises AD DS and hybrid setups with Microsoft Entra ID.
Organizational Units group related objects like users, groups, and computers. In a managed domain synchronized with Microsoft Entra ID, there are two default OUs: AADDC Computers for domain-joined computers and AADDC Users for synchronized users and groups. Administrators can create custom OUs to match their own organizational structure. Only objects created directly within the managed domain can be moved into these custom OUs; objects that sync from the cloud remain in the default OUs.
The Active Directory Administrative Center provides a graphical interface for managing OUs, users, and groups. PowerShell automates these same tasks, such as creating a service principal with New-MgServicePrincipal or listing groups with Get-MgGroup. The choice of tool depends on the task: the Administrative Center is good for one-off changes, while PowerShell excels at bulk operations and scripting for consistency.
AD DS supports different group scopes that control where a group's permissions can be used. Global groups are used within the same domain, domain local groups apply to resources in their own domain, and universal groups work across domains in a forest. Nested group membership means adding one group as a member of another, which reduces the number of direct permission assignments you need to manage. Delegation models allow administrators to grant specific rights over an OU, like resetting passwords, without giving full administrative control over the entire domain.
In a hybrid deployment, on-premises AD DS synchronizes with Microsoft Entra Domain Services. This synchronization must correctly match user attributes such as sAMAccountName and objectGUID. Administrators create service principals and administrative groups in the cloud to manage resources on both sides. Tools like Azure PowerShell and Microsoft Graph PowerShell handle this synchronization and management, ensuring consistency between the on-premises and cloud directories.
Configuring a user account involves several steps. First, the account is created using Active Directory Users and Computers or PowerShell. Next, roles are assigned through security groups, like the AAD DC Administrators group, which grants elevated permissions over the managed domain. Finally, password policies are managed to enforce complexity rules, expiration dates, and lockout rules after failed attempts. Organizing objects into OUs, delegating tasks appropriately, and choosing the correct group scopes and nesting keeps the directory secure and manageable.
In hybrid environments, separate Active Directory forests are often used to isolate resources or administrative control. A cross-forest trust is a relationship that allows users in one forest to securely access resources in another forest. These trusts can be one-way, where only one forest trusts the other, or two-way, where both forests trust each other.
You can create these trust relationships using the graphical Active Directory Domains and Trusts tool or PowerShell cmdlets like New-ADTrust. Before creating the trust, you must ensure that DNS resolution works between the forests, which usually involves setting up conditional forwarders. After creation, you must verify the secure channel—the encrypted connection used for authentication—is working correctly, which can be tested with commands like Test-ComputerSecureChannel.
Two critical settings govern how a trust operates. SID filtering is a security feature that prevents a user from bringing potentially malicious security identifiers (SIDs) from one forest into another; it is usually enabled by default. Trust transitivity determines whether a trust can be extended through a third forest. For example, if Forest A trusts Forest B, and Forest B trusts Forest C, a transitive trust would allow Forest A to trust Forest C automatically. This is a key design decision when planning your forest relationships.
Common problems include authentication failures and issues related to SID filtering. To troubleshoot, start by checking the Windows Security event logs on domain controllers for specific error codes. Next, verify the trust path and test the secure channel again. If SID filtering is blocking necessary access, such as during a user migration where SID history is required, you may need to adjust the SIDFilterQuarantine attribute cautiously due to security implications.
Once configured, validate that the trust works by having a test user from one forest attempt to access a shared resource in the other. Regular monitoring is important, as network changes or expired trust passwords can break the secure channel. Using tools to proactively check the health of the trust relationship helps maintain reliable access.
When setting up services in Active Directory Domain Services (AD DS), administrators must choose the right type of service account to keep the system secure and easy to manage. The main goal is to follow least-privilege principles, meaning each service gets only the permissions it truly needs. This choice is especially important in hybrid environments spanning on-premises servers and Azure services.
Three main types of service accounts exist in Windows Server environments: Group Managed Service Accounts (gMSAs), Standalone Managed Service Accounts (sMSAs), and User Accounts (domain or local). Each serves different scenarios based on where the service runs, how many servers it uses, and the security features required.
gMSAs work best when services run across multiple servers, like in a server farm or behind a load balancer. They provide a single identity all servers can use, simplifying management. Key benefits include automatic password management, where the Windows OS changes the password every 30 days without admin intervention, strong security from complex passwords, and deployment across multiple servers. Choose gMSAs when your service runs on more than one server or you want to reduce manual password work.
sMSAs serve services that run on a single server. They offer the same automatic password management and security benefits as gMSAs but cannot be shared across multiple machines. Their scope is limited to one server. Use sMSAs when your service runs on a single server and you want the security benefits of managed passwords without gMSA complexity.
When managed service accounts are not supported, administrators use user accounts. Domain user accounts exist in AD DS and can access resources across the network, supporting Kerberos authentication. Local user accounts exist only on a specific computer and cannot participate in network authentication. Use domain user accounts when the service requires network access or when the application does not support managed accounts. Password management becomes manual, so clear naming conventions and scheduled updates are essential.
When deciding which account type to use, ask key questions. How many servers will run this service? If more than one, gMSAs are best. Does the service support managed service accounts? If not, use a domain user account. How often can administrators update passwords? Managed accounts handle this automatically. What permissions does the service actually need? Always assign only the minimum required access.
A decision tree that branches on the number of servers, application support for managed accounts, and whether network access is required, leading to a choice among gMSAs, sMSAs, and domain or local user accounts.
Managing service accounts well keeps the environment secure over time. Document each account with its owner, purpose, and risk level. Track which resources each account can access. Audit account usage regularly to ensure no accounts have excessive permissions and that passwords are managed properly.
In hybrid Active Directory environments, background services require secure identities to run tasks and access network resources. Traditional domain user accounts need manual password management and are prone to weak passwords. Windows Server provides managed service accounts that automatically handle password changes and simplify Service Principal Names (SPNs). Selecting the right account type depends on whether the service runs on a single server, a distributed server farm, or requires legacy domain compatibility.
Standalone Managed Service Accounts (sMSAs) are designed for services running on a single, isolated host. The local domain controller automatically rotates the sMSA's complex password every 30 days, eliminating manual overhead and preventing brute-force attacks. These accounts also simplify credential management by automatically updating SPN attributes. Because an sMSA cannot be shared, choose this option only when a service does not need to scale out to a load-balanced cluster.
Group Managed Service Accounts (gMSAs) extend automated password management to services running across multiple servers, like load-balanced web farms. The password rotation is managed globally by the Active Directory Key Distribution Service (KDS), allowing multiple hosts to securely retrieve the same current password. Administrators configure SPNs for gMSAs using PowerShell to map the service identity to the correct network location. It's a best practice to validate gMSAs in a test environment before full deployment.
Implementing these identities requires a structured order. First, determine the service architecture to assign a gMSA for distributed services or an sMSA for single-server workloads. Next, provision the account within Active Directory and install it on the target host using PowerShell. Finally, configure the required SPNs so client devices can successfully authenticate using Kerberos, ensuring the identity is trusted across the hybrid network boundary.
Protecting service identities relies on enforcing least-privilege permissions so a compromised service cannot access unauthorized resources. Implementing Kerberos constrained delegation restricts the service to acting on behalf of users only to specifically designated downstream servers. Regular auditing of access logs is necessary to detect unauthorized permission changes. When legacy applications cannot support managed accounts, revert to standard user accounts but enforce strong password policies and frequent manual rotations.
Configuring Windows Servers for a hybrid domain join integrates on-premises Active Directory Domain Services (AD DS) with Azure AD Domain Services and Microsoft Entra ID. This setup allows devices to benefit from both on-premises and cloud-based directory services.
When deploying AD DS in the cloud, there are two primary models. In a standalone cloud-only AD DS model, Azure VMs are set up as domain controllers, creating an isolated cloud-only environment. The alternative is to extend an on-premises domain to Azure by connecting an Azure virtual network to the on-premises network using VPN or ExpressRoute. Azure VMs can then join this network, effectively extending the on-premises AD DS environment into the cloud.
Managed and self-managed domains offer different features. Managed domains provide simplified management with automatic DNS and domain joining, and are primarily administered by Microsoft, but they limit customization like schema extensions. Self-managed AD DS gives greater control over infrastructure and deployment, requiring manual setup and maintenance, making it suitable for complex setups that need precise customization.
Microsoft Entra ID helps manage device identities. Devices joined through Entra ID can access corporate resources efficiently through configurations like single-sign-on (SSO), which provides streamlined access using corporate credentials. Policy compliance ensures devices follow corporate policies, securing resource access. Device registration and management allows both personal and corporate-owned devices to be registered for secure access via tools like Microsoft Intune.
Hybrid domain joins integrate on-premises AD DS with Microsoft Entra ID, bringing several advantages. Users experience a seamless SSO experience across cloud and on-premises resources. Enhanced security comes from leveraging modern authentication protocols. Simplified device management is achieved through tools like Azure AD Connect, which synchronizes devices and user accounts.
To configure hybrid domain joins, first prepare the on-premises environment by ensuring proper AD DS setup and validating network connectivity. Next, deploy Azure AD Connect by installing and configuring it to synchronize devices and user information with Microsoft Entra ID. Finally, register devices with Microsoft Entra ID, enabling seamless access to resources. This integration enhances operational efficiency, security, and manageability by unifying identity management.
Eager to master hybrid server management? Discover how to administer Windows Server Hybrid Core Infrastructure on Azure, setting your path towards the Microsoft Certified: Azure Hybrid Infrastructure Administrator Associate certification!
Prepare and test your skills

Prepare and test your skills

Standalone Managed Service Accounts (sMSAs) are restricted to services running on a single isolated server, whereas Group Managed Service Accounts (gMSAs) support services distributed across multiple servers such as server farms. Both account types provide automatic 30-day password management, but gMSAs rely on the Active Directory Key Distribution Service (KDS) so multiple hosts can securely retrieve the same current password.
Global groups are used within the same domain, domain local groups apply permissions to resources in their own domain, and universal groups work across multiple domains in a forest. Administrators can nest these groups inside one another to simplify permission management and enforce role-based access control.
SID filtering is a security feature that prevents users from carrying potentially malicious security identifiers from one forest into another, while trust transitivity controls whether a trust relationship extends automatically through a third forest. SID filtering is typically enabled by default, and transitivity determines whether forests can share access across multi-forest trust paths without direct individual trusts.