Gerenios / AADInternals

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

Command not found #6

Closed thelordofscrubs closed 3 years ago

thelordofscrubs commented 3 years ago

PS C:\WINDOWS\system32> $creds = Get-Credential

$prtKeys = Get-UserAADIntPRTKeys -PfxFileName .\ff78b0a3-5348-4e93-ba6d-b043540acd7c.pfx -Credentials $cred

cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters: Credential Get-UserAADIntPRTKeys : The term 'Get-UserAADIntPRTKeys' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:4 char:12 $prtKeys = Get-UserAADIntPRTKeys -PfxFileName .\ff78b0a3-5348-4e93-ba ...


 CategoryInfo          : ObjectNotFound: (Get-UserAADIntPRTKeys:String) [], CommandNotFoundException
 FullyQualifiedErrorId : CommandNotFoundException

Running into this error while attempting to debug a PRT issue. All of the other commands in the module have worked great so far, and I would GREATLY appreciate any assistance.
NestoriSyynimaa commented 3 years ago

I think you miss spelled the command. The correct would be: $prtKeys = Get-AADIntUserPRTKeys -PfxFileName .\ff78b0a3-5348-4e93-ba6d-b043540acd7c.pfx -Credentials $cred

thelordofscrubs commented 3 years ago

image

I see, I notice now the header of this section shows the correct spelling. The issue seems to be that your blogs example has it wrong.

NestoriSyynimaa commented 3 years ago

Thanks for noticing, fixed the documentation.