Guys I am really struggling here. Hoping you can help shed some light on my issue where google searching has not.
I am unable to import-module activedirectory without error:
PS> Import-Module ActiveDirectory
WARNING: Error initializing default drive: ‘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.’.
Then when I look at imported modules, I see its there:
PS> Get-Module
ModuleType Version Name ExportedCommands
Manifest 1.0.0.0 ActiveDirectory {Add-ADComputerServiceAccount, Add-ADDomainControllerPassw…
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con…
Then when I try ad cmdlets and syntax I get errors. Like the following:
PS> get-aduser -filter {Name -like jones}
Get-ADUser : 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 line:1 char:1
- Get-ADUser “jones”
-
+ CategoryInfo : ResourceUnavailable: (*jones*:ADUser) [Get-ADUser], ADServerDownException + FullyQualifiedErrorId : Unable to contact the server. This may be because this server does not exist, it is curr ently down, or it does not have the Active Directory Web Services running.,Microsoft.ActiveDirectory.Management.Co mmands.GetADUser
Any ideas here?
- Windows 7 SP1
- Windows .NET Framwork 4.0 installed
- RSAT x64 for win7 installed
- I am running these commands from the win7 workstation. I do not have access to the DC’s.
- I can access active directory users and computers just fine. It looks like the DC’s are running SRV 2008 R2.
Thanks,
Tom