locked
get-crmsetting & The Caller Was Not Authenticated By The Service RRS feed

  • Question

  • I am executing the following in powershell

    PS c:\users\[crmadmin]> add-pssnapin microsoft.crm.powershell
    PS c:\users\[crmadmin]> get-crmsetting tracesettings

    This results in
    Get-CrmSetting : The caller was not authenticated by the service.
    At line:1 char:15 + get-crmsetting <<<< tracesettings

    Note that get-executionpolicy gives me restricted. set-executionpolicy unrestricted give me an "Access to the registry key HKLM...\Microsoft.PowerShell is denied". I am not sure this is really the issue though because with a previous installation the two command listed above did work just fine.

    Friday, June 29, 2012 6:49 AM

All replies

  • How does the crm snapin authenticate the user? Does it check settings in registry, one of the SQL databases (which one?), Active Directory, ADFS, ...? This will at least point me into some direction to more closely investigate.

    Btw, in a previous installation this did work just fine. The difference this time is that ADFS is installed on the CRM server running on Server 2008 instead of being installed on the SBS server. ADFS 2.0 was installed by directly downloading it rather than through the roles (same way as I did it on SBS before).

    Friday, June 29, 2012 8:03 PM