Problem description
Powershell is having an issue with a certain parameter and is requesting to use one that is not a part of the Dsc_xpackage resource according to the documentation. It seems to want me to use the Parameter "Path" but the closest thing I can see in the documentation is "dsc_path"
Verbose logs
no parameter named 'path' on Dsc_xpackage[sophos_install_agent]
dsc_xpackage: PowerShell DSC resource DSC_xPackageResource failed to execute Get-TargetResource functionality with error message: The specified Path 'D:\CMMain8' does not appear to specify an EXE or MSI file and as such is not supported.
Parameter name: Path
DSC configuration
dsc_xpackage { 'sophos_install_agent':
dsc_ensure => present,
dsc_name => 'Sophos Endpoint Agent',
#dsc_productid => '',
dsc_path => $test,
dsc_arguments => '--quiet',
require => Reboot['reboot_when_refreshed_exclude_wau_rename'],
notify => Reboot['sophos_reboot_when_refreshed'],
}
Suggested solution
Attempt to replicate issue in a different envirionment.
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version
Problem description
Powershell is having an issue with a certain parameter and is requesting to use one that is not a part of the Dsc_xpackage resource according to the documentation. It seems to want me to use the Parameter "Path" but the closest thing I can see in the documentation is "dsc_path"
Verbose logs
DSC configuration
dsc_xpackage { 'sophos_install_agent': dsc_ensure => present, dsc_name => 'Sophos Endpoint Agent', #dsc_productid => '', dsc_path => $test, dsc_arguments => '--quiet', require => Reboot['reboot_when_refreshed_exclude_wau_rename'], notify => Reboot['sophos_reboot_when_refreshed'], }Suggested solution
Attempt to replicate issue in a different envirionment.
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version