使用 PowerShell 管理 Active Directory 和 DNS
1. 使用 PowerShell 管理 Active Directory
许多 Active Directory 管理任务具有重复性,使用 PowerShell 编写脚本可以提高效率。有三个与 Active Directory 相关的 PowerShell 模块,下面分别介绍:
- Active Directory PowerShell 模块 :日常管理 Active Directory 时常用。该模块包含众多 cmdlet,可对各种 Active Directory 对象进行操作,例如管理用户、计算机、组等账户,配置密码策略、认证策略等。以下是部分 cmdlet 示例:
| Noun | Verbs | Function |
| — | — | — |
| ADAccount | Unlock, Search, Enable, Disable | 查找、解锁、启用或禁用用户、计算机或服务账户 |
| ADAccount Password | Set | 配置用户、计算机或服务账户的密码 |
| ADComputer | Remove, New, Set, Get | 管理 Active Directory 计算机账户 |
- GroupPolicy 模块 :可从 PowerShell 管理组策略。相关 cmdlet 能实现组策略的备份、恢复、复制、报告生成等功能。例如:
| Noun | Verbs | Function |
| — | — | — |
| GPIn
超级会员免费看
订阅专栏 解锁全文
1117

被折叠的 条评论
为什么被折叠?



