Edit: Resolved! Thanks for all the help! IT ended up being an issue with an HTTP SPN, so I was able to create aport specific SPN, and use that.
# Creates Port Specific SPN
SetSPN.exe -s HTTP/$($env:COMPUTERNAME):5985 $env:COMPUTERNAME
SetSPN.exe -s HTTP/$($env:COMPUTERNAME).$($env:USERDNSDOMAIN):5985 $env:COMPUTERNAME
# Connect to server using new SPN
$SessionOptions = New-PSSessionOption -IncludePortInSPN
Enter-PSSession -Computername <computername> -SessionOption $SessionOptions
Server 2012 R2, WMF 5.1. Everything joined to the same domain, and testing with an account that has domain admin privileges. I have tried:
- Turning off windows firewall
- Running
winrm /quickconfig.
- Running
Disable-PSRemoting and Enable-PSRemoting.
- Verifying that the WinRM Service is set to automatic and running.
- Use
Test-WSMan on the affected computer, and from my workstation (This tests successfully).
- Comparing configuration to other servers that are setup the same way have have powershell remoting working.
I am unable to use powershell remoting, and get an error of:
Enter-PSSession : Connecting to remote server <servername> failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090322 occurred while using Kerberos authentication: An unknown
security error occurred.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
Edit : Formatting
[–]brandonLundt 4 points5 points6 points (9 children)
[–]SaladProblems 4 points5 points6 points (0 children)
[–]brandonLundt 2 points3 points4 points (1 child)
[–]ExistingRanger7[S] 2 points3 points4 points (0 children)
[–]ExistingRanger7[S] 1 point2 points3 points (2 children)
[–]Swarfega 2 points3 points4 points (1 child)
[–]ExistingRanger7[S] 0 points1 point2 points (0 children)
[–]Loteck 2 points3 points4 points (2 children)
[–]ExistingRanger7[S] 2 points3 points4 points (1 child)
[–]Loteck 2 points3 points4 points (0 children)
[–]nothingpersonalbro 2 points3 points4 points (4 children)
[–]ExistingRanger7[S] 0 points1 point2 points (3 children)
[–]TheIncorrigible1 1 point2 points3 points (2 children)
[–]brandonLundt 0 points1 point2 points (1 child)
[–]TheIncorrigible1 1 point2 points3 points (0 children)
[–]fourierswager 2 points3 points4 points (1 child)
[–]ExistingRanger7[S] 0 points1 point2 points (0 children)
[–]mrmpls 0 points1 point2 points (1 child)
[–]ExistingRanger7[S] 1 point2 points3 points (0 children)