008-3.4.2.8 域信任枚举.md
719 B / 2021-07-17 00:01:42
# 3.4.2.8 域信任枚举
Forest间的域课通过建立信任关系进行跨域访问(存在单向信任、双向信任、父子信任、树根信任以及外部信任)
```bash
Get-NetDomainTrust
Get-NetDomainTrust -Domain CASC-DC1.cascade.local
```
.
```bash
Get-ADTrust
Get-ADTrust -Identity CASC-DC1.cascade.local
```
**林:**
获取林详情:
```bash
Get-NetForest
Get-NetForest -Forest htb.local
```
.
```bash
Get-ADForest
Get-ADForest -Identity htb.local
```
获取林内的域:
```bash
Get-NetForestDomain
Get-NetForestDomain -Foresr htb.local
```
.
```
(Get-ADForest).Domains
```
当前林目录:
```
Get-NetForestCatalog
```
林间信任:
```
Get-NetForestTrust
```