Note: This article was originally published in 2013. Some steps, commands, or software versions may have changed. Check the current Office 365 documentation for the latest information.
In this step-by-step guide, you’ll learn connect to a remote office 365 tenant powershell session. Microsoft 365 (formerly Office 365) is a cloud-based subscription service offering productivity tools including Exchange Online, SharePoint Online, and Teams.
How to: Connect to a Remote Office 365 Tenant PowerShell Session
Probably at some point of using the new Microsoft´s Office 365 offering you´ll need to run some PowerShell commands against your Tenant sesison. Below I have gather a few commands to reference when working on a remote Office 365 Tenant PowerShell Session: Connection:
$cred = Get-Credential $global:session365 = New-PSSession -configurationname Microsoft.Exchange -connectionuri https://ps.outlook.com/powershell/ -credential $cred -authentication Basic -AllowRedirection Import-PSSession $global:session365 –Prefix o365 Get-o365Mailbox
asd
(http://img.zemanta.com/zemified_h.png?x-id=17f12254-29c3-41a7-9c53-32a7e1063065)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Summary
You’ve successfully learned connect to a remote office 365 tenant powershell session. If you run into any issues, double-check the prerequisites and ensure your Office 365 environment is properly configured.
Related Articles
- [Como: Resolver el error ](/como-resolver-el-error-checkprereqs-configuracion-de-la-relacion-de-la-organizacion-el-identificador-de-organizacion-federada-para-la-confianza-de-federacion-esta-deshabilitado-habilitelo-y-vuelva/)
- Cómo solucionar problemas de cuentas de usuario eliminadas en Office 365
- How to: Install Office 365 ProPlus / Business on a RDS Server (Terminal Server / MultiPoint Server) using Shared Computer Activation - Office 2016 version
- How to: Install Office 365 ProPlus / Business on a RDS Server (Terminal Server / MultiPoint Server) using Shared Computer Activation - Office 2013 version