473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Using WScript.Shell and the Run command, what needs to be configured?

Hello.

I've been testing the WScript.Shell object and the Run command now for a server query. The file I am running generates a file with the server querys which i later on parse in my page. But there is a problem. When running the Run command om my Windows XP machine it all seems fine. But when trying to run it on my webserver (not configured by myself) I get an error, or the command fails. It's nothing wrong with the acctuall command but ASP seems to not want to allow the Run command.

First I though it had to do with user privilegies but after giving the IUSR_X full access it didn't help. So, does anybody know a solution for this? Exactly what do I have to configure, for what user, to make this work on my webserver (win2k).

Cheers,
Martin
Jul 19 '05 #1
2 3063
It almost definitely will be user permission. What is your command trying
to accomplish? Does the IUSR_X account have permission to do whatever it
is?
I believe, and could be wrong, that depending on the configuration you may
have to permit IWAM_X as well.

Try http://www.aspfaq.com/show.asp?id=2059
"Martin Danielson" <ma****@seb.se> wrote in message
news:19**********************************@microsof t.com...
Hello.

I've been testing the WScript.Shell object and the Run command now for a server query. The file I am running generates a file with the server querys
which i later on parse in my page. But there is a problem. When running the
Run command om my Windows XP machine it all seems fine. But when trying to
run it on my webserver (not configured by myself) I get an error, or the
command fails. It's nothing wrong with the acctuall command but ASP seems to
not want to allow the Run command.
First I though it had to do with user privilegies but after giving the IUSR_X full access it didn't help. So, does anybody know a solution for
this? Exactly what do I have to configure, for what user, to make this work
on my webserver (win2k).
Cheers,
Martin

Jul 19 '05 #2
Thanks alot. I had to enable the IWAM user in order for the program to write out a file.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kyle | last post by:
To any who chose to provide an answer, or even any suggestions to this problem, I thank you greatly in advance. +200 pts. for any valid solutions. I am currently in the process of converting a...
3
by: Andrew | last post by:
I have written a jscript that is executed when the user logs into the network. Among other things, I want the script to be able to run an executable which is stored on the network. Can anyone...
2
by: bbxrider | last post by:
for win2k adv server/iis5.0 trying to run an external program from my asp routine that has multiple parameters, see following set shell = server.createobject("wscript.shell") shell.Run...
1
by: Aaron West | last post by:
Try this script to see what queries are taking over a second. To get some real output, you need a long-running query. Here's one (estimated to take over an hour): PRINT GETDATE() select...
2
by: LamSoft | last post by:
When I call the WScript.Shell and "RUN" the object... I've got nothing on the server For Example, objWscript.Run "notepad.exe", True, 1 But on the server side, there is no this process...
1
by: Sh0t2bts | last post by:
Hi, I am using the below command to restart a service on one of my web boxes, this runs fine from the command prompt and also through a *.bat file. ...
0
by: dappyl | last post by:
Hi,... I have an example shell script to run command prompt. It works fine.. the code shown below : <% Dim wshell, intReturn set wshell = server.createobject("wscript.shell") intReturn...
0
by: edurran | last post by:
Hi all, I have spent the last three days on this problem. Looked in many forums and not found the answer as yet. Hopefully ye can help. I have two functions. One works fine, the second does...
0
by: AirYT | last post by:
Done a bunch of searching on this topic and i have come up with nothing. I have a .vbs script that i wish to execute by calling an asp page. i am working on a W2K server with IIS5.0 & SP4. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.