IIS calling cscript.exe from cgi permission denied - WMI access

J

J M

I have a perl cgi script on Windows 2003 server with IIS 6.0 that is calling
prnport.vbs, prnmgr.vbs (supplied by microsoft that creates printer port and
print queue on server) however IIS returns "cscript ... permission denied"
error even after adding IUSR_<SERVER> user id to administrator list. It
appears that error code indicates that WMI root object is not accessable by
IUSR account. Any suggestions?

I am simply calling vbs script using back tick in perl `<PATH>:\\cscript
<PATH>:\\prnport.vbs options`

Thanks!
 
A

A. Sinan Unur

I have a perl cgi script on Windows 2003 server with IIS 6.0 that is
calling prnport.vbs, prnmgr.vbs (supplied by microsoft that creates
printer port and print queue on server) however IIS returns "cscript
... permission denied" error even after adding IUSR_<SERVER> user id
to administrator list. It appears that error code indicates that WMI
root object is not accessable by IUSR account. Any suggestions?

I am simply calling vbs script using back tick in perl
`<PATH>:\\cscript <PATH>:\\prnport.vbs options`

This is a web server configuration issue. Please ask in a newsgroup
appropriate to the platform you are using.

As an aside, please don't give administrator privilidge to the account
your web server is running under. For your own good.

Sinan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top