Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name Microsoft.Online.SharePoint.PowerShell;
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking;
Update-Module -Name Microsoft.Online.SharePoint.PowerShell;
Connect-SPOService;
Get-SPOSite
Download PowerShell Scripts
5/5 - (1 vote)