Disable Clutter for all users on Office 365

Powershell (run as admin).

First time only:

Set-ExecutionPolicy RemoteSigned

To disable clutter for all users:

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

Get-mailbox -ResultSize Unlimited | Set-Clutter -Enable $false

Remove-PSSession $Session

Source: Office365 Community

Stop WINMAIL.DAT TNEF attachments being sent in Office365

Powershell

$Cred = Get-Credential

Connect-msolservice -credential $Cred

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Set-RemoteDomain Default -TNEFEnabled $false

Remove-PSSession $Session

Source: Spiceworks

Office 365 SBS2011 Outlook won’t connect or keeps changing back to local exchange – Autodiscover

On SBS Server
Command Prompt run as admin:
%windir%\system32\inetsrv\appcmd.exe add backup BeforeRemovalAutodiscover

Exchange Management Shell run as admin:
Get-AutodiscoverVirtualDirectory | fl Name, Server, InternaUrl, Identity

Remove-AutodiscoverVirtualDirectory –Identity “identity value retrieved above”

If for some reason you need to restore autodiscover on the SBS server
Command Prompt run as admin:
%windir%\system32\inetsrv\appcmd.exe restore backup BeforeRemovalAutodiscover

Source: BlogsIISNet

Source: Toronto Help Desk

Office 365 Set Password Never Expires Policy

Install Microsoft Online Services Sign-in Assistant

Install Windows Azure Active Directory Module for Windows PowerShell (64-bit version)

Windows Azure Powershell:
Connect-MSOLservice
(Enter administrator credentials)

Set password never expire for one user
Set-MsolUser -UserPrincipalName user@example.com -PasswordNeverExpires $true

Set password never expire for all users
Get-MSOLUser | set-msoluser -PasswordNeverExpires $true

Check all users PasswordNeverExpires status:
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires

Source: Telstra Crowd Support

Technet