Re: I'm new to scripting a I working on a project that I need some help with.

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 03/07/05


Date: Mon, 07 Mar 2005 20:09:34 +0100

Errol Straker Jr wrote:

> I am working on project were I need to install a new version of Oracle's
> jinitaitor on every computer in the company. I belive I have the computers
> on the local network taken care of, I can run a batch file that can do a run
> as command to load the software. The problem comes in with the remote
> laptops, only a few of the service techs have admin rights on their
> computers. I figure I can ship them a cd with the software on it, then with
> an autorun on the cd I can launch the vbscript. After that the script will
> then create a local user account then add the account to the administrators
> group. Problem is that after it adds the account I get an error stating
> that the user account is not valid. Can anyone give me a helping hand.
Hi

In the link below is a script that creates a new user account and adds
it to the Administrators group:

http://groups.google.co.uk/groups?selm=Oor0ASl%23EHA.1400%40TK2MSFTNGP11.phx.gbl

Note that the user that runs this script needs to have admin rights
on the computer. If the user does not have it, maybe a RunAs solution
is feasable.

Different RunAs products listed here, some with encryption
option for the password:

http://groups.google.co.uk/groups?selm=3FE0B42C.773CA875%40hydro.com

Other ones not mentioned in the link above:

LSrunas/LSrunasE (the latter with password encryption)
http://www.linkselection.com/lsrunas.asp

SUperior SU
http://www.stefan-kuhr.de/supsu/main.php3

You may also want to check NeoExec ( http://www.neovalens.com ),
the main difference is that it does not require the use of a second
account, as all RunAs derivatives requires.

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: Im new to scripting a I working on a project that I need some help with.
    ... After that the script ... >> that the user account is not valid. ... > it to the Administrators group: ... If the user does not have it, maybe a RunAs solution ...
    (microsoft.public.scripting.vbscript)
  • Re: runas
    ... > will unlock and reset a user account. ... > I would like to run this script by using runas. ...
    (microsoft.public.windows.server.scripting)
  • Re: Memory consumption PowerShell
    ... The mechanism of the Identity Management system (it is Novell Identity ... And we could initiate to run a script oout side the IDN 3.0. ... is the case we want to do, if a new user account was created. ... memory. ...
    (microsoft.public.windows.server.scripting)
  • Re: Local account creation
    ... What I want to do is to use the script in a startup GPO so that there a generic local admin account on all computers for the helpdesk staff to logon to and perform troubleshooting/etc. ... Dim objNetwork, strComputer, strUser ... ' Specify name of local user account to be created. ...
    (microsoft.public.windows.server.scripting)
  • Re: simple Q for advanced: how to find out what rundll32.exe is executing?
    ... You may use the following script. ... Lists all the processes running in the ... currently logged on user account. ... Dim strUserName ...
    (microsoft.public.windowsxp.help_and_support)

Loading