Unable to script Checkout (Invoke-DSPamCheckout)

Resolved

Unable to script Checkout (Invoke-DSPamCheckout)

avatar

I always have the same error trying a checkout in powershell:
Invoke-DSPamCheckout -PamCredentialID 'c45571fb-6cbe-4e8b-a77c-7b060dde21db' -verbose
VERBOSE: [Invoke-DSPamCheckout] Beginning...
Invoke-DSPamCheckout: Object reference not set to an instance of an object.
Tied with a domain user with right on pam user and also with a local (dvls) admin.

All Comments (7)

avatar

Hello Pierre,

I just tried on my end with the PS module version 2023.2.0.6 and Devolutions Server 2023.2.7 and it works correctly. Could you please specify your versions?



Best regards,

Richard Boisvert

e62c3be2-8ba3-462a-aece-af99602aa055.png

avatar

Module : 2023.2.0.6
DVLS: 2023.2.6.0

avatar

Je viens de réessayer dans un autre environnement avec les mêmes versions et ça fonctionne! Comment diagnostiquer l'environnement problématique?

avatar

Bonjour Pierre,

Est-ce que vous obtenez la même erreur lorsque vous faites un checkout de l'interface web?

Si vous allez dans Reports > Privileged Access - Logs, et cochez "Include PAM System", il devrait y avoir plus d'informations:



Cordialement,

Richard Boisvert

45fcd528-e134-4ebf-b5f3-b111b6fa71e8.png

avatar

A partir de l'interface cela fonctionne normalement. Même si je coche l'option, je ne vois rien de plus lorsque je réessais en powershell.

avatar

Bonjour Richard, j'ai trouvé... J'avais configuré l'approbation obligatoire dans cette voute. Si je précise l'ID de l'approbateur dans le checkout powershell, cela fonctionne bien. Désolé pour le dérangement!!

avatar

Bonjour Pierre,

Aucun problème, content que tout fonctionne maintenant!

Cordialement,

Richard Boisvert