Skip to content

Instantly share code, notes, and snippets.

@IAMPetro
Created December 12, 2016 02:15
Show Gist options
  • Save IAMPetro/525b356123849f3296b33f1721d2fe04 to your computer and use it in GitHub Desktop.
Save IAMPetro/525b356123849f3296b33f1721d2fe04 to your computer and use it in GitHub Desktop.
SharePoint: Browser File Handling Permissions
# To begin with we need to specify the site the library is located
$web = Get-SPWeb "http://<sharepointServer>/sites/<siteCollection>/<siteName>"
# Next we need to specify the library by using its DisplayName
$library = $web.lists["<libraryDisplayName>"]
# Next we want to check what the current setting for Browser File Handling is set to
$library.BrowserFileHandling
# Next we can change it to either Strict to Permissive
$library.BrowserFileHandling = "Permissive"
# Lastly we will need to apply this change
$library.Update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment