(Thanks to Payam @ GPLSolutions for these)
Apparently one can fully automate creating a user from the DOS
command line now, including being able to disable password expiration.
So to create an administrative user named 'render'
with the non-expiring password 'render7', you can use:
net user render render7 /add # creates user account + password
net localgroup administrators render /add # makes user administrator
wmic useraccount where "Name='render'" set PasswordExpires=FALSE # disable password expiration
I've verified this works on Win7.
This is very handy if you want to make a script that you can
run on 100 machines to create a local user, then configure the
rushd service to run as that user.
Apparently too, you can disable the UAC before running the rush
install script from DOS as well. Something you'd want to do if
installing on Win7 or Vista:
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
(I haven't verified that last one; just passing it on)
|