# Description # Output all available Column Field GUIDs to output.txt # # Syntax # ./listColFldID # # Parameters # none # # Settings # Only change the -value parameter! # set-variable -option constant -name url -value "http://devinnergy" # Site collection set-variable -option constant -name out -value "ColumnFields.csv" # Output file # End of settings $site = new-object Microsoft.SharePoint.SPSite($url) $web = $site.rootweb.Fields echo "Processing..." ForEach ($id in $web) { '"' + $id.Title + ` '","' + $id.Id + ` '","' + $id.InternalName + ` '","' + $id.MaxLength + ` '","' + $id.Description + ` '","' + $id.Group + ` '","' + $id.TypeShortDescription + ` '"' | Out-File $out -append } $site.Dispose() echo "Finished!" # Changelog # # v1.0 - August 25th, 2008 # First release