How can I automate the restart of services for AAI on Windows?
search cancel

How can I automate the restart of services for AAI on Windows?

book

Article ID: 241976

calendar_today

Updated On: 05-18-2022

Products

Automation Analytics & Intelligence

Issue/Introduction

How can I automate the restart of services for AAI on Windows?

Environment

Release : 6.4.2-2

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

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.