complete powershell noob here. I have a coworker complaining that his laptop clogs up ram usage. I want to write a powershell script that he could run that would log the current processes’ and their memory usage, output it into a file and send it to a desired email address.
Is this just a simple combination of get-process | out-file and send-mailmessage or is there a better way to do it?
Microsoft docs also suggests that the send-mailmessage cmdlet is outdated.
thanks for any input!