About DSC errors

Welcome Forums General PowerShell Q&A About DSC errors

This topic contains 2 replies, has 2 voices, and was last updated by

1 year, 9 months ago.

  • Author
  • #67731

    Points: 0
    Rank: Member

    Not able to run get-dscconfiguration.
    Getting the following error:
    PS C:\WINDOWS\system32> Get-DscConfiguration
    WARNING: [NARINDERVERMA]: [] The GET operation will be carried against a pending configuration since the la
    test configuration has not converged yet.
    Get-DscConfiguration : PowerShell DSC resource MSFT_RoleResource failed to execute Get-TargetResource functionality with error
    message: Installing roles and features using PowerShell Desired State Configuration is supported only on Server SKU's. It is not
    supported on Client SKU.
    At line:1 char:1
    + Get-DscConfiguration
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager) [Get-DscConfig
    uration], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure,Get-DscConfiguration

  • #67732

    Points: 0
    Rank: Member

    There`s another one,here i am trying to setup a http pull server but getting the following error.
    At C:\Scripts\DSC1\Mod3\1.Config_HTTPPullServer.ps1:4 char:5
    + Import-DSCResource -ModuleName xPSDesiredStateConfiguration
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Multiple versions of the module 'xPSDesiredStateConfiguration' were found. You can run 'Get-Module -ListAvailable
    -FullyQualifiedName xPSDesiredStateConfiguration' to see available versions on the system, and then use the fully qualified name
    '@{ModuleName="xPSDesiredStateConfiguration"; RequiredVersion="Version"}'.
    At C:\Scripts\DSC1\Mod3\1.Config_HTTPPullServer.ps1:19 char:9
    + xDSCWebService PSDSCPullServer
    + ~~~~~~~~~~~~~~
    Undefined DSC resource 'xDSCWebService'. Use Import-DSCResource to import the resource.
    At C:\Scripts\DSC1\Mod3\1.Config_HTTPPullServer.ps1:33 char:9
    + xDscWebService PSDSCComplianceServer
    + ~~~~~~~~~~~~~~
    Undefined DSC resource 'xDscWebService'. Use Import-DSCResource to import the resource.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MultipleModuleEntriesFoundDuringParse

  • #67734

    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    The error messages are telling you what's wrong.

    You're attempting to use a Role resource on a client. That's not supported.

    You have multiple versions of one resource installed. Also not supported.

The topic ‘About DSC errors’ is closed to new replies.