DSC- Install-WindowsFeature WebDAV-Redirector unable to install on Win 2016

This topic contains 1 reply, has 1 voice, and was last updated by  Deep 2 weeks, 5 days ago.

  • Author
    Posts
  • #81173

    Deep
    Participant

    Hello Guys,

    I'm unable to execute the below snippet on the windows server 2016, however, I'm able to install other features such as NET-Framework-Core using DSC on the same server.
    I'm able to install Install-WindowsFeature WebDAV-Redirector with PowerShell (NOT WITH DSC MODULE) on the same server.

    please let me know where I'm going wrong...

    Script
    Configuration MachineConfiguration
    {
    Node localhost
    {
    WindowsFeature WebDav
    {
    Ensure = "Present"
    Name = "Install-WindowsFeature WebDAV-Redirector"
    }
    }
    }
    MachineConfiguration -OutputPath C:\dsc
    Start-DscConfiguration -Path c:\dsc -Wait -Verbose -Force
    ERROR

    PowerShell DSC resource MSFT_RoleResource failed to execute Test-TargetResource functionality with error message: The requested feature Install-WindowsFeature WebDAV-Redirector is not found on the target machine.
    + CategoryInfo : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName : localhost

    Thank you in advance

  • #81214

    Deep
    Participant

    I found what I was doing wrongly sorry guys for the silly question...

You must be logged in to reply to this topic.