Find out Who has Deleted a Site Collection in SharePoint

Requirement: Find out who has deleted a site collection in SharePoint 2016. How to Find Who Deleted a SharePoint Site? Unfortunately, there are no direct ways to find out who deleted a SharePoint site. The PowerShell cmdlet “Get-SPDeletedSite” gets you all deleted site collections, without any hint about the user who deleted…

Read more

How to Get SharePoint Farm Account Password using PowerShell?

Requirement: Had to take over a SharePoint Farm, and we don’t have the Farm Account Password! We needed the credentials of the SharePoint Farm account. Get SharePoint Farm Account Password: SharePoint farm account user name and password can be retrieved with this little trick: Central Admin site uses SharePoint Farm account, So,…

Read more

How to Change a SharePoint Web Application from HTTP to HTTPS?

Requirement:  Enable HTTPS encryption in SharePoint Web Application using SSL certificate. How to Configure HTTPS for SharePoint 2016 web applications? Enabling HTTPS encryption ensures that the communications between users and the SharePoint web site remain secure. This article assumes you have generated CSR and imported the SSL certificate to the IIS. If…

Read more

Archive ULS & IIS Log Files in SharePoint using PowerShell

Requirement: Archive Log files of IIS and ULS Log.  Log files in SharePoint (both IIS Log and ULS Log) could grow and fill-up the disk space based on your configurations and usage. There are many scripts available in various blogs and boards and Here is my own script to archive Log files…

Read more

How to Secure SharePoint 2016 Central Administration Site from HTTP to HTTPS using SSL Certificate?

Central Administration site is a web application where administration activities are performed for the farm. By default, Central Administration runs on non-secure HTTP. Enabling encryption ensures that the communications between users and the central admin website remain secure. Prerequisite: Of course, You need the SSL certificate! You can use a free domain…

Read more

How to Redirect in SharePoint using Alternate Access Mapping (AAM)?

Internal URL in SharePoint Alternate Access Mapping is used to redirect from one URL to another. Say for E.g. If you want to redirect or transform from “http://portal.crescent.com” into “http://intranet.crescent.com” use this feature! So, you enter “http://portal.crescent.com” in the address bar of your browser, and it takes you to “http://intranet.crescent.com”! How to…

Read more

Another component has already added an HTTPSessionState to the Context. Please make sure only one session state module should be registered

Problem: After changing web application properties from SharePoint central administration site to support “anonymous access”, sites started giving this error message: Another component has already added an HTTPSessionState to the Context. Please make sure only one session state module should be registered Solution: Open Web.config file of the SharePoint web application, search…

Read more

Get All SharePoint Service Applications – IIS App Pools – Service Account Details

From the IIS console, its tedious to find the application pools of SharePoint Service Application’s, isn’t it? So, let’s use PowerShell to retrieve All service application’s app pool and service account details. PowerShell to get all Service Application Names, Service App Pool and Process Account details: This script gets you all service…

Read more

How to Create a Service Application Pool in SharePoint using PowerShell?

Service Application pools run service application proxy web services inside IIS. Typically, all the service applications can be run with the same application pool. You can create a new service application pool while creating new service applications in SharePoint 2013. Ever wanted to create an new service application pool in SharePoint using…

Read more

How to Create a Self-Signed SSL Certificate in IIS for SharePoint?

Self-Signed certificates provides encryption between the two ends. Technically, self-signed certificate are signed with its own private key. Often they are used in ADFS configuration. We may also have to use self-signed certificates in DEV-Test environments and for evaluations purposes. Lets see how to create a self-signed certificate using IIS. Never use…

Read more