I am using window server 2016. I get this error every-time “Unable to Find a Default Server With Active Directory Web Services Running” when i run the the following command and other get-commands like Get-ADComputer, Get-ADgroupmember.
Get-ADUser -Filter * -Property * | Select-Object Name | Export-CSV D:\Users\file.csv -NoTypeInformation -Encoding UTF8
Any idea please how can i get rid of this error and execute my command.
Thank you