Powershell script to change Browser File handling property

The following Powershell script modifies the browser file handling property of a web application to Permissive. You can change the script the change the property to Strict by modifying line 6:

$webApp = Get-SPWeb "http://<YourWebApplication>
#Find your document library
$docLibrary = $webApp.lists["Doc Lib Title"]

$docLibrary | Get-Member

#Change the Browser File handling property
$docLibrary.BrowserFileHandling = "Permissive"
$docLibrary.Update()



To learn more about browser file handling, visit this page.

1 comment:

  1. Hi, I have run this script but I get a "no property found error" on the library BrowserFileHandling property. Please kindly help on how I resolve this. Thanks.

    ReplyDelete