标签:style blog color ar for sp div on log
通过secedit工具设置本地安全策略
$secfile = "C:\Config08\secpol.cfg" #导出当前安全策略模板 secedit /export /cfg $secfile #禁用密码复杂度,设置密码永不过期 ((gc $secfile) -replace "PasswordComplexity = 1", "PasswordComplexity = 0" ) -replace "MaximumPasswordAge = 42","MaximumPasswordAge = -1"| Out-File $secfile -force #导入新的安全策略模板(指定要应用到系统的安全性范围为SECURITYPOLICY) secedit /configure /db secedit.sdb /cfg $secfile /areas SECURITYPOLICY /quiet
标签:style blog color ar for sp div on log
原文地址:http://www.cnblogs.com/dreamer-fish/p/4029392.html