If you are using the Windows2000 Task Scheduler you can specify the account
that will run task.  Giving the appropriate account and password for the
scheduled task provides the same result as piping a password into the RunAs
command.

_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT_VT

Todd Pukanecz  MCSE, GCWN
Virginia Tech, AHNR IT
Blacksburg, Virginia
---
The object and practice of liberty lies in 
the limitation of governmental power. 
- Douglass MacArthur 



> -----Original Message-----
> From: Mike Staines [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 6:09 PM
> To: NT 2000 Discussions
> Subject: RE: Runas
> 
> 
> The point of my question was to figure a way to automate the 
> running of
> runas. I want to be able to run a runas command in a script, 
> and set the
> script on a timer. (AT command)
> 
> I do appreciate the help you gave.
> 
> Thank you.
> 
> Mike Staines
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pham, Tuan
> Sent: Tuesday, January 29, 2002 3:39 PM
> To: NT 2000 Discussions
> Subject: RE: Runas
> 
> 
> *To start an instance of the Windows 2000 command prompt as 
> an administrator
> on the local computer, type:
> 
> -runas /user:localmachinename\administrator cmd When 
> prompted, type the
> administrator password.
> 
> *To start an instance of the Computer Management snap-in 
> using a domain
> administrator account called companydomain\domainadmin, type:
> 
> -runas /user:companydomain\domainadmin "mmc 
> %windir%\system32\compmgmt.msc"
> When prompted, type the account password.
> 
> *To start an instance of Notepad using a domain administrator 
> account called
> user in a domain called domain.microsoft.com, type:
> 
> -runas /user:[EMAIL PROTECTED] "notepad my_file.txt" 
> When prompted,
> type the account password.
> 
> *To start an instance of a command prompt window, saved MMC 
> console, Control
> Panel item, or program that will administer a server in 
> another forest,
> type:
> 
> -runas /netonly /user:domain\username "command"  
> domain\username must be a
> user with sufficient permissions to administer the server. 
> When prompted,
> type the account password.
> 
> Good luck!
> 
> TP
> 
> -----Original Message-----
> From: Mike Staines [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 2:21 PM
> To: NT 2000 Discussions
> Subject: Runas
> 
> 
> 
> 
> I want to use runas in a batch script. How do I input the 
> password into the
> batch script so that it is entered into the runas command correctly?
> 
> 
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> 
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to