MS 365: how to connect to AzureAD

Azure, MS 365, MS Online
Post Reply
daniele
Posts: 342
Joined: 04 Mar 2009, 13:59

MS 365: how to connect to AzureAD

Post by daniele »

NOTA BENE
I modules Powershell sono ubicati nei seguenti path:
C:\Program Files\WindowsPowerShell\Modules --> quando si usa come Administrator
C:\Users\username\Documents\PowerShell\Modules --> per ogni singolo utente

Se ricevete errore tentando di eseguire Connect-MsolService, provare a cancellare la cartella che contiene il modulo \MSOnline e poi ritentare daccapo

Aprire PowerShell come ADMINISTRATOR
Powershell has to be v. 7 or later

Modalità PowerShell

Code: Select all

# Install the MSOnline module if this is first use
Install-Module AzureAD
# Add the MSOnline module to the PowerShell session
Import-Module AzureAD -UseWindowsPowershell
# Eventualmente installare AzureADPreview per installare la versione di anteprima pubblica
Install-module AzureADPreview -UseWindowsPowershell
NOTE: the parameter -UseWindowsPowershell is needed, currently, otherwise you'll have an error while trying to connect
# Connect to AzureAD Service
Connect-AzureAD





References:
https://learn.microsoft.com/it-it/power ... readps-2.0
Post Reply