pspete / psPAS

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

Get-PASPSMRecording (-FromTime ) type conversion error #526

Closed ckinasch closed 4 months ago

ckinasch commented 4 months ago

Describe the issue Attempting to run the Get-PASPSMRecording command with the -FromTime flag set as per the documentation. Receiving error: Cannot process argument transformation on parameter 'FromTime'. Cannot convert value to type "System.Int32". Error: "Input string was not in a correct format."

To Reproduce Steps to reproduce the behavior:

  1. execute the Get-PASPSMRecording -FromTime (Get-Date).AddDays(-7) command as per documentation

Expected behavior Expect to receive a list of recording information within the last 7 days

pspete commented 4 months ago

The psPAS version you are using is not recent enough.

See the details for psPAS 6.1.62 here https://github.com/pspete/psPAS/blob/master/CHANGELOG.md#6162

pspete commented 4 months ago

Did updating the module work for you @ckinasch ?

pspete commented 4 months ago

The command works as documented in 6.1.62: image we may add a formatting helper to output a friendly datetime in a future release

ckinasch commented 4 months ago

yes apologies for the delay in response. all works as expected in latest version, thanks for that