windows host automation

19 views
Skip to first unread message

Sakshi Jain

unread,
Aug 19, 2021, 5:35:14 AM8/19/21
to ansibl...@googlegroups.com
For windows host 

How to write tasks in ansible :

  1. Login into RDP machine 
  2. Login into other machines from RDP machine 
  3. Read email before starting the patching in the scheduled time
  4. Run any commands in rdp machine , like below :
  5. To shutdown : shutdown /r /f /m \\<servername> 
  6. Reboot status : systeminfo /s <servername> | find “ System Boot Time “
  7. Verify the timezone 
  8. Uptime of the server , store it in a file 
  9. Check ToNCR task from task scheduler , task is scheduled as cron job in every 5minutes 
  10. Send email to predefined recipients for task update 
  11. Read logs , scheduler logs , hmlogs , publish logs 

rajtheco...@gmail.com

unread,
Sep 22, 2021, 6:36:13 AM9/22/21
to Ansible Development
I am not sure Ansible can read mail, however you can use the win_updates module to patch your windows machine
Reply all
Reply to author
Forward
0 new messages