Set-ExecutionPolicy RemoteSigned $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session -DisableNameChecking Remove-PSSession $Session Get-CASMailbox UPN
Tag: Office 365
Connect PowerShell to Office 365 services
Unlike the on-premise set-up, it pretty easy to start the session, but with Office 365, you need to connect to each services and you also need to use the right module. Connect to Exchange Online (use windows Exchange PS or Azure AD PS) Set-ExecutionPolicy RemoteSignedΒ /Use global admin credential/ $cred = get-credential $Session = New-PSSession [...]
How to Get the o365 Enabled SKU of a User through PowerShell
1. Run Microsoft Azure Active Directory Module for Windows PowerShell as administrator. 2. Connect to O365 by using the following scripts. Install-Module -Name AzureAD Connect-MsolService #Log-in using your global administrator account (Other roles can also be used). (Get-MsolUser -UserPrincipalName username@domain.com).Licenses.ServiceStatus # This will return a list of SKUs that are enabled to the user's account [...]
Office 2016 Installation
Applicable to: o365 Business-Enterprise To those who are new to Office 365, you might wondering how you can install the application. This is not your usual installation as this doesn't require those super long license keys. Here's how to install your new Office 2016. Pre-requisite: Make sure that you do not have any Office 2016 [...]