I'm creating sites, subsites and lists via PS. And I need to "enable" the version/size columns, in lists I created.
I don't want to create them because they already exist. In graphical mode, I just have to check the column's box I want, then the column appear in lists.
But in PS, I can't find a way to do it.
I find things like this : (sources)
$myCustomList = $myTestWeb.Lists[$ListName] #Add columns $spFieldType = [Microsoft.SharePoint.SPFieldType]::Text $myCustomList.Fields.Add("TextField",$spFieldType,$false)
But it does not work. If someone can rescue me :)
Thanks in advance,
P.S : I apologize for my bad english :(