Office 365

From Max's Wiki
Jump to navigation Jump to search


Networking

CDN

Pre-Requisites

MS Documents - Connect to Office 365 PowerShell

Admin Work

Add a domain to Office 365

https://docs.microsoft.com/en-us/office365/admin/setup/add-domain?redirectSourcePath=%252fen-us%252farticle%252fadd-a-domain-to-office-365-6383f56d-3d09-4dcb-9b41-b5f5a5efd611&view=o365-worldwide

Connect to Tenant

$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential

Connect with MFA

Connect-MsolService

Exchange Online

Get Distribution List Members

https://technet.microsoft.com/en-us/library/aa996367(v=exchg.160).aspx

Controlling Exchange ActiveSync device access using the Allow/Block/Quarantine list

https://blogs.technet.microsoft.com/exchange/2010/11/15/controlling-exchange-activesync-device-access-using-the-allowblockquarantine-list/

How to Block or Quarantine all devices by default in Exchange online ?

https://blogs.technet.microsoft.com/praveenkumar/2015/08/19/how-to-block-or-quarantine-all-devices-by-default-in-exchange-online/

Get Device Statistics

get-mobiledevicestatics -mailbox $user.upn | export-clixml C:\temp

Search mailbox and add to a folder​

Search-Mailbox -Identity "bjb" -SearchQuery 'Attachment:stc.pdf from:bjb@coredesigninc.com' -TargetMailbox "dynadmin" -TargetFolder "BJB-Attachment" -LogLevel Full

Search mailbox for a specific subject

search-mailbox -identity userA -searchquery "Kind:meetings and Subject:Subject of meeting and from:largeconferenceroom@kcsarc.org" -targetmailbox largeconferenceroom -TargetFolder "SearchData" -logonly -loglevel full

OneDrive

SharePoint

Admin

Get Tenant Licensing:

Get-MsolAccountSku

Example:

New-MsolUser -DisplayName "Caleb Sills" -FirstName Caleb -LastName Sills -UserPrincipalName caleb@manaiakalani.onmicrosoft.com -UsageLocation US -LicenseAssignment manaiakalani:ENTERPRISEPACK