how to add user as administrator on a computer windows 10 code example Example: how to activate administrator account in windows 10 command prompt net user administrator /active:yes