SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to add list items to a list by using powershell commands.

share|improve this question
up vote 3 down vote accepted

Yes - I'm not aware of a commandlet but it is easy to do using the Powershell commands agaist the object model. See PowerShell-SharePoint: Add a list item as an example (cross posted below for completeness). Just be aware that the site object still needs to be properly disposed as mentioned on the SharePoint Team Blog.


$site    =     new-object Microsoft.SharePoint.SPSite("")                                                        
$web     =    $site.rootweb                                                                                                

$list    =    $web.Lists["Announcements"]                                                                              

$newitem=    $list.items.Add()                                                                                                  

$newitem["Title"]=    "New CFO Appointed";                                                                                          
$newitem["Body"]=    "Our new CFO is Harry Varden, money still not recovered from previous appointee, legal action is ongoing";                                                                                          
$newitem["Expires"]=     [DateTime]::Now.AddDays(5)


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.