Tuesday, 23 May 2017

Get Site URL, Site Title, Web Id etc

Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV C:\WebAppInventory.csv -NoTypeInformation

Friday, 7 April 2017

Unable to remove web application from SharePoint 2013

I have tried delete web application facing below error, my scenario is there is no database, and IIS site. 

An object in the SharePoint administrative framework, “SPWebApplication Name=ulabtechnologies:1234’ Site Parent=SPWebService”, could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. The dependant objects are as follows: SPSolutionDeploymentJobDefinition Name=solution-deployment-


In SQL Management Studio:

SELECT * FROM Objects (NoLock) where Name like '%%'

Note the "Id" GUID.
SELECT * FROM SiteMap (nolock) where ApplicationId = ''

Note the 'DatabaseId' GUID.



Next step is to be done on a SharePoint server in the farm:

STSADM -O DeleteConfigurationObject -id {DatabaseId GUID from step above}

Repeat this for each row returned in the first step and then you will be able to successfully delete the web application from the farm.
Now try to delete web application 

Remove-SPWebApplication -Identity "" -Confirm


Friday, 17 March 2017

Rename Web Application name

$WebApp = SPWebApplication | where {$_.Name -match "OldWebAppName"}
$WebApp.Name ="NewWebAppName" 
$WebApp.Update() 
Get-SPWebApplication | where {$_.Name -match "NewWebAppName"}

Friday, 16 December 2016

Upgrading a multi-server SharePoint farm from Standard to Enterprise

  1. Stop the Timer Service on all machines in the farm except for 1, in my case I left it running on the APP server.
  2. Add the new product key and hit OK to start the SKU upgrade process in the Central Admin GUI.
  3. Watch the event log of the APP server and wait for an entry with a source of “SharePoint 2010 Products Configuration Wizard” which will inform you that it was Successful.
  4. Start the Timer Service on the next machine in the farm.
  5. Watch the event log and wait again for the successful entry…
  6. Continue with steps 4-5 on all additional servers in the farm.
  7. Once you’ve received all successful entries in your event logs, a minute or so later you should get a successful notification in the GUI for the SKU upgrade.