Closed bryceismad1 closed 5 years ago
Still working for me. Can you check if an old version of the module is still loaded in PowerShell? You may have both loaded side by side.
Get-Module -ListAvailable or just Get-Module HaveIBeenPwned
You can also specify your own User Agent string using -UserAgent
I was getting the "Forbidden" error when using a custom string. When I used "Chrome 60" it worked.
Ex. Get-PwnedAccount -emailaddress youremail@gmail.com -UserAgent "Chrome 60"
Edit: It worked once, then the next session it didn't. :-(
Closing this issue as it's based on an old version. The module has since been updated to version 3 with support for authorisation and confirmed working with a user agent. Thanks
I installed the 1.3 version and it still says
Get-PwnedAccount : Forbidden - no user agent has been specified in the request.
when using the function