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!

    2012년 3월 5일 월요일 오후 2: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 2012년 3월 6일 화요일 오후 8:04
    2012년 3월 6일 화요일 오후 8:03

모든 응답