I have a following task in sharepoint 2007 to identify if the list fields come from the parent web or site col, this i'm planning to do with a powershell script.
So what I want to do is to iterate thru all the site collections, the sites (webs) and the lists on them, and in every list i want to iterate thru all the fields and see if those fields come from site col or web, or are they only defined in the list it self.
My question is: is it possible when having an SPField object to identify where it comes from? Or should i get all the fields on the web or site col and then based on this spfields find a reference in what lists they are being used, and then retrieve them to perfrom some operations?
And what is the best way to do this, because i need to compare some settings if they are same, like display name?
Thanks for the help