- PowerShell
- Windows 11 (24H2)
In the project directory, run '$credential = Get-Credential', enter your email username and password:

Now in the project directory, run '$credential | Export-Clixml -Path ".\emailcred.xml"':

Open 'servicechecker.ps1', change the circled fields to the appropriate values for your email configuration:

Now open 'services.csv' and change the 'Name' and 'Status' values to the services you want to check and the desired status:

Now open Powershell as administrator and run the script:

You can see the output in log.txt:

You will receive an email like this showing the service which was stopped and if it successfully started:
