Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Access to the specified device, path, or file is denied

Reply
 
Old 11-18-2008   #1 (permalink)
sLater


 
 

Access to the specified device, path, or file is denied

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

My System SpecsSystem Spec
Old 11-18-2008   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: Access to the specified device, path, or file is denied


"sLater" <slatez@xxxxxx> wrote in message
news:3a7a2827-4e30-4140-965a-a2df105753c5@xxxxxx
Quote:

> 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.


My System SpecsSystem Spec
Old 11-18-2008   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: Access to the specified device, path, or file is denied

Dave Kennedy wrote:
Quote:

> 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
Some anti-virus software prevents users from running *.vbs programs, unless
you configure to allow it.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Windows cannot access the specified device, path, or file Vista General
WINDOWS CANNOT ACCESS THE SPECIFIED DEVICE, PATH, OR FILE. Vista account administration
Windows cannot access specified device,path,or file Vista General
Windows cannot access the specified device, path or file. Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46