修改server core 组策略.note

noteId: WEBf36a7f944bf14cc18374d75850ec4fdd · 原始路径:/ALL/世赛题目(练习) - 笔记/第48届/08-集训队解题/B/修改server core 组策略.note · 图片:6 · 附件待处理:0

 
 
1、先在一台图形化机器(没加域的机器):
建议是在 那台ansible上
修改好组策略后导出:
 
然后拷贝到 server core
 
 
2、在server core上使用命令导入:
# sdb这个文件必须要不存在,它会自动创建
secedit /import /db c:\1.sdb /cfg c:\1.inf /overwrite
secedit /configure /db c:\1.sdb /cfg c:\1.inf /areas SECURITYPOLICY
 
gpupdate /force
 
模板:
直接输入 secedit /import 就能看