Install SharePoint Online PowerShell module with PowerShell

Hello,

We previously installed SignIn assistant and Microsoft Online PowerShell module.Today, we’ll install SharePoint Online PowerShell module :

$SharePointOnlineUrl = "http://download.microsoft.com/download/0/2/E/02E7E5BA-2190-44A8-B407-BC73CA0D6B87/SharePointOnlineManagementShell_x64_en-us.msi" # SharePoint Online Module
Start-BitsTransfer -Source $SharePointOnlineUrl -Description "SharePoint Online" -Destination $env:temp -DisplayName "SharePoint Online"
Start-Process -FilePath msiexec.exe -ArgumentList "/i $env:temp$(Split-Path $SharePointOnlineUrl -Leaf) /quiet /passive"
Start-Sleep -Seconds 5
Remove-Item -Path $env:temp$(Split-Path $SharePointOnlineUrl -Leaf)

Note : Signin assistant is a prerequisite.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.