Enable and Disable SharePoint 2013 publishing feature using PowerShell

InfoPath alternatives for form designing SharePoint

In this post we will discuss how to enable or disable SharePoint 2013 publishing feature using PowerShell in SharePoint 2013.

Here we will first disable the publishing feature and then we will enable the publishing feature.

You can also read:
– Enable SharePoint 2013 Server Publishing Feature using PowerShell

– App Step in SharePoint 2013 Designer Workflow

– SharePoint 2013 Online Content Search WebPart with Query String

Below is the PowerShell command:

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Get-SPWeb -site http://SiteCollectionURL -limit ALL | ForEach-Object {Disable-SPFeature Publishing -Url $_.Url -confirm:$false}

Get-SPWeb -site http://SiteCollectionURL -limit ALL | ForEach-Object {Disable-SPFeature PublishingWeb -Url $_.Url -confirm: $false}

Get-SPWeb -site http://SiteCollectionURL -limit ALL | ForEach-Object {Enable-SPFeature Publishing -Url $_.Url -confirm:$false}

Get-SPWeb -site http://SiteCollectionURL -limit ALL | ForEach-Object {Enable-SPFeature PublishingWeb -Url $_.Url -confirm: $false}

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply