How to update Warning Site Count and Maximum Site Count of SPContentDatabase

This seems pretty simple as you can just set the properties of SPContentDatabase and you are good to go. However, this didn't work atleast in my case. I was trying to use the below command earlier which didn't work:- Get-SPContentDatabase | foreach-object{$_.WarningSiteCount = 0; $_.MaximumSiteCount=$_.CurrentSiteCount} Ideally, if the above command executes successfully & correctly then it should … Continue reading How to update Warning Site Count and Maximum Site Count of SPContentDatabase

Advertisements

Unable to remove SharePoint server from Farm – “cacheHostInfo is null”

I was creating a new farm from an existing farm due to project requirements, but I came across a situation wherein I was not able to remove the server from the farm using the SharePoint 2013 UI(server was already removed using the command or you can remove it by using configuration wizard on the server … Continue reading Unable to remove SharePoint server from Farm – “cacheHostInfo is null”

MySite – EnsureMySiteUrl: PersonalSiteUrl of page is null

Mysites configuration is pretty simple which has the basic pre-requisites: User Profile Service must be running Mysite host site collection should be created Mysite managed path for users' site should be created mysites should be configured mysite web application should have self site creation on. Also, the end users who want to create mysites should have … Continue reading MySite – EnsureMySiteUrl: PersonalSiteUrl of page is null

SharePoint : Delete “Scheduling Start Date” and “Scheduling End Date” columns using PowerShell

In general, we can delete the columns using UI from SharePoint pretty easily. But some columns are not allowed to be deleted using UI but are allowed to be deleted using PowerShell. But there are some columns which are not deleted from PowerShell as well without some tweaks. Following is the snippet for deleting the column using … Continue reading SharePoint : Delete “Scheduling Start Date” and “Scheduling End Date” columns using PowerShell

MOSS 2007: Get Admin Content Database Name

Recently, I ran into trouble in which I couldn't find a simple way to find the admin database name in MOSS 2007 as its not displayed in Central Admin and there is no PowerShell supported in MOSS 2007 so we have to deal with stsadm tool. So, to find that I used stsadm command's operation … Continue reading MOSS 2007: Get Admin Content Database Name

SharePoint 2013 : Orphaned Content Database Removal

Orphaned Content Database - By orphaned content database I mean that the content database is not associated to any web application and is not visible by using Get-SPContentDatabase command. So, what is the need of removing the Orphaned Database. Recently, I accidentally removed a database and added it back but somehow it was not adding back … Continue reading SharePoint 2013 : Orphaned Content Database Removal

Current Navigation Query String Repeating Issue in SharePoint 2013

There is an issue in SharePoint 2013 site in the version before SP1 that if you enter a URL with query string it keeps on adding the query string multiple times whenever any user clicks on the URL or try to save it. It can be fixed in two ways. Manual fixing PowerShell Manual Fixing: Follow … Continue reading Current Navigation Query String Repeating Issue in SharePoint 2013