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

Discussion in 'Perl Misc' started by J M, Apr 11, 2005.

  1. J M

    J M Guest

    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!
     
    J M, Apr 11, 2005
    #1
    1. Advertisements

  2. "J M" <> wrote in
    news:8Pm6e.448$:

    > 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 <>
    (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
     
    A. Sinan Unur, Apr 11, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roy Osherove

    Access Denied for WMI/ADSI over ASP.Net

    Roy Osherove, Sep 9, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    7,577
    s.becker
    Sep 14, 2003
  2. Robert W. Eckert
    Replies:
    4
    Views:
    1,015
    =?Utf-8?B?Um9iIEVja2VydA==?=
    Oct 5, 2004
  3. Rich
    Replies:
    3
    Views:
    1,835
  4. LamSoft
    Replies:
    3
    Views:
    1,383
    Michael Nemtsev
    Jun 7, 2007
  5. Richard Shea

    IIS wrongly reports 'Permission Denied'

    Richard Shea, Aug 14, 2003, in forum: ASP General
    Replies:
    2
    Views:
    278
    Richard Shea
    Aug 24, 2003
  6. Aayush Dubey
    Replies:
    0
    Views:
    728
    Aayush Dubey
    Aug 13, 2004
  7. stevewa
    Replies:
    2
    Views:
    704
    stevewa
    Aug 13, 2008
  8. Replies:
    3
    Views:
    1,329
    alpha_beta_release
    Aug 24, 2006
Loading...