Question: 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

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, prints the current date, and prints the user currently logged onto the computer. For example, your output might look similar to the following: Good Morning compadmin Now it is 02/18/2023 19:21:46 User in machine ADMIN-PC4 is compadmin

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!