Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Process List on Another Machine

Reply
 
Old 06-05-2009   #1 (permalink)
news.motzarella.org


 
 

Process List on Another Machine

I am fairly new to PS. Can someone tell me if it is possible to get a
process list (get-process *) on a remote machine, on which Powershell is not
installed?

Thanks very much.



My System SpecsSystem Spec
Old 06-05-2009   #2 (permalink)
Vadims Podans [MVP]


 
 

Re: Process List on Another Machine

if you use Powershell V2 you can use -computername parameter in Get-Process
cmdlet. In PowerShell 1.0 you can use Win32_Process class to access remote
computer.
--
WBR, Vadims Podans
MVP: PowerShell
PowerShell blog - www.sysadmins.lv

"news.motzarella.org" <jc_va@xxxxxx> rakstija zinojuma
"news:h0auq3$bpe$1@xxxxxx-september.org"...
Quote:

> I am fairly new to PS. Can someone tell me if it is possible to get a
> process list (get-process *) on a remote machine, on which Powershell is
> not installed?
>
> Thanks very much.
>
My System SpecsSystem Spec
Old 06-05-2009   #3 (permalink)
PaulChavez


 
 

Re: Process List on Another Machine

Just to clarify, Vadims is talking about a WMI class.

You would access it like this:

Get-WMIObject -computer remotehost Win32_Process



"Vadims Podans [MVP]" wrote:
Quote:

> PowerShell 1.0 you can use Win32_Process class to access remote
> computer.
> --
My System SpecsSystem Spec
Old 06-05-2009   #4 (permalink)
OldDog


 
 

Re: Process List on Another Machine

On Jun 5, 6:16*am, "news.motzarella.org" <jc...@xxxxxx> wrote:
Quote:

> I am fairly new to PS. *Can someone tell me if it is possible to get a
> process list (get-process *) on a remote machine, on which Powershell is not
> installed?
>
> Thanks very much.
Try this:

$strComputer = (remote machine name)
$P = gwmi win32_process -comp $strComputer
My System SpecsSystem Spec
Old 06-08-2009   #5 (permalink)
news.motzarella.org


 
 

Re: Process List on Another Machine

From one OldDog to another, thanks very much.


My System SpecsSystem Spec
Old 06-29-2009   #6 (permalink)
tphan


 
 

Re: Process List on Another Machine

Hello,

What about displaying modules of a process on a remote machine.
It is working fine with the current local computer
Here is the error I got when I run this command on a remote Computer.

Of note, I am using Powershell version 2.0 CTP3 and both of servers having
Windows 2003 Stnd with latest sp and the PC I am running Powershell having
full permissions on the remote one.

PS D:\scripts> get-process notepad -computer REMOTECOMPUTER -module

Get-Process : Exception getting "Modules" or "FileVersion": "Feature is not
sup
ported for remote machines.".
At line:1 char:12
+ get-process <<<< notepad -computer eg-gsipaa-h02 -module
+ CategoryInfo : InvalidOperation: (System.String[]:String[]) [Ge
t-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.C
ommands.GetProcessCommand

"PaulChavez" wrote:
Quote:

> Just to clarify, Vadims is talking about a WMI class.
>
> You would access it like this:
>
> Get-WMIObject -computer remotehost Win32_Process
>
>
>
> "Vadims Podans [MVP]" wrote:
>
Quote:

> > PowerShell 1.0 you can use Win32_Process class to access remote
> > computer.
> > --
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Old failed installation process locks machine from install/uninstall Vista installation & setup
List of process with % of CPU use PowerShell
Pause script until process id on remote machine goes away? PowerShell
Getting list of modules loaded by a process PowerShell
How can I start a process on a remote machine using alternate cred PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46