Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.0 a. Write a Powershell script (in a .ps1 file) called greeting that prints a greeting to the user -- perhaps Good morning or something

image text in transcribed

3.0 a. Write a Powershell script (in a .ps1 file) called greeting that prints a greeting to the user -- perhaps "Good morning" or something similar. Remember to set the file permissions to allow execution [See Class Note Page 21]. Note : commands in the script file do not need to end with semi-colons. (They are PowerShell commands, not C statements.) b. Now modify your script greeting so that it -greets the user by (user) name, Be sure to add comments to your script! Comments - prints the current date, and in PowerShell scripts begin with \#. Adding a oprints the user currently logged onto the computer. commented tile will be nice. For example, your output might look similar to the following: Good Morning compadmin You must include the .ps1 file you wrote and the Now it is 02/18/2023 19:21:46 screen dump of the result as your complete answer. User in machine ADMIN-PC4 is compadmin 3.0 a. Write a Powershell script (in a .ps1 file) called greeting that prints a greeting to the user -- perhaps "Good morning" or something similar. Remember to set the file permissions to allow execution [See Class Note Page 21]. Note : commands in the script file do not need to end with semi-colons. (They are PowerShell commands, not C statements.) b. Now modify your script greeting so that it -greets the user by (user) name, Be sure to add comments to your script! Comments - prints the current date, and in PowerShell scripts begin with \#. Adding a oprints the user currently logged onto the computer. commented tile will be nice. For example, your output might look similar to the following: Good Morning compadmin You must include the .ps1 file you wrote and the Now it is 02/18/2023 19:21:46 screen dump of the result as your complete answer. User in machine ADMIN-PC4 is compadmin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

6. How would you design your ideal position?

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago