Hi,
We recently rebuilt our Orion Servers and also moved from Windows 2016 to Windows 2019. After the migration our SAM Templates running Python Scripts are no longer executing. Seeing the below errors in the debug logs. I have been researching on this, checked the path variables not finding anything or any clues.
I would really appreciate if anyone has seen this problem and resolution to this issue.

2021-03-01 11:35:21,811 [7] [C172728] [WU:RegularBatch(WindowsScriptProbe)(66821)] DEBUG SolarWinds.APM.Probes.Script.WindowsScriptHelper - Starting script: cscript.exe //E:python //T:1184 //nologo "\SolarWinds\Orion\temp\5a8aa4ce-763a-45ea-b2e8-4f5580721e47"
2021-03-01 11:35:21,811 [7] [C172728] [WU:RegularBatch(WindowsScriptProbe)(66821)] DEBUG SolarWinds.APM.Probes.Script.WindowsScriptHelper - Script started [PID:36224]: cscript.exe //E:python //T:1184 //nologo "\SolarWinds\Orion\temp\5a8aa4ce-763a-45ea-b2e8-4f5580721e47"
2021-03-01 11:35:43,380 [104] [C172728] [WU:RegularBatch(WindowsScriptProbe)(66821)] DEBUG SolarWinds.APM.Probes.Script.WindowsScriptHelper - Trying to get stdout
2021-03-01 11:35:43,380 [96] [C172728] [WU:RegularBatch(WindowsScriptProbe)(66821)] DEBUG SolarWinds.APM.Probes.Script.WindowsScriptHelper - Checking if script exited
2021-03-01 11:35:43,380 [96] [C172728] [WU:RegularBatch(WindowsScriptProbe)(66821)] ERROR SolarWinds.APM.Probes.WindowsScriptProbe - Script execution failed.
SolarWinds.APM.Probes.Script.WindowsScriptExecuteException: C:\SolarWinds\Orion\temp\5a8aa4ce-763a-45ea-b2e8-4f5580721e47(35, 0) Python ActiveX Scripting Engine: Traceback (most recent call last):
File "<Script Block >", line 35, in <module>
datastore = session.api_get(api)
File "D:\Python36\Lib\site-packages\storage\__init__.py", line 95, in api_get
sys.exit(-2)
SystemExit: -2
Thanks,
Arnab