I have a PnP Power shell script, but it is raising this error:-

The term Get-PnPAzureADUser is not recognized as the name of a Cmdlet

any advice? Thanks

1 Answer 1


Get-PnPAzureADUser is part of the PnP.PowerShell module.

If you are using the legacy module, first uninstall it:

Uninstall-Module SharePointPnPPowerShellOnline

Then, install the latest PnP.PowerShell module

Install-module PnP.PowerShell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.