【发布时间】:2017-03-26 17:41:41
【问题描述】:
我想在本地组策略编辑器中访问这个路径Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Maximum password age,并通过powershell脚本修改它的值。我尝试导入模块组(Get-Command -Module group*)但没有找到方法/模块。我在powershell中尝试了以下方法,但没有成功。
Set-ItemProperty -Path \Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy -Name Maximum password age -Value 20
有人可以帮助我通过 powershell 脚本修改值吗?
我是 powershell 脚本的新手,所以如果有任何错误信息,请忽略 提供。
【问题讨论】: