troubleshooting Question

permission denied Microsoft VBScript runtime error '800a0046' using WScript.Shell

Avatar of simplyamazing
simplyamazing asked on
15 Comments1 Solution36128 ViewsLast Modified:
Hi all,

I've got an issue with a script that uses the WScript.Shell.  The problem is that I keep getting a permission denied error.
I've set permissions on the folder, the file, and even "wscript.exe" file itself in the Windows\System32 folder to
"everyone" with full permissions with the same results.
I'm a bit baffled as to why I would still have a permissions issue.
The script is running on IIS 6.0 on Windows 2003 Server Enterprise - it is set up as a domain controller, so the IWAM account was given full permissions as well.


Set oShell = Server.CreateObject("WScript.Shell")
RetCode = oShell.Run("C:\test\test.bat", 1, True)


it crashes on the second line with "  permission denied Microsoft VBScript runtime  error '800a0046'  "

What other permissions are there to set up?  
I've done this in the past on IIS5 and earlier and all I had to do was set up the IUSR account with read & execute.

With full permissions set to "Everyone" this should work (unless I'm missing some other setting besides the files, the folders, the objects and the website).

Any ideas?

Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros