choco install features the alternative sources windowsfeatures and webpi.
cChocoPackageInstaller { Ensure = 'Present'; Source = 'windowsfeatures' } works perfectly but cChocoPackageInstaller { Ensure = 'Absent'; Source = 'windowsfeatures' } does not, because the UninstallPackage function doesn't pass on the source parameter.
choco install
features the alternative sourceswindowsfeatures
andwebpi
.cChocoPackageInstaller { Ensure = 'Present'; Source = 'windowsfeatures' }
works perfectly butcChocoPackageInstaller { Ensure = 'Absent'; Source = 'windowsfeatures' }
does not, because the UninstallPackage function doesn't pass on the source parameter.