Frage

I have tried using the "runas" command from Windows to run a program with lowered credentials than those of the currently active account (in order to "sandbox" that program to be only able to access certain directories and files). It works fine, for the most part, but I am getting a strange error. The command that works without any issues is:

runas /noprofile /user:<Username> <program.exe>

But when I try to remove the /noprofile and instead write runas /user:<Username> <program.exe> or alternatively runas /user:<Username> /profile <program.exe> I get an error saying (roughly translated) this:

RUNAS-ERROR: <Path-To-My-Program> cannot be executed
299: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.

I tried researching the error but the only thing I could come across was some people that encountered this error trying to work with CDs, USBs and external hard drives, and setting some registry values for those worked for them. I did not attempt to modify the registry myself, because I am not using any of these, and thus I concluded that the error had to be something else on my end.

I am really confused as to what is causing this behaviour, and am hoping that someone who is more experienced with this can help me out :)

Thanks in advance Best Regards

War es hilfreich?

Lösung

It seems that this error is commonly attributed to problems with file access. Have a look here for details on analysing the root cause of the problem.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top