Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Monday, August 15, 2011

Opening files within SharePoint 2010 do not open correctly. Fix this by changing the 'Browser File Handling' from 'Strict' to 'Permissive' using Powershell

Create a PS1 file with the code below (Change the $url value to the URL of your web app)

#####################################################################
$url = "http://webappname"
Get-SPWebApplication $url | ForEach-Object {$_.BrowserFileHandling = “permissive”; $_.update()}
#####################################################################

This will update the web application Browser File Handling from 'Strict' to 'Permissive'