New Question

# Revision history [back]

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