Windows Vista Forums

Access to the specified device, path, or file is denied
  1. #1


    sLater Guest

    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

  2. #2


    Pegasus \(MVP\) Guest

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


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



      My System SpecsSystem Spec

  3. #3


    Richard Mueller [MVP] Guest

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

    Dave Kennedy wrote:

    > 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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows cannot access the specified device, path, or file. Andrew1337 General Discussion 6 15 Jun 2010
Unexpected "Access to specifies device, path or file denied" Andy3142 Virtual PC 1 31 Mar 2010
Windows cannot access the specified device,path or file. You may not have the appropiate permission to access the item bigmike12 Vista General 4 17 Nov 2009
Re: Windows cannot access the specified device path or file. tinap21 Server General 2 06 Oct 2009
Windows cannot access the specified device,path or file..... gdubu WinFS 5 22 Nov 2007