Emulate PSEXEC/RunAS with the CreateScript method?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'd like to execute a VB script on a remote system with credentials
different from the one launching the script- currently, I've been
using SysInternal's PSEXEC to do this, but, I would rather not call an
external exe, I'd like to keep everythng within VBS. The CreateScript
method looks like what I want, but I can't figure out how impersonate
an account with this.

Can anyone tell me how or point me in the right direction on how to do
this?

Thanks!
.



Relevant Pages

  • Re: Access Denied on a ManagementEventWatcher to Remote System
    ... I forgot a very importent thing:.Net 1.1 SP1 contains a bug, ... If I try to run the application on my PC with the managementpath pointed to the remote device and specify credentials, ... The app is simple and just monitors/queries the System Event log on a remote system. ... Public Sub Start ...
    (microsoft.public.win32.programmer.wmi)
  • Re: netlogon service and LogonUser() API function
    ... It doesn't have the annoying "conflicting credentials" problem, ... SQL Server in Windows authentication mode etc. ... connect to the remote registry service, but runas /netonly still works. ... connecting to the IPC$ share on a remote system using a specific set ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Rolling out patches
    ... FYI to all considering implementing the psexec method - Be aware that psexec ... account on the remote system, but will not have access to network ... PSINFO replicates a lot of the functionality of REG and FILEVER, ...
    (Focus-Microsoft)
  • Re: netlogon service and LogonUser() API function
    ... connecting to the IPC$ share on a remote system using a specific set of credentials is an excellent way of accessing a remote system with admin credentials. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Windows 2003 FSRM command options dont work
    ... I have used PsExec for some things in the past. ... I suppose you could use instant messaging, ... interacts with the desktop on the remote system". ...
    (microsoft.public.windows.server.general)