Author Posts

October 3, 2017 at 4:37 pm

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...

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

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

October 4, 2017 at 7:02 am

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