Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

FilePath On Remote Machine

$
0
0

Hello,

I want to find out if a running processor(Illustrator) on a remote machine is 64-bit or 32-bit.

I found out a way of finding the path where the .exe is running - for example the path for

32-bit = C:\Program Files (x86)\
64-bit = C:\Program Files\

Get-Process -ProcessName Illustrator -FileVersionInfo

However, when I try do this on a remote machine:

Get-Process -ComputerName DESKTOP01 -ProcessName Illustrator -FileVersionInfo

I get this error:

Get-Process : Exception getting "Modules" or "FileVersion": "This feature is not supported for remote computers.".
At line:1 char:1+ Get-Process -ComputerName desktop01 -ProcessName Illustrator -FileVersionInfo+ + CategoryInfo          : InvalidOperation: (System.String[]:String[]) [Get-Process], InvalidOperationException+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.GetProcessCommand

Can I please have a little help on this? Or is there another way to do it?

Kind regards,

Sam Colman


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>