Objects: Difference between revisions

From WikiWiki
Jump to navigation Jump to search
(Created page with "Some Well Known Objects in Active Directory {| class="wikitable" |- ! Type !! SID |- | Group|| bf967a9c-0de6-11d0-a285-00aa003049e2 |- | User || bf967aba-0de6-11d0-a285-00aa...")   (change visibility)
 
No edit summary   (change visibility)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Some Well Known Objects in Active Directory
Some Well Known Objects in Active Directory
 
http://mendelonline.be/wiki/index.php/LDAP


{| class="wikitable"
{| class="wikitable"
Line 20: Line 20:


http://technet.microsoft.com/en-us/library/cc755430%28v=ws.10%29.aspx
http://technet.microsoft.com/en-us/library/cc755430%28v=ws.10%29.aspx
some active directory known values: [[ADS GUIDS]]
<syntaxhighlight lang="powershell">
#Create a hashtable to store the GUID value of each schema class and attribute
$guidmap = @{}
Get-ADObject -SearchBase ($rootdse.SchemaNamingContext) -LDAPFilter `
"(schemaidguid=*)" -Properties lDAPDisplayName,schemaIDGUID |
% {$guidmap[$_.lDAPDisplayName]=[System.GUID]$_.schemaIDGUID}
#Create a hashtable to store the GUID value of each extended right in the forest
$extendedrightsmap = @{}
Get-ADObject -SearchBase ($rootdse.ConfigurationNamingContext) -LDAPFilter `
"(&(objectclass=controlAccessRight)(rightsguid=*))" -Properties displayName,rightsGuid |
% {$extendedrightsmap[$_.displayName]=[System.GUID]$_.rightsGuid}
</syntaxhighlight>

Latest revision as of 14:51, 29 December 2014

Some Well Known Objects in Active Directory http://mendelonline.be/wiki/index.php/LDAP

Type SID
Group bf967a9c-0de6-11d0-a285-00aa003049e2
User bf967aba-0de6-11d0-a285-00aa003049e2
Example Example
Example Example
Example Example


http://technet.microsoft.com/en-us/library/cc755430%28v=ws.10%29.aspx


some active directory known values: ADS GUIDS


#Create a hashtable to store the GUID value of each schema class and attribute
$guidmap = @{}
Get-ADObject -SearchBase ($rootdse.SchemaNamingContext) -LDAPFilter `
"(schemaidguid=*)" -Properties lDAPDisplayName,schemaIDGUID | 
% {$guidmap[$_.lDAPDisplayName]=[System.GUID]$_.schemaIDGUID}

#Create a hashtable to store the GUID value of each extended right in the forest
$extendedrightsmap = @{}
Get-ADObject -SearchBase ($rootdse.ConfigurationNamingContext) -LDAPFilter `
"(&(objectclass=controlAccessRight)(rightsguid=*))" -Properties displayName,rightsGuid | 
% {$extendedrightsmap[$_.displayName]=[System.GUID]$_.rightsGuid}