JSI Tip 9150. How can I enable Remote Access logging in Windows XP?

When you enable Remote Access logging in Windows XP, the System event log will contain information about who logged onto your system using RAS, or tried to.

I have scripted XPLOGRAS.BAT to enable Remote Access logging in Windows XP.

The syntax for using XPLOGRAS.BAT is:

XPLOGRAS Level

Where Level can be one of the following:

0    No log. Routing and Remote Access does not record any events in the System Log. 
1    Log errors only. 
2    Log errors and warnings only. 
3    Log all events (errors, warnings, and information).
NOTE: I recommend using a Level of 3.

XPLOGRAS.BAT contains:

@echo off
if \{%1\}==\{\} @echo Syntax: XPLOGRAS Level&goto :EOF
if \{%1\} LSS \{0\} @echo Syntax: XPLOGRAS - Level %1 is invalid.&goto :EOF
if \{%1\} GTR \{3\} @echo Syntax: XPLOGRAS - Level %1 is invalid.&goto :EOF
@echo reg add HKLM\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters /V LoggingFlags /T REG_DWORD /F /D %1
reg add HKLM\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters /V LoggingFlags /T REG_DWORD /F /D %1



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish