I just recently setup a PS Web server for my team to be able to share PS scripts. On two of my scripts that manupliate AD I am getting errors.
I have verified that the AD module is available.
Here is one of the errors
Get-ADComputer : Unable to contact the server. This may be because this server does not exist, it is currently down,
or it does not have the Active Directory Web Services running.
At C:\PSScripts\Create Server LADM Groups.ps1:1 char:19
- $ServerAccounts = Get-ADComputer -Filter * -SearchBase 'OU=Servers,DC=info,DC=co …
- CategoryInfo : ResourceUnavailable: ( [Get-ADComputer], ADServerDownException
- FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADComputer
Thanks in advance.