Write to event log from COM component in an ASP 3 page on W2K3

Discussion in 'ASP General' started by travislspencer@gmail.com, Aug 4, 2006.

  1. Guest

    Hey All,

    I have some ASP 3 pages that instantiate a COM component. That
    component writes messages to the one of the Windows event logs.

    Things work as I expect them to on XP Pro but not on 2003 Server. I
    figured it was a security thing, so I surfed around and found that
    permissions were tightened in the server's first service pack. The fix
    I found[1] said to append an ACE[2] to the event log's CustomSD
    registry value found at

    HKLM\SYSTEM\CurrentControlSet\Services\EventLog\{LOG_NAME}\CustomSD

    I tried three different ones with a reboot after appending each one:

    1. (A;;0x3;;;AU)
    2. (A;;0x3;;;NS)
    3. (A;;0x0002;;;S-1-5-21-237510213-3056582554-1478882900-1003)

    The last uses the full SID of the IUSR account on the Windows 2003 I'm
    working on. I obtained that ID using this VBScript:

    Dim WshNetwork
    Dim strComputer, Account
    Dim objWMIService, colItems, objItem

    Set WshNetwork = WScript.CreateObject("WScript.Network")

    strComputer = "."
    Account = "IUSR_" & WshNetwork.ComputerName

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    Set colItems = objWMIService.ExecQuery("Select * from Win32_Account
    where Name = '" & Account & "'" )

    For Each objItem in colItems
    Wscript.Echo objItem.SID
    Next

    If anyone has any advice that can help me figure out how to solve this
    problem, I would really appreciate it.

    TIA!

    --

    Regards,

    Travis Spencer

    [1] http://tinyurl.com/obd49, http://tinyurl.com/f0o8, and
    http://tinyurl.com/m4eun.
    [2] http://tinyurl.com/r3j48
    , Aug 4, 2006
    #1
    1. Advertising

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. Henrik_the_boss
    Replies:
    0
    Views:
    2,624
    Henrik_the_boss
    Nov 5, 2003
  2. =?Utf-8?B?V29ob29XYWhvbw==?=

    W2K3 server permissions for an ASP.NET

    =?Utf-8?B?V29ob29XYWhvbw==?=, Oct 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    461
    =?Utf-8?B?V29ob29XYWhvbw==?=
    Oct 28, 2005
  3. Tom Wingert
    Replies:
    0
    Views:
    316
    Tom Wingert
    Jan 12, 2006
  4. Tony

    How do I enable ASP on a W2K3 box

    Tony, Aug 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    90
    Bob Lehmann
    Aug 7, 2004
  5. Replies:
    0
    Views:
    1,249
Loading...

Share This Page