Files
2024-06-10 21:26:56 +02:00

15 lines
636 B
Plaintext

(cmd) python wmi\create_process.py
WMI namespace is <<WmiNamespace "root\cimv2">>
Process class is <WmiObject class "Win32_Process">
Method Create InParams is <<WmiObject class "__PARAMETERS">>
Method Create InParams properties are <['CommandLine', 'CurrentDirectory', 'ProcessStartupInformation']>
Creating instance of inparam
InParam instance is <<WmiObject instance of "__PARAMETERS">>
Setting <CommandLine>
Executing method
OutParams is <WmiObject instance of "__PARAMETERS">
Out params values are: ['ProcessId', 'ReturnValue']
Created process is <WinProcess "notepad.exe" pid 26744 at 0x180e84d48d0>
Waiting 1s
Killing the process