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.
I don't find the script. I only find the secure password functions on the one and only line.
When adding scripts to the Library, you should always upload a file. Do not put the content of the script in the body of the description, otherwise an error will be generated if you try and download it.