none
CRM with Powershell Sessions

    คำถาม

  • With powershell I am trying to do this...

    enter-PSSession -ComputerName $server 

    Add-PSSnapin Microsoft.Crm.PowerShell

    Get-CrmSetting TraceSettings



    But it keeps giving me this errorr

    Please set Registry entry DeploymentWSUrl='http://FQN_DWS_MACHINE_NAME/XrmDeployment/2011/deployment.svc' on
    Software\Microsoft\MSCRM on LocalMachine
        + CategoryInfo          : NotSpecified: (:) [Get-CrmSetting], ArgumentException
        + FullyQualifiedErrorId : System.ArgumentException,Microsoft.Crm.PowerShell.GetCrmSettingCmdlet

    When I rdp into the box I can run the Get-CRmsetting command just fine...

    I check the registry but I don't see any key like this, and besides I am not sure what the registry key would accomplish anyway.

    I am hoping someone can help me resolve this so I can do some remote stuff with CRM!

    5 มีนาคม 2555 14:47

คำตอบ

  • Thanks, I am pretty familiar with sessions though... just not crm... 

    But I was able to resolve it. So in case anyone else comes by....

    I did need to add that string to the registry...however I couldn't figure out what url to use....this one finally worked

    (get-crmsetting webaddresssettings).helpserverurl      

    The value in that property Was the url I used...then I added the /XrmDeployment/2011/deployment.svc    Then everything seemed to work fine

    • ทำเครื่องหมายเป็นคำตอบโดย ConRam 6 มีนาคม 2555 20:04
    6 มีนาคม 2555 20:03

ตอบทั้งหมด