Dec 06 2021 02:04 PM - edited Dec 06 2021 02:05 PM
I'm launching Powershell ISE and attempting to use get-azureadmconditionalaccesspolicy. This is from a shared server. Another user is able to run the same script without issue. I get the following response.
get-azureadmconditionalaccesspolicy : The term 'get-azureadmconditionalaccesspolicy' 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:1 char:1
+ get-azureadmconditionalaccesspolicy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-azureadmconditionalaccesspolicy:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
In Powershell ISE, I'm able to select the AzureADPreview module and locate the command. When I run Get-installedmodule, I'm able to see the following entries.
2.0.2.140 AzureAD PSGallery Azure Active Directory V2 General Availability Module....
2.0.2.138 AzureADPreview PSGallery Azure Active Directory V2 Preview Module. ...
the command should be available, so I'm unsure what I'm missing.
Dec 07 2021 12:41 AM
SolutionDec 07 2021 09:23 AM