Sessions with Microsoft CRM

rated by 0 users
This post has 3 Replies | 1 Follower

Top 75 Contributor
Posts 32
crad14 Posted: 03-01-2012 10:01 AM

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!

Top 10 Contributor
Posts 618
Microsoft MVP
Top Contributor

What do you get when you use Invoke-Command to send the whole code as a scriptblock?

Invoke-Command { your code here } -computername target

Top 75 Contributor
Posts 32

Hey Tobias, Thanks for the reply. I ended up being able to resolve this...I probably should have put my resolution here...

 

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

Top 10 Contributor
Posts 618
Microsoft MVP
Top Contributor

great! Thanks for sharing... :-)

Page 1 of 1 (4 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.