Re: calling vbs scripts from a scheduled task doesn't work all the time

From: Michael Harris \(MVP\) ("Michael)
Date: 05/06/04


Date: Thu, 6 May 2004 16:49:13 -0700


> Ok. So are there any restrictions on calling other scripts or doing
> things (like sending email) that SYSTEM and WMI, or is there a link
> to an MSDN article about this I can have a look at?

The local SYSTEM account can do things that require access only to resources
on the local system that do not depend on a specific user context.
Generally speaking, processes running under SYSTEM cannot access resources
on remote machines.

Within those bounds, you shouldn't have any problems.

A couple of examples of things that are unlikely to work:

- sending email via Outlook (or MAPI based CDO) automation (reason: user
mail profile required)

- accessing files via UNC paths (reason: any UNC reference is treated as
remote, even if it references a share exposed by the machine that is running
the process)

To determine why a specific script fails to work as expected as a
Win32_ScheduledJob (AT based) job, one would have to examine the source code
of the specific script with the SYSTEM account's security context and
network reach in mind...

-- 
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US


Relevant Pages

  • Re: need help with this send mail script
    ... > You can only have one value for the sender (eg the sending email address ... > need to use a configuration object to specify which server you want to ... The purpose of this script is to check if the Exchange ...
    (microsoft.public.exchange2000.development)
  • Re: email sent????
    ... but couldn't you create a field (EmailSent) and then as last step ... of the script that actualy sent the mail use a setfield to put a x in this ... I have no experience with sending email through filemaker, ... I have implemented this but the problem was that once filemaker created the ...
    (comp.databases.filemaker)
  • RE: Sending Email from script
    ... Subject: Sending Email from script ... I re-configured Exim and posted the settings I selected. ...
    (Debian-User)
  • Re: email sent????
    ... email layout and using global fields as the email text and subject to copy ... into a send mail script with the no dialog box ticked ... I have no experience with sending email through filemaker, ...
    (comp.databases.filemaker)
  • Re: Launch VBS from VBA
    ... If you need to wait for the script to finish before continuing with your VBA ... I can't test if they work with UNC paths ... I'm trying to launch a VBS from excel using the code below: ...
    (microsoft.public.excel.programming)

Loading