Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to a server and get a new token (this should be a non-interactive process for the Scheduler).
  2. Encrypt the token with Windows DPAPI ensuring the script is running as the same Windows User as the scheduler service.
  3. Create a base64 Unicode string from the encrypted token
  4. Modify the Scheduler  Profile  file (which is in .JSON format) replacing the password on the affected connection with the base64 string.
  5. Restart the Scheduler service OR select ‘Poll for Status and Refresh  Profile’ from RED for the Scheduler.

Anchor
encryptWithDPAPI
encryptWithDPAPI
Creating Encrypted Base-64 Unicode strings using PowerShell

Example PowerShell script to create an encrypted base-64 Unicode string using Windows DPAPI:

...