Created
February 13, 2018 17:50
-
-
Save infamousjoeg/990e4e68dcb35fff395e1a34ebb74399 to your computer and use it in GitHub Desktop.
GetPassword from AIM CCP using PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-SkipCertificateCheck
is the equivalent to ignoring SSL. Use with caution and not in Production!