Forum Discussion
Cannot login with Powershell
Hi PowerBI-ELM
Do you have MFA enabled on your account?
Looking at your code it is what I have and it certainly works for me.
Also just to confirm you have got the latest version of the PowerBI PowerShell Modules installed?
I should have the most recent API as just set it up recently. Also, just in case I tried an update.
I do not have MFA installed.
So still stuck ...
- GilbertQ4 years agoSuper User
Hi PowerBI-ELM
Yeah the only other thing would be to chat to your Azure/Network Admin to make sure that they allow the account to log in via the PowerShell commands?
- PowerBI-ELM4 years agoHelper I
my login (email) is a powerbi admin and a global admin. Is there anything else?
- GilbertQ4 years agoSuper User
Hi PowerBI-ELM
Ahh wait can you make sure where you are running PowerShell that you have TLS 1.2 enabled?
If not put this at the start of the PowerShell Script
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12