pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
293 stars 91 forks source link

[500] error when initiating psPAS session #269

Closed miardman009 closed 4 years ago

miardman009 commented 4 years ago

Invoke-PASRestMethod : [500] Could not load type 'adsc' from assembly 'CyberArk.Services.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=40be1dbc8718670f'. At line:580 char:19

pspete commented 4 years ago

Based on the detail you have provided, the issue does not appear to relate to psPAS.

$Request = @{
    "Uri" = "https://<Your-PVWA>/PasswordVault/api/Auth/Cyberark/Logon"
    "Body" = New-Object -Property @{"username" = "SomeUser"; "password" = "SomePassword" } -TypeName psobject | ConvertTo-Json
    "Method" = "POST"
    "ContentType" = "application/json"
}

Invoke-RestMethod @Request