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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.