PowerShell: Discover Domains and Trusts in Microsoft Windows Environment

PS C:\Windows\system32> Get-ADTrust -Filter *
Direction : BiDirectional
DisallowTransivity : False
DistinguishedName : CN=kimconnectschools.org,CN=System,DC=kimconnect,DC=k12,DC=ca,DC=us
ForestTransitive : True
IntraForest : False
IsTreeParent : False
IsTreeRoot : False
Name : kimconnectschools.org
ObjectClass : trustedDomain
ObjectGUID : ad578513-3498-4c7c-a885-d5717c5fb313
SelectiveAuthentication : False
SIDFilteringForestAware : False
SIDFilteringQuarantined : False
Source : DC=kimconnect,DC=k12,DC=ca,DC=us
Target : kimconnectschools.org
TGTDelegation : False
TrustAttributes : 8
TrustedPolicy :
TrustingPolicy :
TrustType : Uplevel
UplevelOnly : False
UsesAESKeys : False
UsesRC4Encryption : False

PS C:\Windows\system32> get-addomain kimconnectschools.org
AllowedDNSSuffixes : {}
ChildDomains : {}
ComputersContainer : OU=_UnclaimedDomainJoined,OU=Sites,DC=kimconnectschools,DC=org
DeletedObjectsContainer : CN=Deleted Objects,DC=kimconnectschools,DC=org
DistinguishedName : DC=kimconnectschools,DC=org
DNSRoot : kimconnectschools.org
DomainControllersContainer : OU=Domain Controllers,DC=kimconnectschools,DC=org
DomainMode : Windows2008R2Domain
DomainSID : S-1-5-21-1846739454-297172624-1433393011
ForeignSecurityPrincipalsContainer : CN=ForeignSecurityPrincipals,DC=kimconnectschools,DC=org
Forest : kimconnectschools.org
InfrastructureMaster : kimconnect-DC1.kimconnectschools.org
LastLogonReplicationInterval :
LinkedGroupPolicyObjects : {CN={2DADDEE5-D6EF-41C6-9527-9DDC67A12CC7},CN=Policies,CN=System,DC=kimconnectschools,DC
=org, CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=kimconnectschoo
ls,DC=org}
LostAndFoundContainer : CN=LostAndFound,DC=kimconnectschools,DC=org
ManagedBy :
Name : kimconnectschools
NetBIOSName : kimconnectSCHOOLS
ObjectClass : domainDNS
ObjectGUID : fc7b46c2-175c-4ef7-96f4-afcdf27caf94
ParentDomain :
PDCEmulator : kimconnect-DC1.kimconnectschools.org
QuotasContainer : CN=NTDS Quotas,DC=kimconnectschools,DC=org
ReadOnlyReplicaDirectoryServers : {}
ReplicaDirectoryServers : {kimconnect-DC1.kimconnectschools.org, kimconnect-DC2.kimconnectschools.org}
RIDMaster : kimconnect-DC1.kimconnectschools.org
SubordinateReferences : {DC=DomainDnsZones,DC=kimconnectschools,DC=org,
DC=ForestDnsZones,DC=kimconnectschools,DC=org, CN=Configuration,DC=kimconnectschools,DC=org}
SystemsContainer : CN=System,DC=kimconnectschools,DC=org
UsersContainer : CN=Users,DC=kimconnectschools,DC=org

Leave a Reply

Your email address will not be published. Required fields are marked *