Server 2016 Core + PsDscRunAsCredential

Welcome Forums DSC (Desired State Configuration) Server 2016 Core + PsDscRunAsCredential

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

1 year, 9 months ago.

  • Author
  • #72466

    Points: 0
    Rank: Member

    We've been running our DSC on Windows 2012 R2 GUI and Core for a while and it's been working perfectly. Recently we decided to move to 2016 GUI and Core. Running a consistency check works perfectly fine on Windows 2016 GUI (1607 + May CU), however when running a consistency check on Windows 2016 Core, every resource using PsDscRunAsCredential gets an "The filename or extension is too long" error.

    I thought maybe it was a certificate issue but I double checked our certificate settings against and they have the correct settings.

    VERBOSE: [S16AUMDC01TST01]: LCM:  [ Start  Resource ]  [[cScheduleTask]PowershellHelpUpdateScheduledTask]
    VERBOSE: [S16AUMDC01TST01]: LCM:  [ Start  Test     ]  [[cScheduleTask]PowershellHelpUpdateScheduledTask]
    VERBOSE: [S16AUMDC01TST01]: LCM:  [ End    Test     ]  [[cScheduleTask]PowershellHelpUpdateScheduledTask]  in 0.0470 seconds.
    Invoke-CimMethod : The filename or extension is too long
    At C:\Program Files\WindowsPowerShell\Modules\BVISMServerEnforcer\Functions\Public\Invoke-BVEnforcerCheck.ps1:20 char:5
    +     Invoke-CimMethod -CimSession $ServerName -Name PerformRequiredCon ...
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : AuthenticationError: (:) [Invoke-CimMethod], CimException
        + FullyQualifiedErrorId : Win32Error:206,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand
        + PSComputerName        : s16aumdc01tst01

    Anyone have any ideas?

  • #72611

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

    I've pinged a few folks on this.

  • #72671

    Points: 0
    Rank: Member

    Thank you very much Don. I've discovered the issue exists on both Core and GUI. I've consolidated all the information on this post here

    If you can close this post that would be great.

The topic ‘Server 2016 Core + PsDscRunAsCredential’ is closed to new replies.

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