Donate Us : paypal.me/MicrosoftLab

Modify the location of the log file in Windows Server 2012 R2

1. Prepare

- DC11 : OS Windows Server 2012 R2

2. Step by step : Modify the location of the log file using gpedit.msc

- DC11 : Modify the location of the log file to C:Log

+ Default location : Click File Explorer - This PC - C: drive - Windows - System32 - winevt - Logs

+ Click This PC - C: drive - Create a new folder named Log

+ Start - gpedit.msc - Computer Configuration - Administrative Templates - Windows Components

- Event Log Service :

+ Application - Control the location of the log file : Enable, Log File Path : C:LogApplication.evtx

+ Security - Control the location of the log file : Enable, Log File Path : C:LogSecurity.evtx

+ Setup - Control the location of the log file : Enable, Log File Path : C:LogSetup.evtx

+ System - Control the location of the log file : Enable, Log File Path : C:LogSystem.evtx

+ Start - cmd - gpupdate /force - Restart

+ Check Log at C:Log :

+ Click File Explorer - This PC - C: drive - Log

source
windows server