使用Windows PowerShell管理组策略Use Windows PowerShell to manage group policy

Windows PowerShell支持在组策略管理控制台 (GPMC) 中对基于域的组策略对象执行相同任务的组策略自动化 (GPO) :Windows PowerShell supports group policy automation of the same tasks you perform in Group Policy Management Console (GPMC) for domain-based group policy objects (GPOs):

  • 维护 GPO (GPO 创建、删除、备份和导入) Maintain GPOs (GPO creation, removal, backup, and import)
  • 将 GPO 与 Active Directory 服务容器 (组策略链接创建、更新和删除) Associate GPOs with Active Directory service containers (group policy link creation, update, and removal)
  • 设置 GPO 的权限Set permissions on GPOs
  • 修改 Active Directory 组织单位和域中 (继承) 标志Modify inheritance flags on Active Directory organization units (OUs) and domains
  • 配置基于注册表的策略设置和组策略首选项注册表设置 (更新、检索和删除) Configure registry-based policy settings and group policy preferences registry settings (update, retrieval, and removal)
  • 创建简易 GPOCreate starter GPOs