PowerShell script to create Bulk Site Columns in SharePoint
We will be using the CSV source to create multiple or bulk site columns in SharePoint. 1) Create a csv file as source. In the below format Name,Description,Type,Group,Hidden,ShowInDisplayForm,ShowInEditForm,ShowInNewForm,Termset,Term,Choices,DefaultValue,AllowMultipleValues,Lookup,IsTermGroup Bool Col,,Boolean,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO Choice Col,,Choice,MyColGp,FALSE,TRUE,TRUE,TRUE,,,"Chice1,choice2",,,,NO Date Col,,DateTime,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO Managed Col,,Managed Metadata,MyColGp,FALSE,TRUE,TRUE,TRUE,TermsetName,Term,,,,,NO Description,,Note,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO Text Col,,Text,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO Link,,URL,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO Col2,,User,MyColGp,FALSE,TRUE,TRUE,TRUE,,,,,,,NO 2) Create a new powershell script with below code #This script creates site columns from the given csv file #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $rooturl = $( Read-Host -prompt ...