![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 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 Specs![]() |
| | #3 (permalink) |
| | Re: VBScript That Changes Its Identity "Al Dunbar" <AlanDrub@xxxxxx> wrote in message news:erFGgwY4IHA.784@xxxxxx Quote: > > "Joseph Morales" <JosephMorales@xxxxxx> wrote in 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 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 Quote: > other purposes or stolen. > application and set that applications identity to the user credentials you want to use. -- Anthony Jones - MVP ASP/ASP.NET |
My System Specs![]() |
| | #4 (permalink) |
| | 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 . . . Thanks, Joseph |
My System Specs![]() |
| | #5 (permalink) |
| | 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. Thanks, Joseph |
My System Specs![]() |
![]() |
| 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 | |||