PowerShell: Update a Field in SharePoint

I needed to update a couple of rows from a specific list in SharePoint. The value was luckily always the same. So I wrote this little script:

cls
Add-PSSnapin Microsoft.SharePoint.Powershell
$web=get-SPWeb "YourWeb"
$web.title
$list=$web.Lists["YourList"]
$list.title
foreach($item in $list.Items)
{
$item["YourField"] = "YourUpdate"
$item.update()
}
$web.dispose()

I simply pick the web in which I want to work, search for my list there. In this list, I will pick my field and give it a new updated value. Don't forget to use $item.update() at the end, because otherwise your new value won't get displayed.

SharePoint: Can't publish to Slide Library

SharePoint: Which version or update is installed?