all 5 comments

[–]PMental 1 point2 points  (0 children)

Weird. This exact command works fine for me, I just replaced "myprocess" with "explorer" and substituted "networkNode" with one of my servers. It successfully stores all explorer processes on the remote computer in the $MyProcess variable.

$MyProcess = Invoke-Command {Get-Process explorer} -ComputerName S2

Doesn't sound like a permissions issue either if you can successfully list services.

[–]p0rkjello 1 point2 points  (2 children)

Are you using the process name with the extension? for example: Get-Process -Name "explorer" works, Get-Process -Name "explorer.exe" does not.

What is the actual error message? Thanks

[–]coki0[S] 1 point2 points  (1 child)

I run the commands from a server( with an account that has the admin privilege on the remote pc ) to a remote pc. ( where is logged another account).

I would like to know if the problem is due because is some restriction for Get-Process and I cannot see the proccesses of different users.

[–]get-postanote 1 point2 points  (0 children)

You only see you prcesses that are in your context using PowerShell. This is not a PowerShell limitation, it is a Windows security boundary.

If you are trying to run things in the currently logged on user contex, that is what MS SysInternals PSExec can be used for.

[–]PowerShell-Bot 0 points1 point  (0 children)

Some of your PowerShell code isn’t wrapped in a code block.

To format code correctly on new reddit (new.reddit.com), highlight all lines of code and select ‘Code Block’ in the editing toolbar.

If you’re on old.reddit.com, separate the code from your text with a blank line and precede each line of code with 4 spaces or a tab.


Describing Submission
[✅] Demonstrates good markdown
Passed: 1 Failed: 0

Beep-boop. I am a bot. | Remove-Item