First off my code is this.
foreach ($list in $web.lists)
{
foreach ($field in $list.fields)
{
if ($field.type -eq 'User')
{
write-host $list.Title
write-host $field
write-host ""
}
}
}
I can get all the lists for the web, check each lists fields and if the field is a 'User' field (People Picker Value); I can get the list title and the 'User' type field name.
This works fine to find the lists I want to query.
Now I want to query those list fields for a particular user and replace that user with another user.
I can't seem to figure out how to pull back the actual data that is in the column.