I ran into the same problem, but was unable to access the Group Policy or Registry, due to restricted privileges.
However, I found another solution which uses Windows Script Host to run a piece of JScript which will toggle Scroll Lock every five minutes, for one hour.
Here's the script. Just save it with a .js
extension, and run it with "Microsoft Windows Based Script Host".
var WshShell = WScript.CreateObject("WScript.Shell");
for (var i = 0; i < 12; i++) { // Loop 12 times
WshShell.SendKeys('{SCROLLLOCK}');
WshShell.SendKeys('{SCROLLLOCK}'); // Toggle Scroll Lock
WScript.Sleep(300000); // Wait 5 minutes
}
If you want to change the key being pressed, check out this link, and swap out the SendKeys
parameter for another character.
The same solution, in PowerShell:
[void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
$allowCloseAfter = (Get-Date).ToUniversalTime().AddHours(24)
while ($allowCloseAfter -gt (Get-Date).ToUniversalTime()) {
[System.Windows.Forms.SendKeys]::SendWait("{SCROLLLOCK}")
[System.Windows.Forms.SendKeys]::SendWait("{SCROLLLOCK}")
Write-Host '.' -NoNewline
Start-Sleep -Seconds 300
}