DSC Report Server Error

Welcome Forums DSC (Desired State Configuration) DSC Report Server Error

This topic contains 0 replies, has 1 voice, and was last updated by  Preston R 3 months, 4 weeks ago.

  • Author
    Posts
  • #126117

    Participant
    Points: 34
    Rank: Member

    I have 2 test boxes that when I enable report server in there config dsc gets borked. It reports.

    Attempting to send the status report using Report Manager WebDownloadManager. AgentId is B6BB72F4-ED35-11E8-8695-00155D646802.

    followed by this error.

    Job {FAD7B32D-EDD4-11E8-8698-00155D646802} :
    Message Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
    HResult -2146233087
    StackTrack at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
    at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
    at Microsoft.PowerShell.DesiredStateConfiguration.Internal.DownloadManagerBase.SendStatusReport(IntPtr metaConfigHandle, IntPtr& errorInstanceHandle, IntPtr statusInformation, UInt32 reportType, UInt32& getActionStatusCode)

    After this DSC will not process and trying to update the LCM gives this error.

    Registration of the Dsc Agent with the server https://XXXXX.com:443/PSDSCPullServer.svc failed. The underlying error is: The PowerShell DSC resource is not a valid Desired
    State Configuration resource. .
    + CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : Pull_Registration_ManagedPluginFailure
    + PSComputerName : DESKTOP-AGIC4VA

    If I manually clear the MOF files in C:\Windows\System32\Configuration and remove the reportserver from the MOF then DSC operates without issue.

    Here is the configuration

    [DSCLocalConfigurationManager()]
    configuration kioskMetaConfiguration
    {
    param
    (
    [ValidateNotNullOrEmpty()]
    [string]$NodeName = "$env:COMPUTERNAME",
    
    [ValidateNotNullOrEmpty()]
    [string]$RegistrationKey,
    
    [ValidateNotNullOrEmpty()]
    [string]$ServerName,
    
    [string]$port = '443',
    
    [ValidateNotNullOrEmpty()]
    [string]$build
    )
    
    $kioskConfigName = "kiosk_settings_$build"
    
    Node $NodeName
    {
    Settings
    {
    RefreshMode = 'Pull'
    ConfigurationModeFrequencyMins = 60
    RefreshFrequencyMins = 120
    ConfigurationMode = 'ApplyAndAutoCorrect'
    RebootNodeIfNeeded = $true
    ActionAfterReboot = 'ContinueConfiguration'
    AllowModuleOverwrite = $true
    }
    
    ConfigurationRepositoryWeb Kiosks-PullSrv
    {
    ServerURL = "https://$ServerName`:$port/PSDSCPullServer.svc" # notice it is https
    RegistrationKey = $RegistrationKey
    ConfigurationNames = @("dsc_settings", "ntp_settings", "security_settings", "update_settings", "kiosk_settings_$build" )
    }
    
    ReportServerWeb Kiosks-PullSrv
    {
    ServerURL = "https://$ServerName`:$port/PSDSCPullServer.svc" # notice it is https
    }
    
    PartialConfiguration dsc_settings
    {
    Description = "dsc_settings"
    ConfigurationSource = @("[ConfigurationRepositoryWeb]Kiosks-PullSrv")
    }
    
    PartialConfiguration ntp_settings
    {
    Description = "ntp_settings"
    ConfigurationSource = @("[ConfigurationRepositoryWeb]Kiosks-PullSrv")
    }
    
    PartialConfiguration security_settings
    {
    Description = "security_settings"
    ConfigurationSource = @("[ConfigurationRepositoryWeb]Kiosks-PullSrv")
    }
    
    PartialConfiguration update_settings
    {
    Description = "update_settings"
    ConfigurationSource = @("[ConfigurationRepositoryWeb]Kiosks-PullSrv")
    }
    
    PartialConfiguration $kioskConfigName
    {
    Description = "kiosk_settings_$build"
    ConfigurationSource = @("[ConfigurationRepositoryWeb]Kiosks-PullSrv")
    }
    }
    }
  • #136271

    Participant
    Points: 9
    Rank: Member

    Did you ever got it working with the report server?

The topic ‘DSC Report Server Error’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort