Powershell script on Sharepoint

…this post was published on 2012 September 3.

I start today a post regarding commands and procedures using PowerShell Script to change / work Sharepoint’s list

1. change a field on all items in a  list

$my_web = get-spweb your_site_URL
 $my_list = GetList(“/path/your_list_name”)
 foreach ($my_item in $my_list.getitems() )
 {
              $my_item[“your_column_name”]  = “The_new_value”
              $my_item.Update()
 }

This entry was posted in Powershell, Sharepoint 2010. Bookmark the permalink.