run powershell command via ansible playbook

46 views
Skip to first unread message

John Veliss

unread,
Mar 22, 2021, 11:29:27 PM3/22/21
to Ansible Project
Can anyone tell me how I would add the below powershell command into a playbook

PowerShell.exe (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()

Abhijeet Kasurde

unread,
Mar 23, 2021, 12:34:26 AM3/23/21
to ansible...@googlegroups.com

On Tue, Mar 23, 2021 at 8:59 AM John Veliss <vel...@gmail.com> 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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/02ddbac9-54d5-4b68-8381-286b0d901f71n%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde
Reply all
Reply to author
Forward
0 new messages