"WshShell.Exec error '80070005' " Access is denied.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnuSumesh
    New Member
    • Aug 2007
    • 96

    "WshShell.Exec error '80070005' " Access is denied.

    Hi All,

    I want to get MAC address of client machine. I am using folllowing code in asp using vbscript:

    Set objWshShell = Server.CreateOb ject("WScript.S hell")
    strToExec = "nbtstat -a " & strComputer
    Set objEx = objWshShell.Exe c(strToExec)

    But i am getting arror on line "objWshShell.Ex ec".
    Error is "WshShell.E xec error '80070005' " Access is denied.

    But i have checked permissions for netstat.exe to execute.
    Every person has permission to read & execute the file.

    What can be wrong?

    OR
    Is there any other way to get MAC address of Client machine in ASP page.

    Thanks

    Anu
Working...