2

I'm trying to remove a users password through Powershell.

I know I can create a user without password like this:

New-LocalUser -Name "myuser" -NoPassword

But how do I remove a users password once it has already been set?

2

Welp nevermind, I found my answer on StackOverflow.

Set-LocalUser -name "myuser" -Password ([securestring]::new())

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.