Forum Discussion
PowerShell command to export user's manager name
- Dec 03, 2019
Hi Gianni88
it is normal you can't find the Manager field.
The foreach make the work for you, expanding manager property 🙂
Please, debug your scripts in ISE or using output messages 🙂
Cheers,Federico
I tried to connect to Azure Active Directory PowerShell for Graph. but I am not able to get in. Maybe is because we use in our company MFA security.
Are there any others commands ?
Thanks.
Gianni
- Gianni88Dec 02, 2019Copper Contributor
Hi Federico,
As we use MFA (Multa Factor Authentification), I am not able to get into Powershell. I tried to follow this link (without success) : https://docs.microsoft.com/en-us/powershell/exchange/office-365-scc/connect-to-scc-powershell/mfa-connect-to-scc-powershell?view=exchange-ps
Do you know which command I need to run to connect to Powershell Azure (with MFA) ?
Thanks.
Gianni
- Dec 02, 2019
Hi Gianni88 ,
ok it's easy 🙂
You need to use just
Connect-AzureADinstead of
$AzureAdCred = Get-Credential Connect-AzureAD -Credential $AzureAdCredthe second part of the script it's the same 🙂
Cheers,
Federico
- Gianni88Dec 03, 2019Copper Contributor
Hi Federico,
Thanks, step by step we move forward, I am in now 🙂
When I run the ps1 file, it does not display anything (look at the attachment).
What I am doing wrong ?
Thanks.