Avatar of Robert Perez-Corona
Robert Perez-Corona
Flag for United States of America

asked on 

PoSh function to get CPU utilization from remote machine

I have a one-liner I need to turn into a function so that I can run against any machine on my AD domain/network. For example, instead of modifying the computername parameter and running the line can I execute something like:

Get-CPU -computername MYREMOTESERVER

Get-WmiObject -computername MYREMOTESERVER win32_processor | Measure-Object -property LoadPercentage -Average | Select Average

Thank you in advance
PowershellWindows OS

Avatar of undefined
Last Comment
Robert Perez-Corona

8/22/2022 - Mon