Re: Problem with Performance Monitor Alerts and "Run As" command



If it runs as an admin then there must be a permissions problem.
First check that the account has read and execute permissions to the
script that you are running, and also that BATCH has permissions to
the script interpreter

e.g. If you are running cmd /c .... or cscript .... then find cmd.exe
or cscript.exe and give BATCH read and execute permissions.

Hope this helps

Jon


On Feb 7, 3:55 am, Daniel Clemow <Daniel
Cle...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have encountered this problem on two servers, one Win2003 sp1, and the
other SP2. I'm trying to create an alert for a low disk space condition, and
have a script all configured, and an account for the "Run As" that is a
member of "Performance Log Users" and "Performance Monitor Users", has log on
locally permission, and can actually run the script without problems when
logged on.

When creating the Performance Alert and this user is put into Administrators
group it runs ok, but that's not ideal.
When taken out, the error below is created in the Application Event Log:
Source: SysmonLog, Event ID: 2038
Unable to execute command '' for the Low Disk Space alert.   The alert will
continue as scheduled. The error code returned is in the data.

I have attempted to dumb down the script, in case there's a problem with
something in it, so even just :  time /t > c:\temp\test.txt doesn't run.

Also - another observation is - the program does not even attempt to run at
all of no command line arguments are selected - another bug?

Can anyone else reproduce this problem, or even better know how to resolve?  
I'm hoping it's something I haven't got right rather than having to wait for
a bug fix.

I would LOVE to get this resolved!   :-)

.



Relevant Pages

  • Re: Problem with Performance Monitor Alerts and "Run As" command
    ... First check that the account has read and execute permissions to the ... script that you are running, and also that BATCH has permissions to ... When creating the Performance Alert and this user is put into Administrators ...
    (microsoft.public.windows.server.general)
  • Re: Need for default umask
    ... permissions would presumably be expected to do something like: ... instance, if you're saving a script from a text editor, you'd like it to ... but it's unlikely that you would need to turn ON execute permissions as ...
    (comp.unix.internals)
  • Re: cant get access to disk share when connecting from a remote s
    ... The systems are DUTs. ... for each of the drives within the system. ... Everything in the scripts work except the file permissions below the shares ... the shares on the DUTs manually, after they run my rename script, but I would ...
    (microsoft.public.windows.server.scripting)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... The CREATOR OWNER is likely on windows to be one of the admin accounts ...
    (microsoft.public.windowsmedia)