Guest Ammad Shah Posted January 20, 2008 Posted January 20, 2008 Windows 2003 and XP professional Domain Environment. Dear all, i want to change local administrator password of all workstations (XP) and Windows 2003 member servers, since there are 90 hosts and 15 member server. is there easy way to set the new password on all systems? thanks.
Guest Meinolf Weber Posted January 20, 2008 Posted January 20, 2008 Re: Reset local Administrator password Hello Ammad, Have a look here: http://www.frickelsoft.net/blog/?p=59 Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights. ** Please do NOT email, only reply to Newsgroups ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm > Windows 2003 and XP professional Domain Environment. > > Dear all, > > i want to change local administrator password of all workstations (XP) > and Windows 2003 member servers, since there are 90 hosts and 15 > member server. is there easy way to set the new password on all > systems? > > thanks. >
Guest Ranen QU Posted January 21, 2008 Posted January 21, 2008 Re: Reset local Administrator password Hi Ammad I suggest that you can use to complete the script, please refer to net user [userName [Password | *] [options]] [/domain] net user [userName {Password | *} /add [options] [/domain]] net user [userName [/delete] [/domain]] Want to help you -- MCSE2003\MCSA2003\MCP\MTO\MVP bbs:http://www.mcse.org.cn msn:lingluo18@hotmail.com mail:lingluo18@gmail.com "Meinolf Weber" wrote: > Hello Ammad, > > Have a look here: > http://www.frickelsoft.net/blog/?p=59 > > Best regards > > Meinolf Weber > Disclaimer: This posting is provided "AS IS" with no warranties, and confers > no rights. > ** Please do NOT email, only reply to Newsgroups > ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm > > > Windows 2003 and XP professional Domain Environment. > > > > Dear all, > > > > i want to change local administrator password of all workstations (XP) > > and Windows 2003 member servers, since there are 90 hosts and 15 > > member server. is there easy way to set the new password on all > > systems? > > > > thanks. > > > > >
Guest Graham Posted January 23, 2008 Posted January 23, 2008 RE: Reset local Administrator password Hi Ammad Like many admins, I had this problem a few years back. To resolve it, and also with the caveat that different PC naming conventions would need different local admin passwords. I created the following VBS script: -------------------- On Error Resume Next Set DomObj = GetObject("WinNT://<new_format_domainname>") DomObj.Filter = Array("computer") For Each computer In DomObj if (Instr(computer.name,"xxx") or Instr(computer.name,"yyy") or Instr(computer.name,"zzz")) then wscript.echo computer.name Set DomObj = GetObject("WinNT://<old_format_domainname>/" & computer.name & "/Administrator,user") DomObj.SetPassword "password" end if Next ----------------------------- replace the <new_format_domainname> and <old_format_domainname> with your relevant info. Note that you will have to replace xxx, yyy and zzz with part of your relevant naming convention and even remove instances of the Instring if you don't need them. eg if all your head office PC's start with "HO", replace with "HO". It will then reset the password on any PC in the directory that starts with "HO". save the file as reset_password.vbs run it by typing: cscript <path>\reset_password.vbs Unbeleiveable this functionality was not part of windows from the outset as it is such an obvious task that needs to be achieved! "Ammad Shah" wrote: > Windows 2003 and XP professional Domain Environment. > > Dear all, > > i want to change local administrator password of all workstations (XP) and > Windows 2003 member servers, since there are 90 hosts and 15 member server. > is there easy way to set the new password on all systems? > > thanks.
Recommended Posts