Re: how to create local user accounts on W2k via script?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JesseH (Jesseh55454_at_yahoo.nospam.com)
Date: 06/09/04


Date: Wed, 9 Jun 2004 15:47:37 -0500


>From remote server or desktop, if you are an admin...
loop through this:
psexec \\SomeWin2Kserver net localgroup myLocalGroup /add domain\username
change myLocalGroup and domain\username to whatever you need.

"Jerold Schulman" <Jerry@jsiinc.com> wrote in message
news:uosec09knm2c0ogau2tuj32vpcpajau20c@4ax.com...
> On Wed, 9 Jun 2004 15:25:04 -0500, "Mike" <flakrat-noSP-am@hotmail.com>
wrote:
>
> >Does anyone know of a way to create local user accounts via a script? (by
> >local I mean the local Windows 2000 accounts, not Active Directory
> >accounts).
> >
> >What I'm trying to do is, I have test servers that I'm having to
reinstall
> >the OS and apps on several servers every week or so.
> >I have a 100 or so local user accounts that I have to create each time I
> >rebuild the box.
> >
> >I'd like to create a script that reads an array, table, or cvs file with
all
> >of the account ids, passwords, etc... and then creates the accounts.
> >
> >Any ideas or if this is even possible with local accounts?
> >
> >Thanks,
> >
> >Mike
> >
> Use tip 2815 in the 'Tips & Tricks' at http://www.jsiinc.com to lookup the
"NET
> USER" and "NET LOALGROUP" commands.
>
>
> Jerold Schulman
> Windows: General MVP
> JSI, Inc.
> http://www.jsiinc.com



Relevant Pages

  • Re: File Copying
    ... workstation would would copy the files to it's own RAM when the files should ... be copied between the servers. ... So, I could try using psexec to run the batch on one of the servers, but ... Having the file copied to local RAM is so old ...
    (microsoft.public.windows.server.networking)
  • Impersonation issue with PsExec ?
    ... executing commands remotely on some servers, but the problem is, PsExec has ... to get access to do just anything on servers with the Admin$ share on. ... but this disables using PsExec at all. ...
    (microsoft.public.win2000.networking)
  • Impersonation issue with PsExec ?
    ... executing commands remotely on some servers, but the problem is, PsExec has ... to get access to do just anything on servers with the Admin$ share on. ... but this disables using PsExec at all. ...
    (microsoft.public.windows.server.security)
  • Impersonation issue with PsExec ?
    ... executing commands remotely on some servers, but the problem is, PsExec has ... to get access to do just anything on servers with the Admin$ share on. ... but this disables using PsExec at all. ...
    (microsoft.public.win2000.general)