psPAS icon indicating copy to clipboard operation
psPAS copied to clipboard

Issue with Set-PASSafeMember

Open JCallPut opened this issue 9 months ago • 0 comments

Hi there, having issue with following call: Set-PASSafeMember -SafeName $SafeName -MemberName $MemberName -RetrieveAccounts $RetrieveAccounts -UseAccounts $UseAccounts

All variables are properly defined and have correct values. Getting following error: Error: [400] There are some invalid parameters: Parameter [MembershipExpirationDate] must be between [0] and [2145830400]

Member doesn't have expiration in the safe, it was added without any specific expiration, and PVWA shows it as off/not set.

If I simply retreive MembershipExpirationDate value via code below, I'm getting following value: -62135578800 $returnObj = Get-PASSafeMember -SafeName $SafeName -MemberName $MemberName $membershipExpirationDate = $returnObj.MembershipExpirationDate

Any ideas? Thanks

JCallPut avatar Apr 14 '25 18:04 JCallPut