Hi,
According to your description, my understanding is that you want to find some specific string character in list items using PowerShell Command.
$w = Get-SPWeb "http://devmy131"
$l = $w.GetList("http://devmy131/lists/fieldslist");
$i = $l.Items[0]["Title"].ToString();
if ($i -like '*document*')
{
Write-Host "Title contains document character" $i;
}
More information:
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
No comments:
Post a Comment