Powershell Command to Add List Items in SharePoint 2010


Let’s add a few thousand items to it. Out of the box, SharePoint doesn’t start throttling lists until there are 5000 items, so you’ll want to create at least that many. This script creates the list items:


for ($i=1; $i -le 5001; $i++)
$item = $list.items.add()
$item[“Title”] = “Todd is cool ” + $i
$item[“Number”] = “$i”


Leave a Reply

Your email address will not be published. Required fields are marked *