Here’s another command which is quite useful when managing a remote workstation and they’ve forgot their password – obviously for when they’re not part of a domain.
Enable Windows Local Administrator Account
net user administrator /active:yes
Set a Password for the Windows Local Administrator Account
net user administrator "yourpasswordgoeshere"
Disable Windows Local Administrator Account
net user administrator /active:no
Batch File
Save the following text to a notepad document and save as a .bat file
@echo off
net user administrator /active:yes
net user administrator "yourpasswordgoeshere"
Click to rate this post!
[Total: 12 Average: 3.8]