已答复 CRM with Powershell Sessions

  • 5 มีนาคม 2555 14:47
     
      มีโค้ด

    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!

ตอบทั้งหมด

  • 6 มีนาคม 2555 2:14
    ผู้ดูแล
     
     

    Hi,

    I haven't ever work with CRM, so I would like suggest you add the registry key according to message.

    And maybe, we could disable firewall and disable UAC first and then give it a try.

    In addition, hope the following links helpful:

    http://technet.microsoft.com/en-us/library/dd315384.aspx

    http://blogs.technet.com/b/heyscriptingguy/archive/2009/10/29/hey-scripting-guy-october-29-2009.aspx

    Best Regards,

    Yan Li


    Yan Li

    TechNet Community Support

  • 6 มีนาคม 2555 20:03
     
     คำตอบ

    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
    •