I use this script to daily check the diskspace on or hosts.
It writes out to excel and wil sent de results in a e-mail.
You need a .txt file with the ip adresses, and you need to create a
securestring with your credentials.
(read-host -assecurestring | convertfrom-securestring
| out-file C:\powershell\pw\pw1.txt)