Windows Vista Forums

Remote process
  1. #1


    CodeTestDummy Guest

    Remote process

    How can I create a process on a remote computer using Powershell v1?



      My System SpecsSystem Spec

  2. #2


    tojo2000 Guest

    Re: Remote process

    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.

      My System SpecsSystem Spec

Remote process problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown process on remote pc Q .NET General 0 10 Jul 2009
Launch a remote powershell process Steve Schofield PowerShell 1 10 Dec 2008
Re: Killing remote process Brandon Shell [MVP] PowerShell 0 09 Oct 2008
stop-process on remote server NT PowerShell 11 23 Apr 2008
Observing Remote Boot Process Vista General 0 31 Jul 2006