Add list items from csv using PowerShell

I would like to share import csv files using PowerShell script. The easiest way import csv file to SharePoint, convert csv to excel file and use Import spreadsheet option. If your requirements does not meet import spreadsheet option, please use below script. Add PowerShell dll to access SharePoint objects if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction…

SharePoint client side people picker

I would like to share how to implement SharePoint client side people picker in this article. First, we should add the reference files in solution as below /jquery-3.1.0.js /SiteAssets/ChangeRequestForm/sppeoplepicker.js /_layouts/15/MicrosoftAjax.js /_layouts/15/init.js /_layouts/15/sp.runtime.js /_layouts/15/sp.js /_layouts/15/SP.UserProfiles.js /_layouts/15/1033/strings.js Then, we should add div section in aspx page like below, this tag populate the user names if user type…

The Visible property cannot be set on Web Part

I have faced an issue while edit home.aspx page. The issue is that am getting web parts maintenance error. I thought its common error and add contents=1 in url. But, unfortunately all the web parts are fine. Then, I have started to trace with correlation id and found an error. The error is below, Getting…

Delete SharePoint groups in PowerShell

We can create SharePoint group in testing or production environment. But, we can see sometimes group name is not available but group name exists in SharePoint. Here, the question is raised, OMG!!!!! How to delete this group??? Do not worry :-). Please use below script to delete particular group in SharePoint. Add-PSSnapin “Microsoft.SharePoint.PowerShell” #Get web…

Create SharePoint groups in sub sites using powershell scripts

We know to create SharePoint group in root site or site collection. But, its hard to create group in sub sites. Why? We need to stop inheriting permissions and assign new permission role for sub site group to create every group. The below script is making easier your work 🙂 if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell…

Create SharePoint groups using powershell scripts

I would like to share below script to create group in SharePoint with permission if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) { Add-PsSnapin Microsoft.SharePoint.PowerShell } Custom Function to Create new SharePoint Group function Create-SPGroup { param ($SiteURL, $GroupName, $PermissionLevel, $GroupDescription) try { #Get the Web $web = Get-SPWeb -Identity $SiteURL if($web -ne…