I have recently rebuilt my Windows 8.1 desktop due to Powershell issues. All was fine until last Thursday when Powershell stopped working...again.
If I run any AD command (Get-aduser) i get the error:-
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.
If I try and remote into the DC $session=new-pssession -server DC
New-PSSession : [DC] Connecting to remote server DC failed with the following error message : The handle is invalid. For more information, see the
about_Remote_Troubleshooting Help topic.
I can run these commands fine from the DC itself and from other servers on the network. However, not from my machine, which has my certificates and all my tools. I have also specified the DC to run the query on ( 6 different ones), but get the same error
ADWS is running on the servers (hence why other systems work) although I have restarted it as a troubleshoot. I have added myself to Domain Admins as a test, but get same error.
Powershell versions between my PC and working PC are the same (4.0, WSManStack 3.0, PSRemotingProtocol 2.2)
I see this is quite a common issue, but as yet cannot see a solution. I do not want to have to write my script using RDP to another box, I should be able to do it from my PC. WHy is this?