PowerShell can be used by almost all Microsoft applications, and the same is true for Microsoft cloud services.
No additional services or software is needed, open PowerShell on your machine and execute the following commands:
$ExCred = Get-Credential <your tenant admin account here> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $ExCred -Authentication Basic -AllowRedirection Import-PSSession $Session
Azure Active Directory
To manage Windows Azure Active Directory with PowerShell you have to install the Azure Active Directory Module for Windows PowerShell (64-bit version) but before you can use this you also have to install the Microsoft Online Services Sign-In Assistant.
Don’t forget you have to use the Azure Active Directory module for PowerShell instead of your regular PowerShell window.
$Cred = Get-Credentials Connect-MsolService -Credential $Cred
Skype for Business Online
For Skype for Business Online you first have to download and install the Skype for Business Online Connector Module which can be downloaded here: http://go.microsoft.com/fwlink/?LinkId=294688
Once installed you can import the Skype for Busines Online PowerShell module using the Import-Module command:
A warning message may appear that WinRM is not running, you can click [Y] to accept starting WinRM.
To connect your Skype for Business Online PowerShell module to Skype for Business Online, you can use the following commands:
$credential = Get-Credential $session = New-CsOnlineSession -Credential $credential Import-PSSession $session
You can now use all Skype for Business Online commandlets against your tenant.
Note. To get a listing of all available commands in Skype for Business Online you can use the following command:
For SharePoint Online you need to download and install a seperate PowerShell module which can be found here: https://www.microsoft.com/en-us/download/details.aspx?id=35588
Once finished you get an additional PowerShell module on your computer which you can start directly, just like the Azure AD PowerShell module.
When you want to connect to SharePoint Online you need to know your tenant admin credentials (duh), but you also need to use your full (admin) email address and the FQDN of your SharePoint Online environment. So, if your tenant name is “ContosoLabs” and the admin UPN (Email address) is email@example.com, you can use the following commands:
$adminUPN="administrator@ContosoLabs.onmicrosoft.com" $TenantName="ContosoLabs" $userCredential = Get-Credential -UserName $adminUPN Connect-SPOService -Url https://$TenantName-admin.sharepoint.com -Credential $userCredential
Again, to retrieve a list of SharePoint Online commandlets you can use the following command:
page last updated: October 6, 2016