title: Connecting to https://outlook.office365.com/powershell-liveid: Access is denied
body: <pre><code>PS C:\Windows\system32&gt; $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
  
  New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
  error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
  </code></pre>
  
  <ul>
  <li>MFA in Azure AD is disabled, however, the administrator is prompted to enter the MS Authenticator app password - how can I disable it? 
  <a href="https://i.stack.imgur.com/POjDe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/POjDe.png" alt="enter image description here"></a></li>
  <li><p>If it's not possible I have an app registration and have both client ID and secret but I cannot just enter my admin user account + app secret when I enter $UserCredential = Get-credential
  <a href="https://i.stack.imgur.com/b9Z56.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b9Z56.png" alt="enter image description here"></a></p></li>
  <li><p>There is no conditional access in Conditional Access - Policies:
  <a href="https://i.stack.imgur.com/rI4Z2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rI4Z2.png" alt="enter image description here"></a></p></li>
  <li><p>When the new user signs in - he's prompted to enter security info:
  <a href="https://i.stack.imgur.com/YBmkr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YBmkr.png" alt="enter image description here"></a></p></li>
  </ul>