URLs to install Office 365 Power Shell perquisites

Please provide me with the URLs to download & install the Office 365 Power Shell perquisites that need to be setup before Office 365 can be administered from the PowerShell.
IT GuyNetwork EngineerAsked:
Who is Participating?
 
David Johnson, CD, MVPOwnerCommented:
MSO Sign in Assistant https://www.microsoft.com/en-us/download/details.aspx?id=41950
Azure Active Directory Connection  http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185
Skype for Business Online, Windows PowerShell Module https://www.microsoft.com/en-us/download/details.aspx?id=39366
Sharepoint Online Shell https://www.microsoft.com/en-us/download/details.aspx?id=35588
function connect-service {
  <#
    .SYNOPSIS
    Describe purpose of "connect-service" in 1-2 sentences.

    .DESCRIPTION
    Add a more complete description of what the function does.

    .EXAMPLE
    connect-service
    Describe what this call does

    .NOTES
    Place additional notes here.

    .LINK
    URLs to related sites
    The first link is opened by Get-Help -Online connect-service

    .INPUTS
    List of input types that are accepted by this function.

    .OUTPUTS
    List of output types produced by this function.
  #>


$securepassword = ConvertTo-SecureString -string 'YourPassword' -AsPlainText -Force
$credential = new-object -TypeName System.Management.Automation.PSCredential -ArgumentList (Youraccount@example.com', $securepassword)
#$credential = Get-Credential
Import-Module -Name MsOnline  -Force
Connect-MsolService -Credential $credential
Import-Module -Name Microsoft.Online.SharePoint.PowerShell -DisableNameChecking -Force
Connect-SPOService -Url https://techsupport4me-admin.sharepoint.com -credential $credential
Import-Module -Name LyncOnlineConnector -Force
$sfboSession = New-CsOnlineSession -Credential $credential
Import-PSSession -Session $sfboSession -AllowClobber
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection
Import-PSSession -Session $exchangeSession -DisableNameChecking -AllowClobber
$ccSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $credential -Authentication Basic -AllowRedirection

$Skypesession = New-CsOnlineSession -Credential $credential -Verbose

Import-PSSession -Session $ccSession -Prefix cc -AllowClobber
Write-Host ("$sfboSession = Sharepoint Session")
Write-Host ("$exchangeSession = Exchange Session")
Write-Host ("$ccsession = Compliance Session")
Write-Host ("$SkypeSession = Skype Session")
}
function disconnect-service 
{
  <#
    .SYNOPSIS
    Describe purpose of "disconnect-service" in 1-2 sentences.

    .DESCRIPTION
    Add a more complete description of what the function does.

    .EXAMPLE
    disconnect-service
    Describe what this call does

    .NOTES
    Place additional notes here.

    .LINK
    URLs to related sites
    The first link is opened by Get-Help -Online disconnect-service

    .INPUTS
    List of input types that are accepted by this function.

    .OUTPUTS
    List of output types produced by this function.
  #>


  Remove-PSSession -Id $sfboSession  
  Remove-PSSession -Id $exchangeSession 
  
  try
  {
    Remove-PSSession -Id $ccSession
  }
  # NOTE: When you use a SPECIFIC catch block, exceptions thrown by -ErrorAction Stop MAY LACK
  # some InvocationInfo details such as ScriptLineNumber.
  # REMEDY: If that affects you, remove the SPECIFIC exception type [System.Management.Automation.ValidationMetadataException] in the code below
  # and use ONE generic catch block instead. Such a catch block then handles ALL error types, so you would need to
  # add the logic to handle different error types differently by yourself.
  catch [Management.Automation.ValidationMetadataException]
  {
    # get error record
    [Management.Automation.ErrorRecord]$e = $_

    # retrieve information about runtime error
    $info = New-Object -TypeName PSObject -Property @{
      Exception = $e.Exception.Message
      Reason    = $e.CategoryInfo.Reason
      Target    = $e.CategoryInfo.TargetName
      Script    = $e.InvocationInfo.ScriptName
      Line      = $e.InvocationInfo.ScriptLineNumber
      Column    = $e.InvocationInfo.OffsetInLine
    }
    
    # output information. Post-process collected info, and log info (optional)
    $info
  }
 
  Disconnect-SPOService
}

<#
.Synopsis
  Connect-Office365
.DESCRIPTION
   Connects Session to Office 365
.EXAMPLE
   connect-office365 -connection connect
.EXAMPLE
   connect-office365 -connection disconnect
.INPUTS
   None
.OUTPUTS
   None
.NOTES
   General notes
.COMPONENT
   The component this cmdlet belongs to
.ROLE
   The role this cmdlet belongs to
.FUNCTIONALITY
   The functionality that best describes this cmdlet
#>
function Connect-O365
{
  <#
    .SYNOPSIS
    Describe purpose of "Connect-O365" in 1-2 sentences.

    .DESCRIPTION
    Add a more complete description of what the function does.

    .PARAMETER Connection
    Describe parameter -Connection.

    .EXAMPLE
    Connect-O365 -Connection Value
    Describe what this call does

    .NOTES
    Place additional notes here.

    .LINK
    URLs to related sites
    The first link is opened by Get-Help -Online Connect-O365

    .INPUTS
    List of input types that are accepted by this function.

    .OUTPUTS
    List of output types produced by this function.
  #>


     
    Param (
        [Parameter(Mandatory=$true,HelpMessage='Valid options: Connect or Disconnect',Position=1)]            
        [ValidateNotNull()]
        [ValidateNotNullOrEmpty()]
        [ValidateSet('Connect', 'Disconnect')] 
        [string]$Connection
    )
if ($connection -eq 'Connect')
        { Write-Host  'Connecting to Office 365 session'
          Write-Host  'Do NOT close this Window while session active'
        connect-service
         }
        else { 
        Write-Host  'disconnecting from Office 365 Session'
        disconnect-service 
        }
    }

Open in new window

0
 
Pawan KumarDatabase ExpertCommented:
Prerequisites: Download and install the following:
1) Microsoft .NET Framework 4.5.2
2) Windows Management Framework 4.0
3) Microsoft Online Services Sign-in Assistant for IT Professionals RTW (64-bit version)
4) Windows Azure Active Directory Module for Windows PowerShell (64-bit version)
5) Skype for Business Online Windows PowerShell Module
6) SharePoint Online Management Shell
7) Execution policy of PowerShell needs to be at least RemoteSigned.

Open in new window

from - http://powershellblogger.com/2016/02/connect-to-all-office-365-services-with-powershell/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.