Category Archives: Windows

How does replication work in Active Directory

There is a counter in RootDSE:

(more…)

Active Directory Global Catalog

(more…)

Configuring Reverse Reverse DNS Lookup zone

Click New Zone… in DNS Manager and click Next button until you see this page:

(more…)

Configuring Active Directory Trust Relationships

I created two domains and set up Conditional Forwarders on the both Domain Controllers:

(more…)

Creating an Active Directory domain

Installed the following on my second server:

(more…)

Playing with nslookup

nslookup google.com
Server:  UnKnown
Address:  192.168.0.1

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:4010:c0f::65
          2a00:1450:4010:c0f::66
          2a00:1450:4010:c0f::8a
          2a00:1450:4010:c0f::8b
          108.177.14.138
          108.177.14.102
          108.177.14.139
          108.177.14.101
          108.177.14.100
          108.177.14.113
(more…)

Active Directory DNS

Copy of DNS records are stored in AD

(more…)

Creating custom Attribute in Active Directory

Register MMC Snapin:

regsvr32 schmmgmt.dll

Press Windows Key + R, type mmc, and press Enter. Go to File->Add or Remove Snapin:

(more…)

Querying Active Directory with LDAP

export ad_ip="10.15.7.15"
export ad_user="administrator@itdrde.local"
export ad_password="XXXXXXXXX"

Computers are also Users

ldapsearch -H ldap://$ad_ip:389 -x -D $ad_user -w $ad_password -b "DC=itdrde,DC=local" \
    -s sub -a always -z 1000 "(objectClass=user)" "serviceClassName" "serviceDNSName" "objectClass"
(more…)

Querying Active Directory with PowerShell

First run the following command as administrator to make Get-ADUser command work:

Get-WindowsCapability -Online | Where-Object {$_.Name -like "*ActiveDirectory.DS-LDS*"} | Add-WindowsCapability -Online
Path          :
Online        : True
RestartNeeded : False

Try the following commands:

$ad_ip = "10.15.7.15"
$ad_user = "administrator@itdrde.local"
Get-ADUser -Server $ad_ip -Credential $ad_user -Properties *
(more…)