I am trying to use a puppet module to kick off a powershell script in the background. Start-Job appears to be the best choice for this, but the combination of puppet and Start-Job is not producing the results I would expect. Here are some examples of different options I have tried (all three work from the powershell command line on the node in question). All of these execs return "executed successfully," but fail to actually run the script. Any ideas?
exec { 'foo': command => "Start-Job C:/Windows/foo.ps1", provider => "powershell" } exec { 'foo': command => "Start-Job -ScriptBlock {C:/Windows/foo.ps1}", provider => "powershell" } exec { 'foo': command => "Start-Job -File C:/Windows/foo.ps1", provider => "powershell" } -- 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/81ddfefb-ea11-4cc5-bd08-05a62db0fa5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.