简体   繁体   English

如何执行密码复杂性策略设置Windows

[英]How to Enforce Password Complexity Policy settings Windows

Is there any way we can enforce the password policy changes with the immediate effect ie enforce the user to change the password while logon if it is not met newly added policy settings. 有什么方法可以立即实施更改密码策略,即如果不符合新添加的策略设置,则强制用户在登录时更改密码。

I heard that something we can do with Powershell WMI Bridge Scripting. 我听说我们可以使用Powershell WMI Bridge脚本执行某些操作。 I am very much new to it any help on this topic please. 对于这个主题的任何帮助,我都非常陌生。

But as per Miscrosoft 但根据Miscrosoft

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/hh994562(v=ws.10)

the new password policy will come to effect when user changes password manually or age of the policy is over. 当用户手动更改密码或密码使用期限届满时,新的密码策略将生效。 not immediate. 不是立即的。

is there any way we can enforce password change? 有什么办法可以强制更改密码?

You could use PowerShell to check the User must change password at next logon check box for every user. 您可以使用PowerShell为每个用户选中“ User must change password at next logon复选框。

Set-ADUser -Filter * -ChangePasswordAtLogon:$true

would do just that. 会做到这一点。 But please don't run it without knowing what you're doing! 但是请不要在不知道自己正在做什么的情况下运行它!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何以编程方式获取 Enforce Password History 组策略设置? - How to programatically get the Enforce Password History group policy setting? 以编程方式禁用Windows中的密码复杂性 - Programmatically disable Password Complexity in Windows 如何以编程方式检查“密码必须符合复杂性要求”组策略设置? - How to programmatically check the “Password must meet complexity requirements” group policy setting? 以编程方式验证 Windows 密码策略? - Validate Windows password policy programmatically? 小型 AD 域,如何强制执行代理设置但仅适用于家庭局域网? (Windows 10 客户端) - Small AD Domain, how to enforce Proxy settings but only for home LAN? (Windows 10 clients) 如何通过Powershell导出Windows中的账户锁定策略或密码策略? - How do I export Account Lockout Policy or Password Policy in Windows via Powershell? 如何批量启用密码复杂性 - How do I enable password complexity in batch 如何禁用 Windows 防火墙设置 - How to disable windows firewall settings 如何在Windows上更新PHP设置? - How to update the PHP settings on Windows? 如何在 Windows 上查看代理设置? - How to see the proxy settings on windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM