![]() Set colFolder = objFSO.GetFolder(sLogFolder)įor Each colSubfolder in colFolder.SubFolders ![]() Set objFSO = CreateObject("Scripting.FileSystemObject") Copying the script below into notepad and save it as a Log_File_Deletion.vbs. It is recommended that you schedule the new log file creation on a daily basis by selecting "daily" in the "schedule" option.ĥ. Select "Use local time for file naming and rollover" to specify that log file naming and time for log file rollover is using the correct local server time.Ħ. Click Apply in the Actions pane to save your changes.ġ. In Features View, double-click "Logging".Ĥ. Under Logging pane, in the Log File Rollover section, select the appropriate condition to create a new log file. Open IIS Manager and select the required site.ģ. Please follow the instructions below to configure log rotation in IIS.Ģ. ![]() Steps to enable log rotation & delete old log files in IIS ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |