search cancel

How can I automate the restart of the Automic Automation Intelligence service on Windows?

book

Article ID: 243797

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

How can I automate the restart of the Automic Automation Intelligence service on Windows?

Environment

Release : 6.4.2-2

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

1. Open a note pad and copy the line below into it and save the file as a *.ps1 file which is a Powershell script.

 Get-Service "Automic Automation Intelligence" | Select-Object | Restart-Service 

 

2. Open Windows Task Scheduler, right click on Task Scheduler and select "Create Task.." like below:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=v9OTMKpnXNpeJYv2eIIR0w==

3. Make sure the options below were selected:

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=0I8aivSJ+thmioZLsqDzVA==

 

4. On the "Triggers" tab set the frequency of when you want this task to run.

 

5. On the Actions tab, select Add action, then in the "Program/script" box enter "powershell.exe".

In the "Add Arguments" box enter "-File <Path to .ps1 file>\fileName.ps1

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=5KDhOZZZZTsY3G0eGGlRrw==

6.  On the settings tab make sure "Allow task to be run on demand" is selected so you can test manually triggering the scheduled task.

 

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=6TuQ4y4qQTq2esrl4PBLKA==

 

7. You can test by right clicking the Task and selecting Run, and verify the Automic Automation Intelligence service gets restarted.

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=y1jE4La+SKr6upCfbHHAdw==