By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,883 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,883 IT Pros & Developers. It's quick & easy.

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

AnuSumesh
P: 96
Hi All,

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

Set objWshShell = Server.CreateObject("WScript.Shell")
strToExec = "nbtstat -a " & strComputer
Set objEx = objWshShell.Exec(strToExec)

But i am getting arror on line "objWshShell.Exec".
Error is "WshShell.Exec 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
Feb 13 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.