"sLater" <slatez@xxxxxx> wrote in message
news:3a7a2827-4e30-4140-965a-a2df105753c5@xxxxxx
> Hi there.
>
> I'm running into a strange problem here. I'm running Windows 2000
> server, and I get the following error when trying to run ANY .vbs
> script.
>
> "Access to the specified device, path, or file is denied"
>
> If i just login as a simple user and create an empty file called
> "test.vbs", it will give me that error. If I give myself domain
> admin, I can run it without error.
>
> I initially thought it was other problems, since I first noticed this
> when my login script wasn't running. I thought the share permissions
> might be messed up, or there was an error in the actual script. But
> now I've learned I can't even create a file and run it on my own
> server as a regular user.
>
> Thanks for any help
>
> Dave Kennedy You need to approach this issue by starting with something very, very
simple, then build it up in small steps until it fails, perhaps like so:
- Log on as a "simple user".
- Open a Command Prompt.
- Create the file c:\test.vbs with this line inside:
wscript.echo "Hello world"
- Type this command:
cscript //nologo c:\test.vbs
If it works then move the script to the folder where your other scripts
reside and run it again. As a third test, invoke it the way you normally do
instead of using the command I suggested above.
If it does not work then create the file c:\test.bat with this line inside:
echo Hello world
Now execute it with this command: c:\test.bat. Does it work?
By the way - why do you allow "simple users" to log on to your server? This
is usually a strict no-no.