On Oct 8, 8:41*pm, "CodeTestDummy"
<sharp_mind.TAKETHIS...@xxxxxx> wrote:
> How can I create a process on a remote computer using Powershell v1? You can use WMI and the Win32_Process class depending on what you're
trying to do.
PS C:\> [wmiclass]$win32_process = '\\servername\root
\cimv2:Win32_Process'
PS C:\> $result = $win32_process.Create('cmd.exe /c time /t', 'c:\',
$null)
PS C:\> echo $result.ProcessId
3712
The documentation for the Create() method is here:
http://msdn.microsoft.com/en-us/libr...88(VS.85).aspx
But keep in mind that in PowerShell you leave out the process ID at
the end and instead get that from the returned object.