scrrun.dll Error in Windows 10 and 11: Microsoft Scripting Runtime

A trusted legacy script may fail at its first call to a Scripting Runtime object such as FileSystemObject.
The Windows file inventory identifies scrrun.dll as Microsoft ® Script Runtime. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Check the exact runtime message and host architecture. Verify that a minimal read-only file check in the approved host reproduces the error.
Repair the affected feature
Repair the approved application or Windows component and use a current vendor-supported script host. Preserve normal execution policies.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Repeat a harmless file test through the original workflow and confirm it reads the intended test path.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.