On Thu, Sep 1, 2016 at 3:00 AM, megha sharma <megha19sharm...@gmail.com> wrote:
> Hello,
>
> Where can I find the output logs after running exec command on windows
> puppet agent.
>
> Thanks,
> Megha
>
> --
> 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/752a48c3-5c8a-494e-8111-51fb4f9a5500%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Hi Megha,

The output should be recorded as an event in Event Viewer (in Windows
Logs => Application). You'll need to specify `logoutput => true` in
your exec resource to actually log the output though, ie:

For example with:

    exec { 'my command' :
      command => 'Write-Host "hello world"',
      provider    => 'powershell',
      logoutput  => true,
    }

-- 
Moses Mendoza
Puppet Labs

-- 
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/CA%2B421WZbtHL%3Dftmskg4D0hn%2Bi%2BQxFKZe_ym9pKRKrZE8adDD7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to