Guest Daniel Clemow Posted February 7, 2008 Posted February 7, 2008 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! :-)
Guest Jon Posted February 8, 2008 Posted February 8, 2008 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...@discussions.microsoft.com> 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! :-)
Guest Daniel Clemow Posted February 10, 2008 Posted February 10, 2008 Re: Problem with Performance Monitor Alerts and "Run As" command Hi Jon, This was a great help, This lead me to the Microsoft article: http://support.microsoft.com/kb/867466 Which explained it all. Thanks a lot. Daniel. "Jon" wrote: > 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...@discussions.microsoft.com> 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! :-) > >
Recommended Posts