Opening .msg eMails from SharePoint 2010

See Opening .msg e-mails in Outlook from a SharePoint 2010 document library for the full details.

cls
$snapIn = Get-PSSnapin | where-object {$_.Name -eq "Microsoft.SharePoint.PowerShell"} 
if($snapIn -eq $null) {     
Add-PsSnapin Microsoft.SharePoint.PowerShell 
}
$webApp = Get-SPWebApplication https://WEBAPP
If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/vnd.ms-outlook")
{   
$webApp.AllowedInlineDownloadedMimeTypes.Add("application/vnd.ms-outlook")   
$webApp.Update()   
Write-Host "application/vnd.ms-outlook added to AllowedInlineDownloadedMimeTypes" 
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: