How to change local admin password using net user command and K1000 scripting.
I have written a batch file to change the local admin password with the net user command and then to delete the batch file.
i run it as the local system, in task 1 under "on success". I set the second task to log "done" to status.
here is the script:
net user Administrator <password>
the script works fine and the password is changed, but the k1000 does not report that the scritp is succesful. it says that its still running. it never logs the "done" message.
will the script run again if its set on a schedule? is there a way to get it to report that its successful?
would a vb script be more useful in this situation?
The shell script suggested below worked. the only trick is to change the file name from *.sh to *.bat. windows doesnt like the .sh extension; comes back with a 193 script error.