Tuesday 3 June 2014

Powershell Get List Views GUID

$sourceWebURL = "http://sharepointsite"
$sourceListName = "MyList"
$spSourceWeb = Get-SPWeb $sourceWebURL
$spSourceList = $spSourceWeb.Lists[$sourceListName]
$spView = $spSourceList.Views
$spView >C:\a.txt
Open txt file you can see <View Name