Un esempio in PowerShell di come elencare in SharePoint 2007 (WSS3 - MOSS) i campi (field) della site collection, mostrandone solo alcune proprietà, ordinate per internalName e formattate come lista

PowerShell

# carico l'assembly che mi serve
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") 
$site=new-object microsoft.sharepoint.spsite("http://localhost")
$web = $site.RootWeb
$web.Fields | Where-Object {$_.title -match "title"} | select id, internalname, title, schemaxml | sort internalname | Format-List
Tags:
PowerShell199 SharePoint497 SharePoint 2007218
Potrebbe interessarti anche: