PoshCode Logo PowerShell Code Repository

Difference between
modified post 6680 by arnel on Mon 9th Jan 23:59 and
original post 1241 by BSonPosh on Wed 29th Jul 06:41
Showold version | new version | both versions

    
11
$forest = [DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
22
$Schema = $forest.schema
33
$Properties = $Schema.FindAllProperties()
44
foreach($property in $Properties)
55
{
66
   "#################################"
77
   "Name:   {0}" -f $property.Name
88
   "Link:   {0}" -f $property.link
99
   "LinkID: {0}" -f $property.linkid
1010
   if(!$?)
1111
   {
1212
        "Error: {0}" -f $error[0].message
1313
   }
1414
   "#################################"
1515
}

ContributeMost Recent Contributions (feed)

Contribute ... Next Page