Please see win_shell - https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_shell_module.html and win_command - https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_command_module.html
On Tue, Mar 23, 2021 at 8:59 AM John Veliss <[email protected]> wrote: > Can anyone tell me how I would add the below powershell command into a > playbook > > PowerShell.exe (New-Object -ComObject > Microsoft.Update.AutoUpdate).DetectNow() > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/02ddbac9-54d5-4b68-8381-286b0d901f71n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/02ddbac9-54d5-4b68-8381-286b0d901f71n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thanks, Abhijeet Kasurde -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFwWkHrBLQJQ4tuD%3DC1Oyi%3DuKBUGiQsWHw6Gf8zU9svvJYEPKQ%40mail.gmail.com.
