Re: Application to be called - runas Administrator
- From: "Brian E" <dirwolf@xxxxxxxxxxxxx>
- Date: Tue, 5 Sep 2006 15:35:03 -0400
Go get cpau.exe from joeware.net first off, runas wont accept a password passed to it, you will be asked to supply it, sever limitation.
The cpau utility can also encode a batch file to be used.
"Jimmy" <j@xxx> wrote in message news:uHGo2NQ0GHA.1256@xxxxxxxxxxxxxxxxxxxxxxx
you can run the script through MS script encoder, but this is easily decoded
if someone really wants to.
you could write the script in 'C' using a bunch of "system()" calls... that
would give you an exe
"bdickert" <bdickert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EED566D8-FD93-4D23-B454-5BFD4DF1A14A@xxxxxxxxxxxxxxxx
>I don't believe you can compile a vbscript - this information was passed on
> to me - someone left that did this before - and I am picking up where he
> left
> off -
>
> "bdickert" wrote:
>
>> I need an application to be called from a compiled script that has
>> elevated
>> rights (run as). The reason it needs to be complied is to conceal the
>> domain
>> admin equivalent account that would need to run the exe. This in turn
>> would
>> be deployed in a login script and be called during user login. The
>> complied
>> program would create a flag file at the end of its execution and copy it
>> to
>> the local C drive. This flag file would be checked for presence in the
>> beginning of the compiled program to bypass if it had already been run on
>> that particular machine.
>>
>> The goal of this is to remove the application off all machines in the
>> domain, and then we will redeploy the newest version using WinInstall.
>> The
>> issue that we are having is that many old clients are not updating
>> properly.
>> I am new to VBSCRIPT and just need some direction.
>>
>> Thanks in advance.
>>
>>
>>
- Follow-Ups:
- References:
- Prev by Date: Re: move computer account
- Next by Date: Re: ERROR: Wrong number of arguments or invalid property assignment
- Previous by thread: Re: Application to be called - runas Administrator
- Next by thread: Re: Application to be called - runas Administrator
- Index(es):