Re: Scheduled Task

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The basic trick is that you can run any command-line tool from a VBscript, by
using the Wshell-object, esp. the Run- and Exec-methods
(http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_pkoy.mspx).

On Mon, 13 Jun 2005 06:43:11 -0700, dscripter
<dscripter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>Could you please be a bit more specific? This is the first time I have
>messed with VB Script. I am a .Net Developer using C#. I could use more
>help if possible!
>
>Thanks,
>
>
>"Corni Bogaarts" wrote:
>
>> The only way I've found is by using the 'schtasks.exe' command-line tool and
>> running it from the script.
>>
>> On Fri, 10 Jun 2005 09:06:54 -0700, dscripter
>> <dscripter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> >I have a script to Schedule a task on a remote server. Is it possible to
>> >specify the user to Run the schedule task as? The default is NETWORK/SYSTEM
>> >AUTHORITY. I need to specify a domain account. This is on Windows 2003
>> >Server Standard Edition. Any help would be appreciated!
>> >
>> >Thanks,
>> >Dscripter
>>
>>

.



Relevant Pages

  • Re: Scheduled Task
    ... >I have a script to Schedule a task on a remote server. ... I need to specify a domain account. ... >Server Standard Edition. ...
    (microsoft.public.windows.server.scripting)
  • Re: Scheduled Task
    ... > running it from the script. ... >>specify the user to Run the schedule task as? ... I need to specify a domain account. ... >>Server Standard Edition. ...
    (microsoft.public.windows.server.scripting)
  • Re: Loop within (InStr) Loop problem - how do I re-read file in second loop?
    ... On your first time through first time through your ODAS Sub you 'Set' ... the first parameter 'objTextFile2' which at this point is an object and not ... > to have a problem with the script not re-reading the second file. ...
    (microsoft.public.scripting.vbscript)
  • Re: free source for bbs
    ... > did it the first time, fixed that, and I know how they did it the ... > second time because my password for the admin script was something ... But we are not laughing with you. ...
    (comp.lang.perl.misc)
  • Re: [kde-linux] Starting ssh at log-in
    ... convenient as possible without losing that security. ... First, if you use password caching anyway, it is only the first time you are ... previous post that your konsole flicks on the screen and then exits. ... script to run rather than a shell. ...
    (KDE)