locked
Issue Updating Maximum Controls for a Dashboard in CRM 2015 RRS feed

  • Question

  • The instructions at the link below don't seem to work for CRM 2015. Is that true?

    https://msdynamicscrmblog.wordpress.com/2014/05/23/how-to-change-the-dashboardsettings-of-maximum-controls-limit-in-dynamics-crm20112013/

    I can get a power shell window

    I can add the snap in

    I can get $setting = Get-CRMSetting

    It has a problem with DashboardSettings

    Get-CrmSetting : The underlying connection was closed: An unexpected error occurred on a send.
    At line:1 char:12
    + $setting = Get-CrmSetting -SettingType DashboardSettings
    +            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (Microsoft.Crm.P...rmSettingCmdlet:GetCrmSettingCmdlet) [Get-CrmSetting
       ], WebException
        + FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.GetCrmSettingCmdlet

    Monday, October 19, 2015 7:24 PM

Answers

  • We had to add some variables to get it to work

    Add-PSSnapin Microsoft.Crm.PowerShell

    $secpasswd = ConvertTo-SecureString "XXXXXXXXXXXXXXXXXXX" -AsPlainText -Force

    $mycreds = New-Object System.Management.Automation.PSCredential ("domain\ID", $secpasswd)

    $setting = Get-CrmSetting -Credential $mycreds -DwsServerUrl http://server -SettingType DashboardSettings

    $setting.MaximumControlsLimit = 9

    Set-CrmSetting  -Credential $mycreds -DwsServerUrl http://server -Setting $setting

    • Marked as answer by malobk Thursday, November 5, 2015 8:46 PM
    Thursday, November 5, 2015 8:46 PM