Tuesday, 5 December 2017
Tuesday, 25 July 2017
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.
In SQL Management Studio:
SELECT * FROM Objects (NoLock) where Name like '%
Note the "Id" GUID.
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"}
Subscribe to:
Posts (Atom)