You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid MOF definition for node 'localhost': Exception calling "ValidateInstanceText" with "1" argument(s): "Convert
property 'Headers' value from type 'INSTANCE' to type 'INSTANCE[]' failed At line:27, char:2 Buffer: wnloadFile_Config"; };^ insta "
Once the Headers is omitted then it works and generates the MOF file.
However when you run the push command 👍
InvalidOperation: The PowerShell DSC resource DSC_xRemoteFile from module <xPSDesiredStateConfiguration,9.1.0> does not exist
at the PowerShell module path nor is it registered as a WMI DSC resource.
Verbose logs
Invalid MOF definition for node 'localhost': Exception calling "ValidateInstanceText" with "1" argument(s): "Convert
property 'Headers' value from type 'INSTANCE' to type 'INSTANCE[]' failed At line:27, char:2 Buffer: wnloadFile_Config"; };^ insta "
InvalidOperation: The PowerShell DSC resource DSC_xRemoteFile from module <xPSDesiredStateConfiguration,9.1.0> does not exist
at the PowerShell module path nor is it registered as a WMI DSC resource.
Problem description
when running the example configuration to generate MOF
xRemoteFile_DownloadFile_Config -DestinationPath "$env:SystemDrive\fileName.jpg" -Uri 'http://www.contoso.com/image.jpg' -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer -Headers @{'Accept-Language' = 'en-US'}
I get this exception:
Once the Headers is omitted then it works and generates the MOF file.
However when you run the push command 👍
Start-DscConfiguration –Path xRemoteFile_DownloadFile_Config –Wait -Force -Verbose
It errors out with this error:
Verbose logs
DSC configuration
Suggested solution
Nope
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version
The text was updated successfully, but these errors were encountered: