Microsoft KB Archive/277675

= How to collect Local Security Authority API logging for troubleshooting =

Article ID: 277675

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q277675



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
If you have problems after you use the Local Security Authority (LSA) API to apply changes to the Default Domain group policy setting, the Default Domain Controller group policy setting, or the local security policy on non-domain controller computers, you can enable debug logging to help determine what problems the API is having. Logging will start after the system is restarted.



MORE INFORMATION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Use Registry Editor (Regedt32.exe) to view the following registry key:

Add the following registry value to the preceding registry key:

Value Name: PolicyDebugLevel

Data Type: REG_DWORD

Radix: Decimal

Value: 2 (0 - no logging, 1 - errors only, 2 - verbose)

Note: The log file is generated in the %SystemRoot%\Security\Logs\Scepol.log file when LSA APIs are called. Scepol.log defaults to 1MB in size. To increase the maximum size, add the following registry value to the preceding registry key:

Value Name: PolicyLogSize

Data Type: REG_DWORD

Radix: Decimal

Value: 1024 (in Kb, the minimum value is 1024 (1MB); if it is less than this, the value is ignored)

Keywords: kbenv kbhowto KB277675

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.