I have a problem running a virtual machine as a scheduled task. It works when I start the machine from the gui, and it works when i start the machine using vboxheadless from an interactive command prompt, but it fails when run from the scheduler. I think it is a hardening error. The log file says (full file attached):
09:41:31.366929 00:00:03.225213 00000000000001d8 EMT-0 supR3HardenedErrorV: supR3HardenedScreenImage/LdrLoadDll: rc=VERR_LDRVI_NOT_SIGNED fImage=1 fProtect=0x0 fAccess=0x0 \Device\HarddiskVolume2\Windows\System32\NetSetupShim.dll: Not signed. 09:41:31.367906 00:00:03.225569 00000000000001d8 EMT-0 supR3HardenedErrorV: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\Windows\System32\NetSetupShim.dll' (C:\Windows\System32\NetSetupShim.dll): rcNt=0xc0000190 09:41:31.367906 00:00:03.225702 00000000000001d8 EMT-0 NetworkAttachmentType_Bridged: Failed to get NetCfg, hrc=ERROR_TRUST_FAILURE 0x800706FE (0x800706fe) 09:41:31.367906 00:00:03.226112 00000000000001d8 EMT-0 AssertLogRel F:\tinderbox\win-5.1\src\VBox\Main\src-client\ConsoleImpl2.cpp(5063) int __cdecl Console::i_configNetwork(const char *,unsigned int,unsigned int,struct INetworkAdapter *,struct CFGMNODE *,struct CFGMNODE *,struct CFGMNODE *,bool,bool): !FAILED(hrc) 09:41:31.367906 00:00:03.226117 00000000000001d8 EMT-0 hrc=ERROR_TRUST_FAILURE 0x800706FE 09:41:31.494548 00:00:03.352343 00000000000012ec VMPwrUp VMSetError: F:\tinderbox\win-5.1\src\VBox\VMM\VMMR3\VM.cpp(363) int __cdecl VMR3Create(unsigned int,const struct VMM2USERMETHODS *,void (__cdecl *)(struct UVM *,void *,int,const char *,unsigned int,const char *,const char *,char *),void *,int (__cdecl *)(struct UVM *,struct VM *,void *),void *,struct VM **,struct UVM **); rc=VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR 09:41:31.494548 00:00:03.352350 00000000000012ec VMPwrUp VMSetError: The configuration constructor in main failed due to a COM error. Check the release log of the VM for further details.There is no VBoxHardening.log created in the directory of the virtual machine when I start it using vboxheadless from the task scheduler. However, when I run the virtual machine from the gui (which is successful) I do get a VBoxHardening.log. I am attaching that log file. But since it starts successfully, I am guessing that it is not truly relevant. How can I make vboxheadless write a VBoxHardening.log ? What should I do to troubleshoot?