Re: Set local admin password

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Wed, 14 Jun 2006 12:35:02 -0700, Mike <Mike@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I would like to change all XP local admins password to the same on the
network. I have a list of computers in a text file that I would like to
point to and then return to a file if it was successful or not.

Anyone have any ideas?

Mike

See tip 7324 » How do I change the Administrator password on all my workstations, from my desktop, using freeware?
in the 'Tips & Tricks' at http://www.jsifaq.com

To use your text file instead of the netdom command, replace

:blind
for /f "Skip=1 Tokens=*" %%w in ('netdom query /domain:%USERDNSDOMAIN% WORKSTATION') do set cn=%%w&call :ws
goto :EOF
:ws
if /i "%cn%" EQU "The command completed successfully." goto :EOF


WITH

for /f "Tokens=*" %%w in ('type c:\folder\filename.txt') do set cn=%%w&call :ws
goto :EOF
:ws

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages

  • Re: Broadcast Message to multiple clients
    ... Note Windows NT-based client run the Messenger service by default. ... goto:LOOP ... goto:EOF ... > save a list of computers? ...
    (microsoft.public.windows.server.general)
  • Re: find out which partiton
    ... > on computers. ... > does anyone know a way to get this info by WSH-Script, shell script or a ... goto:EOF ...
    (microsoft.public.win2000.cmdprompt.admin)
  • iptables question
    ... in the network, it gets sent to xxx.xxx.xx.100 .. ... But due to some electrical problems, all the computers rebooted, ... (excuse me for my not-so-good english) ... #EOF ...
    (comp.unix.admin)
  • Re: running script when network connectivity is back
    ... Is it possible some how to recognize that network is back again and to ... if not exist "%temp%\NWFail.txt goto:eof ... {Your script command goes here} ...
    (microsoft.public.windows.server.general)
  • [PATCH] drivers/staging/rtl8187x: Use %pM for mac address output
    ... To use the debug system; ... " previous TSC %08x%04x received TSC " ... goto rx_dropped; ... if (ieee80211_network_init(ieee, beacon, &network, stats)) { ...
    (Linux-Kernel)