1 | initial version |
I assume you are trying to stick with powershell for your commands so:
$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