Question: PowerShell Basics Assignment 1 Create a PowerShell script with the following parameters. Ask the user for their name and age. Respond with a greeting that
PowerShell Basics Assignment
Create a PowerShell script with the following parameters.
Ask the user for their name and age.
Respond with a greeting that addresses the user by their name and gives them the year they were born.
Example: Good morning Jean you are were born in the year
Respond with a second greeting letting them know what the name of their computer is
Example: Jean you are logged into SRVJBeya.
You should pull the name of your computer from the command hostname that you will execute in PowerShell.
PowerShell Basics Assignment
PowerShell Script
Ask the user which service they would like to stop?
Assign the input from the user to a variable.
Restart the service using the variable listed above.
This MUST be done using PowerShell commands.
Respond to the user with a message indicating that the requested service has been restarted.
Your response must use the variable name to specify which service was restarted.
This script should run regardless of who runs this script.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
