Sharepoint 2013 – Web.config Machine Key Configuration across Farm

Sometime we get into the situation where you need to sync the config file specific contents across the applcation and few configs may be dependent on application generated values. one of the clasic example is to enable single sign-on for a specific application hosted in multipleservers then we need to make sure the machinekey is… Read More Sharepoint 2013 – Web.config Machine Key Configuration across Farm

SharePoint 2013 – How to Check a web application already exists

This series is all about powershell, here you goAdd-PSSnapin Microsoft.Sharepoint.Powershell  #Replace the web application url needs to be checked$webappurl = ‘http://webapp.dinventive.com’#Running below command sometime may error because of the webapplcaiton nonexistance$checkwebapp = Get-SPWeb($webappurl)if ($checkwebapp -eq  $null ) {    Write-Host Site $webappurl  does not exist $checkwebapp}else {    Write-Host Site $webappurl  DOES exist $checkwebapp}

Server Information, .Net framework version – Check using powershell

Most of the time we always think why can’t we automate few things in doing basic checks within the environments. Few of the samples which can be done using power shell  This is easy to run across version machines in the domain.function Ping-HostComputer {  Param([string]$computername=$(Throw “You must specify a Hostname.”))   $query=”Select * from Win32_PingStatus where… Read More Server Information, .Net framework version – Check using powershell

SharePoint 2013 – Session Cookie(FEDAUTH) – Login Token Expiration

Symptoms Sign-out proc will not work properly, reason  being we cookie will not expire Does not allow you to present the custom login sign in page, it automatically login to the application. Keep presenting authentication page all the time switching between applications. Summarize:As I was working on understanding the process for expiring logon cookies recently,… Read More SharePoint 2013 – Session Cookie(FEDAUTH) – Login Token Expiration

Remove broken application pool in share point 2013 – Deployments

Error message should be something similar to the belowNew-SPWebApplication : ApplicationPool exists, either specify an existing ApplicationPool alone, or specify a non existing ApplicatioPool and an ApplicationPoolAccount.At C:\Spareparts\sp2013maniconfigure.ps1:40 char:11+ $webApp = New-SPWebApplication -Name $appName -ApplicationPool $appPoolName -App …+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidArgument: (Microsoft.Share…PWebApplicat    ion:SPCmdletNewSPWebApplication) [New-SPWebApplication], SPCmdletException    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWeb    Application… Read More Remove broken application pool in share point 2013 – Deployments