[英]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.