重置过期密码并启用过期选项? [英] Reset expired password with expiry option enabled?

查看:238
本文介绍了重置过期密码并启用过期选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过期密码后,以某种方式可能使重置密码启用到期选项吗?密码重置后,我看到帐户没有密码exipiration。 

Is somehow possible after expired password make reset password with expiry option enabled? After password reset I see account with no password exipiration. 

我试图重置密码并使用RunPowerShellScript启用密码到期:

I was trying to reset password and enable password expiration with RunPowerShellScript where I put:

净用户[用户名] [密码]



WMIC USERACCOUNT WHERE" Name ='[username]'" SET PasswordExpires = FALSE

net user [username] [password]

WMIC USERACCOUNT WHERE "Name='[username]'" SET PasswordExpires=FALSE

此命令后密码重置成功,但仍然禁用到期。

Password reset is successful after this commands but expiry is still disabled.

推荐答案

您好我相信,一旦您重置用户密码,密码到期时间来自本地计算机政策。 

Hi I believe that once you reset a users password, the password expiration comes from the local computer policy. 

您需要使用本地组策略编辑器设置密码到期策略gpedit.msc

You need to set a policy for the password expiration using local group policy editor gpedit.msc


这篇关于重置过期密码并启用过期选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆