Skip to content

An over-engineered solution to creating Scheduled Tasks that change a CyberArk-managed account's password at a specific time.

Notifications You must be signed in to change notification settings

aaearon/New-ScheduledPASAccountPasswordChange

Repository files navigation

New-ScheduledPASAccountPasswordChange

Uses Windows Scheduled Tasks, AAM Credential Provider/Central Credential Provider, and Export-Clixml to schedule password changes for CyberArk-managed accounts.

How to use

Requirements

On the machine you are creating the Scheduled Task on:

Creating a Scheduled Task

  1. Clone the repository to the machine you want the Scheduled Task to run on.
  2. Open an elevated PowerShell prompt and run Import-Module New-ScheduledPASAccountPasswordChange.
  3. Run New-ScheduledPASAccountPasswordChange
$arguments = @{
    AccountId = '12_7'
    AppId = 'scheduledPasswordChangeScript'
    ChangeTime = ((Get-Date).AddSeconds(5))
    PvwaAddress = 'https://comp01'
    Password = ("VeryComplex!23" | ConvertTo-SecureString -AsPlainText -Force)
    Safe = 'CyberArk'
    UserName = 'serviceAccount01'
    Address = '192.168.0.50'
    CentralCredentialProviderURL = 'https://comp01'
}

New-ScheduledPASAccountPasswordChange @arguments

Double check in Task Scheduler that your new Task has been created.

About

An over-engineered solution to creating Scheduled Tasks that change a CyberArk-managed account's password at a specific time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published