Issue with Custom EXE execution on Windows Server 2016 VM, Error 31337 is observed

Rishabh Kemni

New member
Joined
Aug 11, 2024
Posts
1
Issue with Custom EXE on Windows Server 2016 VM
I am using a Windows Server 2016 VM and have mounted an external OS disk for a Windows Server 2019 (UEFI + Secure Boot enabled). I attempted to run a custom executable (EXE) that performs the following tasks:
  1. Brings the externally attached disk online.
  2. Lists the folders on the disk.
  3. Checks the disk’s health.
  4. Reads the BCD configuration.
  5. Updates the BCD configuration.
  6. Takes the disk offline.
However, when I executed this custom EXE in an elevated command prompt, the EXE crashed unexpectedly, and error code 31337 was thrown.
Additional Information:
  1. I do not have access to any VM, so I cannot check the Event Viewer logs.
  2. The custom EXE was executed remotely using WinRM with an Administrator user.
  3. The error code is received by the caller after the BCD configuration is read for the external disk.
Any insights or suggestions on how to resolve this issue would be greatly appreciated.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top