Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Created February 13, 2018 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infamousjoeg/990e4e68dcb35fff395e1a34ebb74399 to your computer and use it in GitHub Desktop.
Save infamousjoeg/990e4e68dcb35fff395e1a34ebb74399 to your computer and use it in GitHub Desktop.
GetPassword from AIM CCP using PowerShell
$response = Invoke-RestMethod -Method "GET" -Uri "https://components.cyberark.local/AIMWebService/api/Accounts?AppID=RESTExamples&Safe=T-APP-CYBR-RESTAPI&Folder=Root&Object=Database-MicrosoftSQLServer-sql01.cyberark.local-Svc_BambooHR" -Headers @{ "Content-Type" = "application/json" } -SkipCertificateCheck
Write-Host "Password is: ${response.Content}"
Write-Host "----"
Write-Host $response
@infamousjoeg
Copy link
Author

-SkipCertificateCheck is the equivalent to ignoring SSL. Use with caution and not in Production!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment