SharePoint 2013 Backup with PowerShell and Task Scheduler for beginners

An oldie but a goodie. Courtesy of Yousef Omar ______________________________ You can do Everything with PowerShell - yes everything - and SharePoint is no exception. In this post for beginners, I will show you how to create tasks for the Task Scheduler to automate your SharePoint backups with PowerShell. First, to backup your farm, you … Continue reading SharePoint 2013 Backup with PowerShell and Task Scheduler for beginners

How to keep SharePoint calculated columns up-to-date

An oldie but a goodie I used today._____________________________________________ The major issue related with SharePoint calculated columns is the fact that they are not dynamically updated. In  other words, they will be updated each time you create or edit list item, but before the next item change they will not be recalculated ever again. In most … Continue reading How to keep SharePoint calculated columns up-to-date

An oldie but a goodie- Stsadm to Windows PowerShell mapping in SharePoint 2013

Stsadm and PowerShell Mapping Stsadm operation Windows PowerShell cmdlet Activatefeature Enable-SPFeature Activateformtemplate Enable-SPInfoPathFormTemplate Addalternatedomain New-SPAlternateUrl Addcontentdb Mount-SPContentDatabase New-SPContentDatabase Adddataconnectionfile Install-SPDataConnectionFile Add-ecsfiletrustedlocation New-SPExcelFileLocation Add-ecssafedataprovider New-SPExcelDataProvider Add-ecstrusteddataconnectionlibrary New-SPExcelDataConnectionLibrary Add-ecsuserdefinedfunction New-SPExcelUserDefinedFunction Addexemptuseragent Add-SPInfoPathUserAgent Addpath New-SPManagedPath Addpermissionpolicy None Addsolution Add-SPSolution Addtemplate Install-SPWebTemplate Adduser New-SPUser Addwppack Install-SPWebPartPack Addzoneurl New-SPAlternateUrl Allowuserformwebserviceproxy Set-SPInfoPathWebServiceProxy Use the AllowForUserForms and Identity parameters. Allowwebserviceproxy Set-SPInfoPathWebServiceProxy Use … Continue reading An oldie but a goodie- Stsadm to Windows PowerShell mapping in SharePoint 2013

Change the content type of list items using PowerShell

Quick shout out....I found this script by Matthew Yarlett very helpful today..... If you've got a content type deployed in multiple lists in site, and you want a way to quickly change all the existing items to the new content type, you can use PowerShell to do the dirty work. Note that there are a few … Continue reading Change the content type of list items using PowerShell

List all installed features on the farm via PowerShell

List all installed features on the farm It’s really straight forward using the Get-SPFeature command to return all installed features: 1 Get-SPFeature | Sort -Property DisplayName By feature ID, 1 Get-SPFeature | Sort -Property Id By feature display name alphabetically and grouped by scope, 1 Get-SPFeature | Sort -Property Scope,DisplayName | FT -GroupBy Scope DisplayName,Id … Continue reading List all installed features on the farm via PowerShell

Enable/Disable versioning on ALL doc libs in web app via PowerShell

This works great. But be careful and use at your own risk. Always have a full backup and test in dev environment.     function Set-DocLibVersioning() {     [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")     $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local     foreach ($spService in $farm.Services) {         if (!($spService -is [Microsoft.SharePoint.Administration.SPWebService])) {             continue;        }         foreach ($webApp in $spService.WebApplications) { … Continue reading Enable/Disable versioning on ALL doc libs in web app via PowerShell

Stsadm to Windows PowerShell mapping

Stsadm to Windows PowerShell mapping (SharePoint Server 2010)   SharePoint Server 2010 Published: May 12, 2010 This article lists Stsadm operations and their equivalent Windows PowerShell cmdlets. Where there is no one-to-one mapping between the operations and cmdlets, the table lists the specific Windows PowerShell parameters you must use to get the same functionality. Stsadm … Continue reading Stsadm to Windows PowerShell mapping

Creating PowerShell script library

  Great post courtesy of Fermin Sanchez   Creating PowerShell script library Posted on February 25, 2012 by admin Over time I’ve created some PowerShell scripts that I want to reuse. And of course I would like to have them at my fingertips as soon as I start a PowerShell session. The solution to this … Continue reading Creating PowerShell script library