PowerShell

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.

Like this:

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 […]

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 […]

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 […]

Site collections can have two administrators and you can modify them through SharePoint Central Administration. But if you need to change these admins using PowerShell script you can use the following PowerShell function. I filtered site collections with the url to find the appropriate site collection. You can define a parameter […]