Home All Groups Group Topic Archive Search About

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

Author
11 Apr 2005 4:12 AM
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!

Author
11 Apr 2005 11:01 AM
A. Sinan Unur
"J M" <J*@jm.biz> wrote in
news:8Pm6e.448$zq4.169@newssvr11.news.prodigy.com:

> 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

--
A. Sinan Unur <1***@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html