New
#20
There's not a direct command for that AFAIK. PowerShell, however, has the ability to force a user to change their password at next logon... And if PowerShell can do that, the Command Prompt can too. So I guess there is a command for that.
PowerShell command
Command Prompt commandCode:[adsi]'WinNT://./Pyprohly' | %{$_.PasswordExpired = 1; $_.SetInfo()}
N.B. For the above commands to work, the user account's password must, of course, be set to expire. And your Shell must be elevated.Code:powershell "[adsi]'WinNT://./Pyprohly' | %{$_.PasswordExpired = 1; $_.SetInfo()}"
Last edited by Pyprohly; 17 Apr 2015 at 06:53.