IT 專業人員的技術資源 > 論壇首頁 > Directory Services > Can't clear security log on DC
發問發問
 

已答覆Can't clear security log on DC

  • 2009年11月27日 上午 07:59ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    My account is member of Domain Admins, and Enterprise Admins but can't clear security log. How can i clear security log on my DCs. please advise
    Thank you.
    Thana

解答

  • 2009年12月16日 上午 03:24Joson ZhouMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    Hi,

     

    A possible cause is that custom security permission is defined for the event log. Please open Registry Editor and check if there is a registry entry called CustomSD existing in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security. If so, please backup the registry key, remove the CustomSD entry and restart the computer to check the result.

     

    If that is not the case, please run the command "wevtutil gl security" and let us know the output. It is really useful for us to check the security settings.

     

    Thanks.


    This posting is provided "AS IS" with no warranties, and confers no rights.

所有回覆

  • 2009年11月27日 下午 12:11Marcin PolichtMVP使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Thana,
    What's the OS level? If you are running Windows Server 2008/2008R2-based DC, make sure that you elevate the privileges to avoid UAC impact...

    hth
    Marcin
    • 已提議為解答AAKIB 2009年11月30日 上午 05:15
    • 已取消提議為解答ThanaPha 2009年12月1日 上午 05:30
    •  
  • 2009年11月27日 下午 10:23Mark Morowczynski 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Has there been any additional GPO's being applied to the DCs? Can you clear it on any DC or this just the only one you can't clear it on? 

    Mark Morowczynski|MCT| MCSE 2003:Messaging, Security|MCITP:ES, SA,EA|MCTS:Windows Mobile Admin|Security+|http://almostdailytech.com
  • 2009年11月30日 下午 02:32ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi Marcin,

    Thanks for your attention.
    My DC is Windows Server 2008, STD and domain functional level is Windows Server 2008 too. I has been elevated the privileges.
    Thana
  • 2009年11月30日 下午 03:51ls01c 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    did any error message being prompted or showed when u tried to clear the log?
    can you please check the NTFS permission of %systemroot%\system32\winevt
    C:\Windows\system32\winevt NT SERVICE\EventLog:(OI)(CI)(RX,W,DC)
                               NT AUTHORITY\SYSTEM:(OI)(CI)(F)
                               BUILTIN\Administrators:(OI)(CI)(F)
                               NT AUTHORITY\Authenticated Users:(CI)(R)
    are they the same as above?
    hope that helps...
  • 2009年12月1日 上午 02:05ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi Mark,

    I can't clear it on both DC.
    Thana
  • 2009年12月1日 上午 02:06Mark Morowczynski 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Can you check the GPO's that are applied to the DCs? I know there is a policy on who can be allowed to clear the security event logs. This may have been modified in some way.

    Mark Morowczynski|MCT| MCSE 2003:Messaging, Security|MCITP:ES, SA,EA|MCTS:Windows Mobile Admin|Security+|http://almostdailytech.com
  • 2009年12月1日 上午 06:51ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi Mark,

    I has been checked the GPO and no policy setting about security log.

    Thank in advanced.
    Thana
  • 2009年12月2日 上午 02:00Joson ZhouMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    did any error message being prompted or showed when u tried to clear the log?
    can you please check the NTFS permission of %systemroot%\system32\winevt
    C:\Windows\system32\winevt NT SERVICE\EventLog:(OI)(CI)(RX,W,DC)
                               NT AUTHORITY\SYSTEM:(OI)(CI)(F)
                               BUILTIN\Administrators:(OI)(CI)(F)
                               NT AUTHORITY\Authenticated Users:(CI)(R)
    are they the same as above?
    hope that helps...

    Hi,

    Could you please confirm the information mentioned by ls01c?

    Please also run "wevtutil gl security" on the DC and post the output here for research.

    In addition, I would like to confirm if you can clear other logs (such as Application, System, etc.) on the DC.

    Thanks.
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 2009年12月2日 上午 07:11ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Hi,

    This is the result,

    C:\Windows\System32\winevt NT SERVICE\EventLog:(OI)(CI)(RX,W,DC)

                               NT AUTHORITY\SYSTEM:(OI)(CI)(F)

                               BUILTIN\Administrators:(OI)(CI)(F)

                               NT AUTHORITY\Authenticated Users:(CI)(R)

     

    C:\Windows\System32\winevt\Logs NT SERVICE\EventLog:(OI)(CI)(F)

                                    NT AUTHORITY\SYSTEM:(OI)(CI)(F)

                                    BUILTIN\Administrators:(OI)(CI)(F)

                                    NT AUTHORITY\Authenticated Users:(CI)(R)

     

    C:\Windows\System32\winevt\TraceFormat NT SERVICE\EventLog:(I)(OI)(CI)(RX,W,DC)

                                           NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)

                                           BUILTIN\Administrators:(I)(OI)(CI)(F)

                                           NT AUTHORITY\Authenticated Users:(I)(CI)(R)

    And, I can't to clear any log file (Application, System)

    Thank you.


    Thana
  • 2009年12月2日 下午 01:12ls01c 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    hi, can you try this?
    open an elevated command prompt
    run wevtutil cl Security /bu:C:\security.evtx
    this command will clear the security log and backup it into c:\ drive with security.evtx
    please let us know the error message if it failed.

    or you can try to boot into safe mode and try to clear the security log again

    btw, have you apply SP2?
    if not, please upgrade to SP2 and check again

  • 2009年12月4日 上午 02:30ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi all,

    My DC had SP2 installed.
    Now, I can using "wevtutil cl Security /bu:C:\security.evtx" to clear log file.
    How can I use the GUI to clear log file instead cmd wevtutil.

    Thank in advanced ...

    Thana
  • 2009年12月4日 上午 05:40ls01c 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    can you try to disable UAC and try with the GUI?
  • 2009年12月8日 上午 08:35David Shen - MSFTMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi all,

    My DC had SP2 installed.
    Now, I can using "wevtutil cl Security /bu:C:\security.evtx" to clear log file.
    How can I use the GUI to clear log file instead cmd wevtutil.

    Thank in advanced ...

    Thana

    Hi ThanaPha,

     

    To clear Security log in GUI mode, you may try to do it in Event Viewer on Windows Server 2008.

     

    Steps:

     

    1. Start -> Run -> Eventvwr

    2. Navigate to Windows Logs\Security

    3. Right-click on it and select "Clear log…"

    4. Click Clear to proceed.

     

    Hope it helps.


    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 2009年12月11日 上午 06:11ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi David,

    The problem is I can't clear security log with GUI even I try elevated to by pass UAC on WS2K8. But I can clear with wevutil command.
  • 2009年12月14日 上午 03:48Joson ZhouMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    Please run "wevtutil gl security" on the DC and let us know the output of the command.

    In addition, please confirm the following:

    1. Can you clear the security log via GUI on other computers in this domain?
    2. What error do you encounter when you try to clear the security log on the DC? Could you please capture a screenshot for us to better understand the issue?

    Thanks.
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 2009年12月16日 上午 12:49ThanaPha 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    For Q1: Yes I can.
    For Q2: When I did clear the log they shown the following message "Event Viewer could not clear the log. The following error occured: Access is denied"

    Thanks.
    Thana
  • 2009年12月16日 上午 03:24Joson ZhouMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    Hi,

     

    A possible cause is that custom security permission is defined for the event log. Please open Registry Editor and check if there is a registry entry called CustomSD existing in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security. If so, please backup the registry key, remove the CustomSD entry and restart the computer to check the result.

     

    If that is not the case, please run the command "wevtutil gl security" and let us know the output. It is really useful for us to check the security settings.

     

    Thanks.


    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 2009年12月21日 上午 01:50Joson ZhouMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    How's everything going? We've not heard back from you in a few days and wanted to check the current status of the issue. If you need any further assistance, please do not hesitate to respond back.


    This posting is provided "AS IS" with no warranties, and confers no rights.