Remove User from All Sites in SharePoint using PowerShell

How to delete a user from all site collections in SharePoint 2013 using PowerShell? Sometimes, we may need to delete a particular user from all site collections. Say for e.g., an employee leaves the company! Here is how to remove a user from all SharePoint sites using PowerShell: This will scan and…

Read more

Hide Overwrite existing files Option of Upload Document Page in SharePoint 2010

Requirement: Uncheck and Hide Overwrite existing files Option in Upload Document Page of SharePoint 2010. Solution: If the “Overwrite existing files” option is to be turned off for all uploads, You can locate these lines and Change the Checked=”true” to Checked=”false” in Uploadex.aspx file as below: <asp:CheckBox id=”OverwriteSingle” Checked=”true” Text=<%$Resources:wss,upload_document_Overwrite_file%>” runat=”server” />…

Read more

Fix “Value does not fall within the expected range” Error in SharePoint

Problem: SharePoint site gave “System.ArgumentException: Value does not fall within the expected range” error! Here are some possible root causes and solutions: Case 1: While fetching List item Lookup values programmatically Root cause: List view threshold value exceeded! This occurs due to the throttling limit on the list view lookup threshold value…

Read more

Redirect from HTTP to HTTPS in SharePoint using IIS URL Rewrite Module

How to redirect HTTP to HTTPS in SharePoint? Changing the SharePoint site from HTTP to HTTPS is a common requirement. URL rewrite module is a great plugin for IIS to achieve various sort of redirects in your SharePoint site (or any web site technically!). Let’s see how to implement HTTP to HTTPS…

Read more

How to Hide Share, Follow, and Sync Buttons in SharePoint 2013?

We got a requirement to remove the Share, Follow, and Sync buttons in SharePoint 2013. Let me summarize various ways to disable these buttons: How to disable the “Share” button in SharePoint 2013? Share functionality in SharePoint allows existing users of the site to invite someone to SharePoint. Once the request is…

Read more

Find Installed SharePoint Product Edition using PowerShell

To determine the SharePoint edition installed on the server, use this PowerShell script: Please note, You’ll always get “SharePoint Foundation” as an installed product along with all other SharePoint products such as “SharePoint Server 2013 Enterprise”.  Also, Office Web Apps doesn’t work, as it’s installed separately from the SharePoint server farm. Related…

Read more

How to Rename SharePoint 2013 Content Databases with PowerShell?

Requirement: To follow standard naming conventions, We got to rename SharePoint content databases in our SharePoint 2013 environment. Solution: You can rename a SharePoint content database in these three steps as explained in my other post: How to Rename SharePoint 2013/2010 Central Admin Database and Remove GUID? Detach SharePoint content database from SharePoint…

Read more