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 - Impersonating user via vbscript?

Reply
 
Old 09-18-2008   #1 (permalink)
Joe C.


 
 

Impersonating user via vbscript?

thank you for reading.

is it even possible to impersonate a user on the domain (as you can
in .net) using vbscript?

the aim is to retrieve the environment variables of a given user on
the domain remotely (within the confines of the same network, of
course).

i've already looked up a number of resources but have come short of
finding a solution.

any help would be greatly appreciated.

- Joe

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


 
 

Re: Impersonating user via vbscript?


"Joe C." <jsk.choi@xxxxxx> wrote in message
news:2b9f66c8-3ff5-44ac-aeae-21b3f5ffd01f@xxxxxx
Quote:

> thank you for reading.
>
> is it even possible to impersonate a user on the domain (as you can
> in .net) using vbscript?
I have no knowledge of how this can be done in .net, but vbscript has no
such features built-in. One can use the credentials of another account in a
number of ways and contexts, including: the RUNAS command; creating a task
to run under different credentials; mapping a share under different
credentials; etc. There are third party tools that do similar things, and
likely other o/s functionality I have just forgotten about. But it depends
somewhat on what it is that you want to do...
Quote:

> the aim is to retrieve the environment variables of a given user on
> the domain remotely (within the confines of the same network, of
> course).
Environment variables belong to processes or logon instances. It is
relatively easy to access another user's files on a server, for example, if
you have his account name and password. But to extract internal information
from an active process is more difficult to the point that I do not know how
it could be done.
Quote:

> i've already looked up a number of resources but have come short of
> finding a solution.
>
> any help would be greatly appreciated.
Maybe someone else...?

/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Help with VBscript to pull User information VB Script
VBScript for retrieving user account info. from a domain controller VB Script
Access denied while impersonating PowerShell
Adding a user through vbscript Vista General


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