Start runas with user and password in scripts

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Schmuecking (PeterSchmuecking_at_discussions.microsoft.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 09:59:40 -0700

Hello,

my preferred method to start runas in scripts is the pipe utility sanur
from http://www.commandline.co.uk, it can take a file as input.

WBR Peter



Relevant Pages

  • Re: Using RegWrite fails in Vista with RunAs Command
    ... The only way I've been able to get scripts to modify the registry on Vista ... the "Run as administrator" context menu item than using the runas command ... runas but I've tried all combinations of /profile and /env. ...
    (microsoft.public.scripting.wsh)
  • Re: run application as another user DomainUserName
    ... I don't believe there are any 'simple' scripts to allow you to do this without the use of external components. ... PSEXEC is similar than RunAs but unlike RunAs you can pass a password as a paramater too. ... I can start the app but not sure how to go about setting the script to start ...
    (microsoft.public.scripting.vbscript)
  • Re: Administrator Pw
    ... Runas always prompts for password. ... attacks via scripts. ... There are 3rd party apps that take a password as a parameter and do ... > guest account and log on as an administrator. ...
    (microsoft.public.windowsxp.security_admin)