How can I automate the restart of services for AAI on Windows?
Release : 6.4.2-2
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
There are a few ways to accomplish this via the Windows CLI or Powershell.
Either of these options could be called from an Autosys job or from Windows Scheduled Tasks.
1. Through a batch script that stops and then starts the AAI service.
You could create a simple batch script that runs:
net stop "Automic Automation Intelligence"
net start "Automic Automation Intelligence"
2. Through a powershell script that restarts the service with 1 command.
Get-Service "Automic Automation Intelligence" | Select-Object | Restart-Service
You will save that file as *.ps1 file that would have to be invoked via powershell on the AAI server.