KB ID 0001275
Problem
I was trying to get a list of all users on a client’s domain that had either a logon script, profile, or a mapped drive that was being set on their AD user object. But when I ran the command I got this error;
Get-ADUser : Unable to find a default server with Active Directory Web Services running.
Solution
Active Directory Web services was introduced in Server 2008 R2, but I was running the command on a 2012 R2 server? Well the problem is the main server onsite was a Small Business Server. To get this command to run successfully I needed to run it again but target a particular domain controller by adding “-Server {Server-Name}” to the command;
Note: Obviously MAKE SURE that the AD Web Services service is actually running on the server you are targeting (run services.msc).
Related Articles, References, Credits, or External Links
NA