How to increase the policyrequest.log file size

Create the following .mof file using a text editor such as Windows Notepad and name the file logging.mof:


#pragma namespace(\\\\.\\root\\ccm\\policy\\machine\\requestedconfig
instance of CCM_Logging_ComponentConfiguration
{
PolicyId = "1";
PolicyVersion = "1";
PolicySource = "Local";
PolicyInstanceId = "1";
PolicyRuleId = "1";
Name = "PolicyRequest";
LogEnabled = TRUE;
LogMaxSize = "Log File Size";
LogPath = "policyrequest.log";
};   

Note: Replace "Log File Size" with a number specifying the maximum size in bytes to which log files can grow. The default size is 2MB (2000000 bytes).
Use the WMI mofcomp.exe tool to compile the .mof file on the target management point or device management point.
At a command prompt, run the following command from the directory in which you saved the file, logging.mof: mofcomp logging.mof

0 comments:

Post a Comment