I am trying to create a directory on a remote computer using wmi and python. I am able to successfully run any batch file by providing the complete path to it. But not execute system command.
This following code does not create a directory on the remote computer.
conn = wmi.WMI('172.20.23.45', user='Administrator', password='Pass@123')
conn.Win32_Process.Create(CommandLine='mkdir temp')