A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
This is fantastic, thank you!
I've set up something similar, but simplified/modernized the code by using Powershell, as shown below. Of course in a corporate environment policies for batch scripts vs. Powershell scripts may drive the decision, and of course the extra security measures provided via Powershell mean that the local computer's script execution policy needs to allow this to run. For me this is easier to read and maintain, and I simply sign the script so I know it's secure and have configured my computer to allow running signed Powershell scripts; others may simply allow running all Powershell scripts, despite the vulnerabilities that opens.
Here's the Powershell equivalent of the above batch script:
$regPath = "HKCU:\Software\Microsoft\Office\16.0\Common\KFM"
$regName = "KFMLastDismissTimestamp"
$epochMicroseconds = Get-Date (Get-Date).ToUniversalTime() -UFormat %s
$epochSeconds = [Math]::Floor($epochMicroseconds)
New-ItemProperty -Path $regPath -Name $regName -Value $epochSeconds -PropertyType DWORD -Force > $NULL