Learning PowerShell – Homework Thirteen

Share:
PowerShell

PowerShell Homework Thirteen

By: Steven Aiello

Answer the questions as best as possible in your own words. By answering the question in your own words you will learn more than simply repeating what you’ve heard. You are encouraged to visit the source links in the lessons to do more research on the subject.

Remember the point of the homework is not simply to finish, but to learn!

1. Why is the $TIMER variable so important in our service monitoring script?

2. Why do we never enter a $RUN = “false” condition into the monitoring script?

3. Why is breaking longer lines in our scripts into smaller lines beneficial?

4. Explain in your own words how we are comparing the desired state of the service we are trying to monitor with the state of the service on the system?

5. What improvement do you think can be made to the monitoring script? For example what would happen if the SMTP server was not responding?

Share:

Leave a reply

thirty three − = thirty one

This site uses Akismet to reduce spam. Learn how your comment data is processed.