'Active directory web service (ADWS) is missing on Windows 10 Pro

I want to run below command on the Windows 10 Powershell but I am getting error:

PS C:\WINDOWS\system32> Get-ADUser -filter *
Get-ADUser: Unable to find a default server with Active Directory Web Services running. 

After googling error I got few links for starting the ADWS service.
But I am not able to find any document/link to install the ADWS service on my Windows 10 Pro Laptop.

I did try to find the instruction to install the ADWS but no instructions found.
Can someone please point me to the steps to install the ADWS for Windows 10 Pro.

I have all the "RSAT" modules installed on my Laptop.

PS C:\WINDOWS\system32> Get-WindowsCapability -Online -Name "RSAT*" | Add-WindowsCapability -Online

I have read below links:

https://docs.microsoft.com/en-us/services-hub/premier/health/remediation-steps-ad/configure-the-active-directory-web-services-adws-to-start-automatically-on-all-servers

https://social.technet.microsoft.com/Forums/Lync/en-US/b84c5dd6-cbf7-43ca-9a6a-5696360d3957/active-directory-web-service-not-available?forum=winserverDS



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source