• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

OT: NT/2K Script question

SoulAssassin

Diamond Member
Does anyone know how to remotely reset a local acct password on a remote machine via cmd line?

Here's the deal, we have these 18 application servers at different sites throughout the country. There are services that run as a local acct w admin access, I need to stop the service, change the acct password, change the password the service runs as, then start the service. Everything else is cake but after running through TechNet for the past couple hours I can't find out how to remotely change the local password. I can do it for a domain acct no problem, but a vendor has dial in access to these machines and we obviously aren't comfortable giving them domain admin access. I can do it via computer/user mangler but it gets repetitive rather quickly.

Thanks!
 
i think that the following command will do it

NET PASSWORD \\computer | /DOMAIN:name [user [oldpassword [newpassword]]]

to set the local account password, i think you put the computer name into the domain slot, and it will work. Certainly worth a shot. g/l

2nd edit: Looks like my aging mind is mixing my OS's again... never mind the above, I don't think it'll do what you want, but I'll leave it in so that others can taunt me mercilessly.



EDIT: you can also do this using hyena for a gui utility that would be much faster than UM, and there's a free 30 day download.
 
I tried something similar to the first method using 'net user' but no dice. Yeah, I have a licensed copy of Hyena here (killer app, btw) but I'm hoping to script the whole thing so any monkey can do it since this is an afterhours change I have to do on a periodic basis.

I found a GPL'd util here that will do it, but using unlicensed/unapproved software here is a PITA and I'd rather not have to go through the lengthy approval process. (I can see it now, "Now let's step through the source line by line.")
 
Hmmm, that soon command looks interesting...I wasn't familiar with that but it may work. I'm going to look into this more from home tonight.

Any other thoughts are appreciated...I find it odd that M$ wouldn't have a specific way to do this as in net user for domain accts. Thanks.
 
Back
Top