从命令行 (CMD) 编辑 Windows 组策略 [英] Edit windows Group Policy from Command line (CMD)

查看:262
本文介绍了从命令行 (CMD) 编辑 Windows 组策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一些组策略,我需要通过批处理文件添加如何从 windows 命令行编辑 windows 组策略?

I want to add some group policy and I need to added by batch file How can I edit windows Group Policy from windows command line?

推荐答案

试试 importregpol.exe

http://blogs.technet.com/b/fdcc/archive/2008/05/07/lgpo-utilities.aspx

它将导入您指定的 pol 文件中的任何内容.要制作 pol 文件,我通过移除机器和用户来清空策略,然后使用 LGPO 编辑器 MMC 设置所需的设置并获取创建的 pol 文件.

It will import whatever is in the pol file you specify. To make a pol file I blank the policy by remove machine and user then set the desired settings with the LGPO editor MMC and grab the pol files that are created.

这篇关于从命令行 (CMD) 编辑 Windows 组策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆