Category Archives: Active Directory

GPO – Deny single user/Group

1. First you need to find the GPO Guid

To Find the group Guide Connect to a dc server and open Active Directory PowerShell

get-gpo -all |select-object DisplayName,id |sort name >c:\gpo.txt

image

 

2. Find in Active directory the GPO with ldap search

That guid is an attribute on an object in Active Directory, so you can query for it:

(&(objectCategory=groupPolicyContainer)(name={D45A4D0F-77BE-4116-9F5B-CF96E81D2DDC}))

image

3.Right Click On the Guid – Properties -security

4.Advanced

5.Add the user/group

6.Deny on – Apply Group Policy

clip_image001

clip_image002

AD Schema version

The following list show each version:

Schema-Version 13 = Windows 2000 RTM 
Schema-Version 30 = Windows Server 2003 RTM
Schema-Version 31 = Windows Server 2003 R2 RTM
Schema-Version 44 = Windows Server 2008 RTM
Schema-Version 47 = Windows Server 2008 R2

You can find the version number by using one of the following :

1.ADSIedit – – objectVersion property of the Schema container

image

2.HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters\<Schema Version>

image

3. dsquery * CN=Schema,CN=Configuration,DC=Root-Domain -Scope Base  -attr objectVersion

Show who holds the FSMO roles in the domain and forest.

log onto a domain controller and run the following command.

netdom query fsmo

clip_image001