Skip to content

Instantly share code, notes, and snippets.

@AndrewWCarson
Last active October 10, 2017 04:33
Show Gist options
  • Save AndrewWCarson/29b5437d40a252a71ea0e5e7dafbdaf1 to your computer and use it in GitHub Desktop.
Save AndrewWCarson/29b5437d40a252a71ea0e5e7dafbdaf1 to your computer and use it in GitHub Desktop.
Enable Focused Inbox for an organization in Office 365 E1.
# This opens a GUI password prompt to store the O365 admin password.
$UserCredential = Get-Credential
# Initiate a remote Powershell session with O365.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
# Display the org-wide settings.
Get-OrganizationConfig
# Enable Focused Inbox.
Set-OrganizationConfig -FocusedInboxOn $true
Get-FocusedInbox -Identity quinns108@andrewworthcarson.com
# End the remote session.
Remove-PSSession $Session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment