Connect to Remote Azure AD with Powershell

Modificato il Mon, 06 May 2019 alle 10:23 AM

Step 1

Open PowerShell (Run as Administrator).


Step 2

Install Microsoft Online module for Azure Active directory using the following command:

Install-Module -Name MSonline 

If prompted to continue, input “Y” and press enter. Any subsequent confirmations can be accepted by inputting “A” for “Yes to All” and pressing Enter.


Step 3

Input login credentials using the following PowerShell command:

$msolcred = get-credential 

You will be prompted to authenticate. Use the global administrator account within your Office 365 tenant (ex. user@yourdomain.com) and the corresponding password.


Step 4

Initiate Connection to Office 365 using the following PowerShell command:

connect-msolservice -credential $msolcred 


Questo articolo ti è stato utile?

Fantastico!

Grazie per il tuo feedback

Siamo spiacenti di non poterti essere di aiuto

Grazie per il tuo feedback

Facci sapere come possiamo migliorare questo articolo!

Seleziona almeno uno dei motivi
La verifica CAPTCHA è richiesta.

Feedback inviato

Apprezziamo il tuo sforzo e cercheremo di correggere l’articolo