PowerShell

Enable versioning on all SharePoint Document Libraries in a Site Collection

Enable versioning on all SharePoint Document Libraries in a Site Collection

Enabling versioning on all document libraries in a site collection or disabling versioning is often quite useful. Write-Host Loading the SharePoint Powershell Snapin

Load Snapins

if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } Write-Host "Starting to update lists and Libraries" $webs = get-spsite http://intranet.domain.
By Ulrich Bojko
Import user profile pictures to SharePoint using PowerShell

Import user profile pictures to SharePoint using PowerShell

Best solution to create Automatic UserProfile Import to SharePoint 1. Create folder “ImportProfileImages” 2. Create subfolder “ProfileImages” 3. Create “c:\SPSolutions\ImportProfileImages\UpdateUserProfiles.ps1” with the code from SharePoint Use Cases cls if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell; } #-----------------------------------------------------------
By Ulrich Bojko