Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Script to create a task in task scheduler.

$
0
0

Good morning everyone,

This is my first post so please forgive the naïve question.  I am completely new to PowerShell, (only 1 1/2 weeks in).  I have been asked to create, or find a script that can be executed in task scheduler every morning.  The script must look in "services" for specific services to see if they are running, or not.  The script must start any service specified that is not already running, and send an email to the administrators with a status of the list of specified services, (ie running or stopped).  Developers are constantly starting and stopping services in different environments for test purposes.  The administrators would like to insure that everything is reset back to normal when they arrive.  I have to finish this task sometime today so any help on this issue is greatly appreciate.  Thank you all in advance.     


Viewing all articles
Browse latest Browse all 6937

Trending Articles