Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.3k stars 217 forks source link

Fixed AmbiguousParameterSet in Get-UserPRTKeys #96

Closed rchan-cjj closed 5 days ago

rchan-cjj commented 3 months ago

Running the function Get-UserPRTKeys with leads to the error Parameter set cannot be resolved using the specified named parameters (AmbiguousParameterSet) error

$prtKeys = Get-AADIntUserPRTKeys -Credentials $creds -PfxFileName .\d03994c9-24f8-41ba-a156-1805998d6dc7.pfx -TransportKeyFileName .\d03994c9-24f8-41ba-a156-1805998d6dc7_tk.pem

I added ParameterSetName='FileAndPassword' to the parameter $Credentials to resolve the conflict

rchan-cjj commented 3 months ago

(I found that trying to reattempt Pass The Certificate in 2024. Again, thanks for the great work for all these years!)