Edit the Convert-ToSecureString.ps1 file to have your mail account password.
Run the script and it will generate cred.txt. You can remove/sanitise the script once done.
Using an admin PS term, run Check-IPAddress.ps1
All files must be in the same directory as each other.
Issues:
- Currently does not run correctly on Windows 7/Server 2012R2, will not send email