
Active Directory Web Services, commonly abbreviated as ADWS, is a Windows service that provides a web service interface to Active Directory domains and Active Directory Lightweight Directory Services instances. It is essential for tools like the Active Directory module for Windows PowerShell and the Active Directory Administrative Center. When ADWS is not running, administrators may see errors such as Unable to find a default server with Active Directory Web Services running. Knowing how to check if Active Directory Web Services is running helps IT teams diagnose problems quickly and keep directory management tools functional.
Enterprise-Grade Development Support From AAMAX.CO
Organizations that integrate their web platforms with enterprise identity systems need developers who understand both worlds. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. They build secure web portals and internal tools that integrate with directory services, single sign-on, and enterprise authentication. Through their web application development services, they deliver business applications that are secure, scalable, and aligned with your IT infrastructure.
What Active Directory Web Services Does
ADWS runs on domain controllers and listens on TCP port 9389. It allows remote management tools to query and modify Active Directory objects using web service protocols. The Active Directory PowerShell module depends on ADWS for cmdlets such as Get-ADUser, Get-ADComputer, and Set-ADGroup. If ADWS is stopped or unreachable, these cmdlets fail, even though traditional LDAP-based tools may continue to work.
Method 1: Check Using the Services Console
On a domain controller, press Windows key plus R, type services.msc, and press Enter. Scroll to Active Directory Web Services in the list. The Status column shows whether it is Running, and the Startup Type should normally be set to Automatic. If the service is stopped, right-click it and select Start. You can also connect the Services console to a remote domain controller by right-clicking Services (Local) and choosing Connect to another computer.
Method 2: Check Using PowerShell
PowerShell provides a fast way to check the service. Run Get-Service ADWS on a domain controller to view its status. To check a remote domain controller, run Get-Service -Name ADWS -ComputerName DC01, replacing DC01 with the server name. To start the service, use Start-Service ADWS, and to restart it, use Restart-Service ADWS. You can check ADWS on every domain controller in the domain by combining Get-ADDomainController -Filter * with a loop, though this requires at least one working ADWS instance.
Method 3: Check Using the Command Prompt
From a Command Prompt, run sc query ADWS to display the service state. To query a remote server, run sc \\DC01 query ADWS. A STATE value of RUNNING confirms the service is active. You can start it with sc start ADWS or net start ADWS.
Method 4: Verify Port 9389 Is Listening and Reachable
Even if the service is running, network issues can prevent clients from connecting. On the domain controller, run netstat -ano | findstr 9389 to confirm the port is listening. From a client machine, use Test-NetConnection DC01 -Port 9389 in PowerShell. If TcpTestSucceeded returns False, check Windows Firewall rules, network firewalls, and routing between the client and the domain controller.
Method 5: Test With Active Directory Cmdlets
A practical functional test is to run an Active Directory PowerShell cmdlet. Execute Get-ADDomain or Get-ADUser -Identity administrator. If the command returns results, ADWS is working. You can target a specific domain controller using the -Server parameter, such as Get-ADDomain -Server DC01, to test each controller individually.
Method 6: Review Event Viewer Logs
Event Viewer provides detailed information about ADWS behavior. Open Event Viewer and navigate to Applications and Services Logs, then Active Directory Web Services. Look for events indicating startup, shutdown, certificate problems, or errors. Event ID 1202 is a common warning indicating that ADWS could not find a valid certificate for SSL connections on port 3269, which may affect global catalog operations.
Common Reasons ADWS Is Not Running
- The service startup type was changed to Manual or Disabled.
- The service crashed due to configuration or resource issues.
- Required dependencies, such as Net.Tcp Port Sharing, are not running.
- Firewall rules block TCP port 9389.
- Certificate problems prevent secure connections.
- The domain controller is running an older version of Windows Server without ADWS installed.
Troubleshooting Steps
Start by setting the service startup type to Automatic and starting it. If it fails to start, check the Net.Tcp Port Sharing Service dependency and review the System and ADWS event logs for error messages. Verify that the Windows Firewall allows inbound traffic on port 9389 through the Active Directory Web Services rule. If clients receive the error about not finding a default server, ensure that at least one domain controller in their site is running ADWS and that DNS resolves domain controllers correctly. Restarting the domain controller may resolve transient issues, but schedule this carefully in production environments.
Monitoring ADWS Proactively
Rather than waiting for administrators to encounter errors, configure monitoring to alert when ADWS stops. Many infrastructure monitoring tools can track Windows service status and port availability. A scheduled PowerShell script that checks ADWS across all domain controllers and sends notifications is a simple yet effective solution for smaller environments.
Conclusion
Active Directory Web Services is critical for modern Active Directory management. You can check if it is running through the Services console, PowerShell, Command Prompt, port tests, functional cmdlet tests, and Event Viewer. By understanding common failure causes and implementing proactive monitoring, IT teams can keep directory management tools reliable and respond quickly when issues arise.
