Skip to content

Instantly share code, notes, and snippets.

@AlexFilipin
Created April 8, 2019 12:20
Show Gist options
  • Save AlexFilipin/4094209ba2e7b7728eb54a2c2cab74d4 to your computer and use it in GitHub Desktop.
Save AlexFilipin/4094209ba2e7b7728eb54a2c2cab74d4 to your computer and use it in GitHub Desktop.
$Schema = Get-MVSchema
$Attribute = "DisplayName"
if($Schema.Attributes.Keys -contains $Attribute){
Write-Host "Attribute in MV schema"
foreach($Key in $Schema.ObjectClasses.Keys){
$Attributes = $Schema.ObjectClasses.$Key.Attributes.Keys
if($Attributes -contains $Attribute){
Write-Host "Binding on: " $Key
}
}
}else{
Write-Host "Attribute NOT in MV schema"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment