We have CRM 2013 On-Prem. Configured IFD. Works fine.
But when I run powershell cmdlet I am getting following error.
PS C:\Windows\system32> Get-CrmServer
Get-CrmServer : Source : mscorlib
Method : HandleReturnMessage
Date : 3:52:19 PM
Time : 5/12/2014
Error : The caller was not authenticated by the service.
Stack Trace :
======================================================================================================================
Inner Exception Level 1 :
Source : System.ServiceModel
Method : ThrowIfNegotiationFault
Date : 3:52:19 PM
Time : 5/12/2014
Error : The request for security token could not be satisfied because authentication failed.
Stack Trace :
======================================================================================================================
At line:1 char:1
+ Get-CrmServer
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Crm.P...CrmServerCmdlet:GetCrmServerCmdlet) [Get-CrmServer], Sec
urityNegotiationException
+ FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.GetCrmServerCmdlet