PowerShell


Delete Page Layouts / Master Pages by PowerShell Script

In one of my projects we needed a PowerShell script for deleting an unnecessary page layout for all web application. Here is the script that I wrote. This is not only for page layouts, it can be used for masterpages.

Hope this script helps..


Mask created/modified users in lists/libraries

You might want to hide created by and modified by information from the users. There are three ways to achieve this. First to way is masking the created by and modified by users in lists and libraries. Third one is actually a workaround by creating a new view which doesn’t […]


Save SharePoint 2013 Publishing Site as Template 3

Microsoft is restricted saving SharePoint 2013 Publishing sites as templates. Here is the information you can find on Microsoft Support pages (http://support.microsoft.com/kb/2492356) SharePoint does not support Save Site as Template option with the Publishing features turned on. The supported method to create templates for publishing sites is to use a site definition template and […]


PowerShell: Changing the Distributed Cache Service Managed Account

Changing managed account used for “Distributed Cache Service” is one of the things that cannot be done using the SharePoint Central Administrator. So as central admin advises you navigate to Security -> General Security -> Configure Service Accounts, find the “Distributed Cache Service” and select another managed account, it gives […]


Start & Stop SharePoint 2010 Windows Services

If you are a SharePoint developer, most probably you installed SharePoint Server to your development environment and if you don’t have seperate development server or you’re not rich like me, you ended up with memory shortage. As most of you know SharePoint consumes considerable amount of resources especially memory. So here […]