I have a cmd process running with admin rights. I need to be able to automate some commands. Example echo Testing
MUST connect to existing Admin cmd process. (The cmd must be launched from here Location: C:\windows\system32\ComputerDefaults.exe).
Currently i can connect to a cmd process with normal rights and send code.
from pywinauto import Application
app = Application().connect(process = 16364)
dlg = app.top_window_()
dlg.TypeKeys('hello world')
However i can not connect to my cmd with admin rights. The window flashes but no command is entered.
New to coding :) Any help would be awesome!