Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBScript That Changes Its Identity

Reply
 
Old 07-08-2008   #1 (permalink)
Joseph Morales


 
 

VBScript That Changes Its Identity

Can a VBScript change its identity after it has started, so that it switches
to running under a different username? This is for the purpose of getting
access to a different set of privileges.

Thanks,
--
Joseph

My System SpecsSystem Spec
Old 07-09-2008   #2 (permalink)
Al Dunbar


 
 

Re: VBScript That Changes Its Identity


"Joseph Morales" <JosephMorales@xxxxxx> wrote in message
news:00C4004D-CF17-4D17-9799-50B200F2F703@xxxxxx
Quote:

> Can a VBScript change its identity after it has started, so that it
> switches
> to running under a different username? This is for the purpose of getting
> access to a different set of privileges.
>
> Thanks,
> --
> Joseph
IMHO, it is not possible to change the credentials of an existing process.
At best, a script (vbscript, batch, etc) can use runas to start a new
process under alternate credentials. There are also third party tools that
allow the password to be embedded so you need not enter it manually, as
required by runas. One such is CPAU from Joeware.net. If you use anything
that keeps you from having to enter the password manually, make sure you
consider the possibility that the stored password could somehow be used for
other purposes or stolen.

/Al


My System SpecsSystem Spec
Old 07-09-2008   #3 (permalink)
Anthony Jones


 
 

Re: VBScript That Changes Its Identity



"Al Dunbar" <AlanDrub@xxxxxx> wrote in message
news:erFGgwY4IHA.784@xxxxxx
Quote:

>
> "Joseph Morales" <JosephMorales@xxxxxx> wrote in
message
Quote:

> news:00C4004D-CF17-4D17-9799-50B200F2F703@xxxxxx
Quote:

> > Can a VBScript change its identity after it has started, so that it
> > switches
> > to running under a different username? This is for the purpose of
getting
Quote:
Quote:

> > access to a different set of privileges.
> >
> > Thanks,
> > --
> > Joseph
>
> IMHO, it is not possible to change the credentials of an existing process.
> At best, a script (vbscript, batch, etc) can use runas to start a new
> process under alternate credentials. There are also third party tools that
> allow the password to be embedded so you need not enter it manually, as
> required by runas. One such is CPAU from Joeware.net. If you use anything
> that keeps you from having to enter the password manually, make sure you
> consider the possibility that the stored password could somehow be used
for
Quote:

> other purposes or stolen.
>
Another alternative is to install scripted components into a COM+
application and set that applications identity to the user credentials you
want to use.

--
Anthony Jones - MVP ASP/ASP.NET


My System SpecsSystem Spec
Old 07-17-2008   #4 (permalink)
Joseph Morales


 
 

Re: VBScript That Changes Its Identity

"Al Dunbar" <AlanDrub@xxxxxx> wrote in message
news:erFGgwY4IHA.784@xxxxxx
Quote:

> At best, a script (vbscript, batch, etc) can use runas to start a new
> process under alternate credentials . . .
That's probably what I need to do. I'll experiment with runas.

Thanks, Joseph


My System SpecsSystem Spec
Old 07-17-2008   #5 (permalink)
Joseph Morales


 
 

Re: VBScript That Changes Its Identity

"Anthony Jones" <Ant@xxxxxx> wrote in message
news:OsF2FOg4IHA.4988@xxxxxx
Quote:

> Another alternative is to install scripted components into a COM+
> application and set that applications identity to the user credentials you
> want to use.
That sounds tricky. I'll keep it in mind as an alternate approach.

Thanks, Joseph


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Identity Vista music pictures video
How to do No hang up VBScript (nohup for VBScript) VB Script
Where did my 2nd email identity go? Vista mail
switch identity Vista mail
Same Identity, 2 different users Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46