Open a privilege powershell window on your computer and then execute this command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine Save the file as PowerOffMail.ps1 and keep in a location of your choice, then copy and paste that file into the C:\Program Files (x86)\APC directoryīefore moving any further, we need to ensure that our computer will be able to run that script without problems, for that we'll set the Local Machine policy for PowerShell to "RemoteSigned". $smtp.Credentials = New-Object ($Username, $Password)
$smtp = New-Object ($SMTPServer, $SMTPPort) $Username = " This email address is being protected from spambots. Modify the "$to", "$Username" and "$Password" to match those of your own $Title = "A power FAILURE has occurred in your UPS " + (Get-Date) Open notepad and paste on a new file the following powershell script (that needs to be save later on with the *.ps1 extension). What we are going to do is to use these 2 handy events to configure a script that will send us an e-mail when these events are logged, notifying us a power cut and a sub sequence power restore
See on my example how I only have 13 minutes left of battery, not much but enough to safely shutdown my PC in case of a blackout, preventing loss of data Once you completed the installation, you should find yourself having the version 3.1.0 installed, and correctly detecting your UPS (if you have connected the USB cable).
exe extension to it so that you can run it
Go and download the free-of-charge software from here, version 3.1.0 is only available for Windows Operating Systems: įor some mysterious reason, at the time of writing this article, APC has not included the extension on its download, therefore when you download the file, please add the.
Once you have installed on your machine, and with the USB cable connected to it, you can download and install the APC PowerChute Personal Edition software to manage the computer in your system, and tell it how to responds to blackouts and power cuts. I personally have an APC Power-Saving-Back BR550GI that I bought in Amazon, excellent value, it's tiny, quiet and perfect to protect a home computer A detailed page from the manufacturer here: You might have an UPS (Uninterruptible Power Supply) at home if you are reading this article.