top of page

Fix 'Get-AzureADAuditSignInLogs' Error in PowerShell: Azure AD, Active Directory, PowerShell

Updated: Dec 26, 2023

Received the following Error when trying to get Azure Active Directory Application signing logs.

Getting this error after even AzureAD Module is already installed and connected to AzureAD.

Get-AzureADAuditSignInLogs : The term ‘Get-AzureADAuditSignInLogs’ 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:23 char:12

  1. $Log = Get-AzureADAuditSignInLogs -All $true -filter “appid eq ‘$ …

  2. CategoryInfo : ObjectNotFound: (Get-AzureADAuditSignInLogs:String) [], CommandNotFoundException

  3. FullyQualifiedErrorId : CommandNotFoundException

Get-AzureADAuditSignInLogs

Resolution:

Get-AzureADAuditSignInLogs and a few other cmdlets are not included in the default AzureAD Module. These new cmdlets are available in the AzureADPreview

Step1: Uninstall previously Installed AzureAD Module using the following cmdlet

Uninstall-Module -Name AzureAD

Step2: Install AzureADPreview Module using the following Cmdlet

Install-Module -Name AzureADPreview

Get-AzureADAuditSignInLogs

Get-AzureADAuditSignInLogs

After Installing AzureADPreview Module, I am able to see the cmdlets available and am able to get the results now.

Get-AzureADAuditSignInLogs

#Azure AD, #Active Directory, #PowerShell

1,900 views1 comment
bottom of page