Can you share the logs from your puppet run showing the error(s) received?
Also, you may want to look at the module https://forge.puppet.com/puppet/iis,
which may either handle this already, or be a good example of code you can
build on if the feature is not present.
Rob Nelson
All,
I have a requirement for automating the setup of IIS through puppet
enterprise, I have a manifest which is not fully executing a powershell
command utilising 'exec' (see below)
*exec { 'SetvirtualDirectoryDefaultsuserName': command =>
'$(Set-ItemProperty -Path