SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

$web = Get-SPWeb http://”sitecollectionurl”
$column = $web.Fields[“Column Display Name”]
$allCT = $web.ContentTypes
foreach (SPContentType $ct in $allct)
  # Need help here so I can find the field in question

returns nada. do i need to add

I am trying to delete a field and it said it's in used by some content type.

share|improve this question
up vote 1 down vote accepted

I found a powershell script from: and modified it.

Try this:

$columnname = "StartDate"

write-host ("Looking for: " + $columnname)      
$url=  "http://localhost/"  
$site = get-spsite $url         
$web = $site.OpenWeb()      
foreach ($contenttype in $web.ContentTypes) {   
    foreach ($field in $contenttype.Fields) {
        if ($field.get_InternalName() -eq $columnname) {
            write-host("Content Type Name: " + $contenttype.Name + " has field: " + $field.get_InternalName())  
share|improve this answer
Perfect. Thank you Brandon. You rock. (well, rock is hard and senseless). You smooth. LOL – Maria Burton Jul 2 '12 at 15:52
I changed get_InternalName to get_Title cause the column name was renamed. Thanks – Maria Burton Jul 2 '12 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.