>>I want to be able to run a runas command >>in a script, and set the script on a timer. (AT command)
The Task Scheduler can run each job as a particular account, so you don't need the RunAS command. ============================================================== ASB - http://www.ultratech-llc.com/KB/?File=~MoreInfo.TXT ============================================================== "Justice cannot be for one side alone, but must be for both." -- Eleanor Roosevelt. >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Mike Staines >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]
