CreateProcess error=740, The requested operation requires elevation

When using .exec(cmd), prefix your command with cmd /c so you end up with something like rt.exec("cmd /c <your command>"). This will launch the process and invoke the UAC if needed.

Leave a Comment