How to Update Your Email Address on Our VPS: Pre-installed Alert Script

Introduction

This guide will help you update your email address in the pre-installed script on your VPS. Our VPS template already includes a script that manages resource monitoring and alerting. You only need to modify the "To" email address section to start receiving notifications.
Steps to Update Your Email Address:

1. Log in to Your VPS
 - Use Remote Desktop Protocol (RDP) or any preferred method to access your VPS.

2. Navigate to the Script Location
 - Once logged in, navigate to the folder where the script is stored. This should be located in:
 - C:\Alert\
3. Open the Script for Editing
 - In the C:\Alert\ folder, locate the script file named Set thresholds for CPU and Memory.ps1.
 - Right-click on the file and choose Edit. This will open the script in a PowerShell IDE or any test editor.

4. Modify the "To" Email Address
 - Scroll to the section in the script that looks like this:
 - $smtpTo = "[email protected]" # Replace with the recipient's email address
5. Update the value of $smtpTo your preferred email address. For example:
 - $smtpTo = "[email protected]"

6. Save and Close the Script
 - After updating the email address, save the changes (press Ctrl + S) and close the text editor.

7. Text File for Encryption (Do Not Modify)
 - In the C:\Alert\ folder, you will also find an encrypted text file, typically named encrypted_password.txt. Do not delete or modify this file, as it contains essential data  (like encrypted credentials) required for the script to run. Changing or removing this file will cause the script to stop functioning.
8. Restart the Script (if needed)

 - If the script isn’t already running, you can restart it by opening PowerShell as Administrator and executing the script:
 - & 'C:\Alert\Set thresholds for CPU and Memory.ps1'
   Alternatively, the script is already configured to run at regular intervals via Task Scheduler, so no further action may be necessary.

Need Help?
If you encounter any issues during the process, feel free to reach out to us via ticket or live chat, and our support team will assist you.

Was this answer helpful? 0 Users Found This Useful (0 Votes)