简体   繁体   中英

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://learn.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.tec.net.microsoft.com/Forums/Lync/en-US/b84c5dd6-cbf7-43ca-9a6a-5696360d3957/active-directory-web-service-not-available?forum=winserverDS

The Powershell ActiveDirectory examples that you find on the web usually assume you are using a PC thats on the domain, and you are logged into that PC as a domain user. But often these days thats not the case.

These days people are often logged into their own PC as 'Joe' and connected via VPN to a company's domain, with the DC running in Azure somewhere.

And when its like that, you have to tell the cmdlet where the DC is, and supply some credentials. So you do that like this:

Get-ADUser -Server (name or IP address of DC) -Credential (Get-Credential) -filter *

The 'Get-Credential' bit will interactively ask you for credentials - you need to supply credentials for a user in the domain

$Server = (nslookup $env:USERDNSDOMAIN)[0].split(' ')[2]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM