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 "IIS:\Sites\MainWebSite" -Name 
virtualDirectoryDefaults.userName -Value domain\username)',  provider => 
powershell, }*

the powershell command works perfectly if run direct from a powershell 
console

Where am I going wrong?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3923f695-665e-47ff-8029-b591ffb6dbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to