VS2012Logo

Upgrade SharePoint 2010 webpart solution to 2013

Open Visual Studio 2012. Go to File-Open-Project/Solution, locate the file you want to upgrade. (let it do the normal upgrade) Close the project and save changes. Open the *.csproj file in Notepad or some other type of text editor. Change the TargetFrameWorkVersion element from v3.5 to v4.5 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> Add the TargetOfficeVersion element below the TargetFrameworkVersion element <TargetOfficeVersion>15.0</TargetOfficeVersion> Save the file and open the project again in Visual Studio 2012…

PowerShell

Powershell – Access Request Settings (SharePoint 2010 & 2013)

I had a request to turn on all access requests or notifications on all sites with a web application. PowerShell is your best bet for doing these types of occasional tasks. This script will turn access requests on for all sites. Change the email address below to the intended recipient. # Get All Web Application $webApp=Get-SPWebApplication # Get All site collections foreach ($SPsite in $webApp.Sites) { # get the collection…

PowerShell

PowerShell – Find SharePoint Group Assignments

This PowerShell script will enumerate through all sites in the collection and return any sites that contain a given group name. Replace the red text, Administrative Members with the name of the group. # Get All Web Application $webApp=Get-SPWebApplication # Get All site collections foreach ($SPsite in $webApp.Sites) { # get the collection of webs foreach($SPweb in $SPsite.AllWebs) { foreach($SPG in $SPweb.Groups) { if ($SPG.Name -eq “Administration Members“) { Write-Host…