Florian_Eigsi wrote:
Hi,
I just launch one command :
net user Administrateur YourPassword /active:yes
No vbs needed
I do something similar as when I joined this company the local admin password was set randomly on machines and not on others, it was a real hassle when we would get machines back having to bypass the login all the time.
So we pushed this out to every machine but also added it to our SOE.
net user administrator PASSWORD /active:yes
net accounts /MaxPWAge:UNLIMITED
net user Administrator /expires:never
REG ADD HKLM\Software\Lansweeper /v AdminAcctEnabled /t REG_DWORD /d 1
The last command is so we can report on those that have had the password set correctly, if not, we can re-deploy it via a scheduled report or some other means.