New Question

Revision history [back]

click to hide/show revision 1
initial version

I assume you are trying to stick with powershell for your commands so:

ps1

$NewPassword = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force Set-LocalUser -Name administrator -Password $NewPassword

If you were trying to do it with cmd line then: runcmd: - net user administrator P@ssw0rd