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

Create OWA only user with no access to workstations

Create user as per usual, then:

1. Create new security group

2. Add user to security group

3. Group Policy Management: Create new Group Policy Object linked at root of domain

4. Right Click and choose edit.
Navigate to: Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment

5. Double-click “Deny log on locally”

6. Click “Add User or Group” and add the group you created in step 1. Apply.

7. Wait for Group Policy synchronisation or gpupdate /force on computers.

Source: ServerFault

Recovering corrupt files using DD

Issue: Clients Outlook data file corrupt, repair fails, copy fails due to CRC errors.

Resolved via dd on osx machine, then repair of data file on windows using inbox repair tool (scanpst).

Terminal:
dd bs=512 if=/Volumes/Untitled/Documents\ and\ Settings/User/Local\ Settings/Application\ Data/Microsoft/Outlook/Outlook.pst of=corrupt.pst conv=noerror,sync

Clear Move to Folder history in Outlook 2007 and 2010

Regedit:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\profile-name\0a0d020000000000c000000000000046

Delete:
101f031e Move to Folder history

Other items also able to remove:
101f035e Actions, New Mail Using, Stationery list
101e0384 File, Open, Other Users Folders (OL97/2002)
101f0390 File, Open, Other Users Folders (OL2003)
101f0449 Save Sent Items folder list
101f035c Insert, Signature dialog of the Outlook editor
101f0446 Find Contact (Outlook 20072010)
101f042b Insert > Business Card (in compose message)

Source: Slipstick