Re: Set local admin password
- From: Jerold Schulman <Jerry@xxxxxxxxxx>
- Date: Thu, 15 Jun 2006 07:14:59 -0400
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
.
- Prev by Date: Re: Batch Scripts - to capture output
- Next by Date: Re: Adding provider
- Previous by thread: Re: Batch Scripts - to capture output
- Next by thread: Re: Adding provider
- Index(es):
Relevant Pages
|