Like Us
Plus One
Follow Us
Search
 Author Mike Smith  Views 2060 View Original Article

  I wrote a PowerShell script to create views. It worked in PowerShell 3 on SharePoint 2013. It failed in PowerShell 2 on SharePoint 2010. To play it safe, I copied values from an existing view to insure the correct data types… $web = Get-SPWeb http://sharepoint/sites/training$list = $web.lists["Announcements22"]$v = $list.views[0]$list.Views.add("TestView",$v.ViewFields,$v.query,30,$true,$false,
View Original Article

Recent Articles from Tech Training Notes