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

From: Errol Straker Jr (errol.strakerjr_at_mrprint.com)
Date: 03/07/05


Date: Mon, 7 Mar 2005 14:15:32 -0600


"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:OYfcqm0IFHA.4060@TK2MSFTNGP14.phx.gbl...
> 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

Thanks for the help, the autoit seems to be what I want however, is there a
forum or newgroup that can help me out with coding this in vbscript?



Relevant Pages

  • Re: Using "runas.exe" with automatic password
    ... For security reasons runas does not allow you to e.g. script in a password. ... local administrators. ... > privileges without giving the user at the computer admin privileges. ...
    (microsoft.public.windows.server.networking)
  • 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: 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)
  • 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: remotely query group membership of machine via script/wmi
    ... > to make sure a particular user account is a member of the ... > administrators group on certain remote machines and I am hoping I can ... > use a script to do that. ... WScript.Echo "Could not ping the computer" ...
    (microsoft.public.windowsxp.wmi)