Delete spam mail from Exchange Online for all users


The Search-Mailbox command can me user to filter mails from Exchange online and delete unwanted mail from all users mailboxes. Documentation for the command can be found here: https://technet.microsoft.com/en-us/library/dd298173(v=exchg.160).aspx Example for searing all users mailboxes, copy items to the admin account and then delete the items from the mailboxes. $UserCredential…

Office 365 default language


The following two attributes exist on Office 365 users: The Preferred Language can be set by using set-msoluser on a Cloud user. Set-MsolUser -UserPrincipalName dag@friden.com -PreferredLanguage "sv-SE" Existing users can be viewed by using Get-MsolUser -All  | ft UserPrincipalName,PreferredLanguage   If the users are sync from OnPrem AD (and sync…

SharePoint/OneDrive default language


The default language in SharePoint and OneDrive have impact on eg. spell-check in Office online apps. To check the default language in SharePoint online install the PowerShell module for SPO (https://www.microsoft.com/en-us/download/details.aspx?id=35588). Connect to the SPO-service: Connect-SPOService -Url https://TENENT-admin.sharepoint.com Ones connected run: Get-SPOSite -Detailed -Limit All | select Url,LocaleId You can…