MS 365: How to connect to Sharepoint Online

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

MS 365: How to connect to Sharepoint Online

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

#Install module
Install-Module Microsoft.Online.SharePoint.PowerShell
# Connect
Connect-SPOService -Url "https://<Tenant>-admin.sharepoint.com"
es: se il tenant è miotenantsrl(.sharepoint.com)
la stringa sarà: Connect-SPOService -Url "https://miotenantsrl-admin.sharepoint.com"
altrimenti si avrà errore "The remote server returned an error: (400) Bad Request Visual Code"
Questo problema si diagnostica usando PowerShell ISE, altrimenti non si capisce

References:
https://www.sharepointdiary.com/2019/02 ... ogram.html
Post Reply