How can I disable Office Automatic Update log files?

Cornan The Iowan 1 Reputation point
2021-11-29T16:45:10.923+00:00

I have found a few articles on turning the logging ON for Office Automatic updates, but my friend's system doesn't have any of the Registry keys mentioned... so I can't delete them to disable logging.

For example, this article:
https://social.technet.microsoft.com/Forums/en-US/f22ab205-3dda-4d94-ab8c-3e04b82a12ab/log-files-for-updates

Refers to this key (but without mentiont the Windows version):
reg add HKLM\SOFTWARE\Microsoft\ClickToRun\Override /v LogLevel /t REG_DWORD /d 3 /f

The (numerous) files I am finding are in this form: MachineName-Date-time.log. I've attached one of the files.

I want to DISABLE CREATION of these log files.

MS Office is working fine - I want to disable the log files because there is "nothing wrong" with MS Office itself.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. abbodi86 4,036 Reputation points
    2021-11-30T05:09:13.737+00:00

    https://learn.microsoft.com/en-us/office/troubleshoot/diagnostic-logs/how-to-enable-office-365-proplus-uls-logging
    I guess you can try adding all those with zero value

    reg add HKCU\Software\Microsoft\Office\16.0\Common\Logging /v EnableLogging /t REG_DWORD /d 0 /f  
    reg add HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v LogLevel /t REG_DWORD /d 0 /f  
    reg add HKLM\SOFTWARE\Microsoft\ClickToRun\OverRide /v PipelineLogging /t REG_DWORD /d 0 /f  
    

    stop the Microsoft Office Click-to-Run Service
    delete the log files
    then restart the service and see if logs are created

    0 comments No comments

  2. Emily Hua-MSFT 27,796 Reputation points
    2021-12-06T08:21:31.63+00:00

    Hi @Cornan The Iowan

    Based on my tests, the update log in %temp% is enabled by default.
    Currently, I do not find a suitable way to disable it. If possible, I suggest you clean it regularly to release the space.
    Thanks for your understanding.

    Besdeis, the registry key you find "reg add HKLM\SOFTWARE\Microsoft\ClickToRun\Override /v LogLevel /t REG_DWORD /d 3 /f" is for ULS log.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.