


ResourceAccess = -TypeName ".ResourceAccess" -ArgumentList "64a6cdd6-aab1-4aaf-94b8-3cc8405e90d0", "Scope" $req = New-Object -TypeName ".RequiredResourceAccess" New-AzureADApplicationPasswordCredential -ObjectId $EMailAdApp. If ( ! ( Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction Ignore ) ) OAuthLanding.htm" ` For example, open a fresh PowerShell window, do a Import-Module AzureADPreview, connect and then try running Get-AzureADPolicy. I urgently need to adjust the token lifetimes.$aesManaged = New-Object "" Make sure you are actually loading the correct module, as when you have matching cmdlets between both (Connect-AzureAD is the same for AzureADPreview and AzureADPreview). + FullyQualifiedErrorId : CommandNotFoundException + CategoryInfo : ObjectNotFound: (Get-AzureADPolicy:String), CommandNotFoundException Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Get-AzureADPolicy : The term 'Get-AzureADPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. PS C:\Users\Administrator> Get-AzureADPolicy Userīut when running the Get-AzureADPolicy I get the error that this cmdlet is not available as can be seen below. PS C:\Users\Administrator> connect-azureadĪccount Environment TenantId TenantDomain AccountType Installed the Azure AD PowerShell v2 GA module using Install-Module AzureAD.Ĭonnected and authenticated to our Azure AD tenant successfuly using Connect-AzureAD as can be seen below. Sorry if I posted this twice, to me it seems that the first post did not succeed.
