Skip to content

Latest commit

 

History

History
92 lines (40 loc) · 2.27 KB

SCHEDULED-TASK-SETUP.md

File metadata and controls

92 lines (40 loc) · 2.27 KB

Automating Host-Policy Through the Windows Task Scheduler

Adding a scheduled task to perform the host-automation on a predetermined frequency.

Dislaimer: Not developed nor tested for Production instances.

Setting up

  • Move the automation install bundle to the following location:
{{ install-partition }}:\Program Files\CyberArk\

image-1

  • Open the Windows Task Scheduler

image-2

  • Select task Create Task...

image-3

  • Under General tab, copy the settings from below.

general

Note: This documentation was put together for demonstration purposes. You should never run a scheduled task as anything except for an account managed by the Password Manager (CPM) and managed centrally from the Vault.

  • Select the Triggers tab -> New...

image-4

  • Copy the settings in the screenshot below -> OK

image-5

  • Select Actions tab -> New...

image-6

  • In Edit Action window, copy the settings so they are identical to the screenshot below, including the following:
attribute value
Add arguments (optional) -ExecutionPolicy Bypass "{{ partition-letter }}:\Program Files\Host Automation\Automation\onboarding-service.ps1"

image-7

Testing

To test the job, simply right click the job in Task Scheduler -> Run

image-8