Connecting to Exchange Online and SharePoint Online with PowerShell Once we have imported the modules for Windows PowerShell, we are ready to manage our Office 365 instance. Connect to all Office 365 services: Connect-MsolService –Credential $O365 Import the session commands into the local Windows PowerShell session: Import-PSSession $O365Ħ. Create a remote PowerShell session: $O365 = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $Cred -Authentication Basic -AllowRedirectionĥ. Enter your Office 365 admin credentials: $Cred = Get-CredentialĤ. Import the Online Services PowerShell module for Microsoft Azure Active Directory and Office 365: Install-Module -Name AzureADģ. Download and install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW.Ģ. Connecting to an Office 365 instance with PowerShellįirst, we need to install the Office 365 module for Windows PowerShell and connect to the Office 365 instance. ![]() Perhaps after reading these instructions, you’ll agree that PowerShell can be a valuable tool, even for cloud-based systems. ![]() ![]() In this article, I’ll show you the ten most useful Office 365 PowerShell cmdlets for system administrators. After all, cloud solutions promise simplicity and ease of use - adjectives rarely used in connection with Windows PowerShell. Using Windows PowerShell to manage Office 365 may seem odd at first.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |