How to Open a PDF File in a Browser Using a PowerShell Command in SharePoint 2010

In SharePoint 2010, most users cannot open the PDF file in a browser when clicking on the Name column. This blog post will give you a tip on how to open it.

A PDF file has been saved to the Shared Documents library. Since this file is a security risk, the browser cannot open when downloading a PDF stored in the library using the ‘Save’ button.

Go to your server, open SharePoint 2010 Management Shell, then Run as Administrator:

Enter the following commands into the form:

$webApp = Get-SPWebApplication(“http://yourservername”)




After that, you can return to your site in the browser and open the PDF file once again.

SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365


Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.

Calendar Plus

Chart Plus

Knowledge Base

Project Management Central

Simple List Search


On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2016, 2019, 2022 - Classic Pages Only


Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.

Calendar Plus

Data Viewer

Password Change

Password Expiration

Password Reset


Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

We Have What You Need

Federal Contractors