I am trying to enable win rm in mixed domain mode on a new machine.
From another work station, I can connect with the following command:
Enter-PSSession -ComputerName 89.251.114.100 -Credential $mycred
I have ran Enable-PSremoting on the new machine but when I execute the following command, I get:
Enter-PSSession : Connecting to remote server failed with the following error message : Access is denied. For more info
rmation, see the about_Remote_Troubleshooting Help topic.
At C:\Users\Dev1\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:93 char:17
+ Enter-PSSession <<<< -ComputerName 89.251.114.100 -Credential $mycred
+ CategoryInfo : InvalidArgument: (00.000.000.000:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
It is the InvalidArgument that strikes me as odd.
Interestingly, I can execute remote commands with:
powershell.exe -ExecutionPolicy unrestricted C:\root\deploy.ps1 -inputformat none